Thread Fehlermeldung: Global symbol "$Output" requires explicit package name (29 answers)
Opened by bendenn at 2012-07-26 14:04

bendenn
 2012-08-06 15:48
#160668 #160668
User since
2012-06-15
22 Artikel
BenutzerIn
[default_avatar]
danke, hab es verstanden und korrigiert.
jetzt sieht es so aus.

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# --
# Kernel/Modules/Contact.pm
# --

package Kernel::Modules::Contact;
use strict;

sub new {
my ( $Type, %Param ) = @_;

# allocate new hash for object
my $Self = {%Param};
bless( $Self, $Type );

# set debug
$Self->{Debug} = 0;

# check all needed objects
for my $Needed (qw(ParamObject DBObject LayoutObject ConfigObject LogObject)) {
if ( !$Self->{$Needed} ) {
$Self->{LayoutObject}->FatalError( Message => "Got no $Needed!" );
}
}

# --

sub Run {
my ( $Self, %Param ) = @_;
# build output
my $Output = $Self->{LayoutObject}->Output(
TemplateFile => 'Contact',
Data => \%Param,
);
return $Output;
}



--------------------------------

Bekomme jetzt Fehlermeldung:

occurred.
Error Message: Missing right curly or square bracket at C:/PROGRA~2/OTRS/OTRS//Kernel/Modules/C[]..
Please contact your administrator.
You can Send a bugreport or go back to the previous page.
Error Details
Backend ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: MSWin32 Time: Mon Aug 6 15:18:39 2012 Message: Missing right curly or square bracket at C:/PROGRA~2/OTRS/OTRS//Kernel/Modules/Contact.pm line 35, at end of line syntax error at C:/PROGRA~2/OTRS/OTRS//Kernel/Modules/Contact.pm line 35, at EOF Traceback (2956): Module: Kernel::System::Web::InterfaceCustomer::Run (v1.63) Line: 193 Module: ModPerl::ROOT::ModPerl::Registry::C_3a_Program_20Files_20_28x86_29_OTRS_OTRS_bin_cgi_2dbin_customer_2epl::handler (unknown version) Line: 49 Module: (eval) (v1.44) Line: 204 Module: ModPerl::RegistryCooker::run (v1.44) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.44) Line: 170 Module: ModPerl::Registry::handler

--------------------------
Line 35 ist die letzte }...
Habe alle Klammern überprüft, kann aber keine fehlende Klammer finden.
Liegt der Fehler jetzt noch in der Contact.pm?

View full thread Fehlermeldung: Global symbol "$Output" requires explicit package name