
Hi, I have received this email from OTRS, generated by cron : -- Bareword found where operator expected at /usr/local/opt/otrs/Kernel/Config.pm line 158, near "$Self->{TicketNumberGenerator} = 'Kernel::System::Ticket::Number::AutoIncrement" (Might be a runaway multi-line '' string starting on line 149) (Missing operator before Kernel::System::Ticket::Number::AutoIncrement?) String found where operator expected at /usr/local/opt/otrs/Kernel/Config.pm line 159, near "$Self->{LogModule::LogFile} = '" (Might be a runaway multi-line '' string starting on line 158) (Missing semicolon on previous line?) Unquoted string "tmp" may clash with future reserved word at /usr/local/opt/otrs/Kernel/Config.pm line 159. Unquoted string "otrs" may clash with future reserved word at /usr/local/opt/otrs/Kernel/Config.pm line 159. Bareword found where operator expected at /usr/local/opt/otrs/Kernel/Config.pm line 160, near "$Self->{LogModule} = 'Kernel::System::Log::SysLog" (Might be a runaway multi-line '' string starting on line 159) (Missing operator before Kernel::System::Log::SysLog?) String found where operator expected at /usr/local/opt/otrs/Kernel/Config.pm line 161, near "$Self->{DefaultLanguage} = '" (Might be a runaway multi-line '' string starting on line 160) (Missing semicolon on previous line?) Bad name after en' at /usr/local/opt/otrs/Kernel/Config.pm line 161. Compilation failed in require at /usr/local/opt/otrs/bin/PendingJobs.pl line 36. BEGIN failed--compilation aborted at /usr/local/opt/otrs/bin/PendingJobs.pl line 36. -- I could not reproduce it. I am using PendingJobs.pl v 1.9 The lines from Kernel/Config.pm it refers to (generated by installer.pl) are not located at those lines : -- 197 $Self->{TicketNumberGenerator} = 'Kernel::System::Ticket::Number::AutoIncrement'; 198 $Self->{LogModule::LogFile} = '/tmp/otrs.log'; 199 $Self->{LogModule} = 'Kernel::System::Log::SysLog'; 200 $Self->{DefaultLanguage} = 'en'; 201 $Self->{DefaultCharset} = 'iso-8859-1'; 202 $Self->{CheckMXRecord} = 1; -- Also note that no ticket was in pending state. Brice Levy

On Friday, February 06, 2004 10:40 AM
Brice Levy
Bareword found where operator expected at /usr/local/opt/otrs/Kernel/Config.pm line 158, near "$Self->{TicketNumberGenerator} = 'Kernel::System::Ticket::Number::AutoIncrement" (Might be a runaway multi-line '' string starting on line 149) (Missing operator before Kernel::System::Ticket::Number::AutoIncrement?) String found where ... I could not reproduce it.
It seems your Config.pm bares a syntax error. Look where it reads "might be a runaway multi-line '' string starting at line xyz" in the error messages, and look up line xyz in Config.pm then. Might be a missing ' at the end of a row. hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Bareword found where operator expected at /usr/local/opt/otrs/Kernel/Config.pm line 158, near "$Self->{TicketNumberGenerator} = 'Kernel::System::Ticket::Number::AutoIncrement" (Might be a runaway multi-line '' string starting on line 149) (Missing operator before Kernel::System::Ticket::Number::AutoIncrement?) String found where ... I could not reproduce it.
It seems your Config.pm bares a syntax error. Look where it reads "might be a runaway multi-line '' string starting at line xyz" in the error messages, and look up line xyz in Config.pm then. Might be a missing ' at the end of a row.
The concerned lines in Config.pm are : 148 # **************************************************** # 149 # Customer # 150 # **************************************************** # 151 152 # CustomerPanelCreateAccount 153 # (use create cutomer account self feature) 154 $Self->{CustomerPanelCreateAccount} = 0; 155 156 # CustomerGroupSupport (0 = compat. to OTRS 1.1 or lower) 157 # (if this is 1, then you need to set the group <-> customer user 158 # relations (ro/rw)! http://host/otrs/index.pl?Action=AdminCustomerUserGroup 159 # otherway, each user is ro/rw in each group!) 160 $Self->{CustomerGroupSupport} = 1; 161 Line 149 is commented, and does not even have a quote in it. As I said, the line where TicketNumberGenerator (about which the message seem to complain) is defined comes later in the file, (line 197) , was generated by installer.pl and has always worked OK. There was actually no trouble with the system, except for this crontab error, which i could not reproduce.
hth,
Robert Kehl
Thanks, Brice

Hi Brice, On Fri, Feb 06, 2004 at 02:52:47PM +0100, Brice Levy wrote:
Bareword found where operator expected at /usr/local/opt/otrs/Kernel/Config.pm line 158, near "$Self->{TicketNumberGenerator} = 'Kernel::System::Ticket::Number::AutoIncrement" (Might be a runaway multi-line '' string starting on line 149) (Missing operator before Kernel::System::Ticket::Number::AutoIncrement?) String found where ... I could not reproduce it.
It seems your Config.pm bares a syntax error. Look where it reads "might be a runaway multi-line '' string starting at line xyz" in the error messages, and look up line xyz in Config.pm then. Might be a missing ' at the end of a row.
The concerned lines in Config.pm are :
148 # **************************************************** # 149 # Customer # 150 # **************************************************** # 151 152 # CustomerPanelCreateAccount 153 # (use create cutomer account self feature) 154 $Self->{CustomerPanelCreateAccount} = 0; 155 156 # CustomerGroupSupport (0 = compat. to OTRS 1.1 or lower) 157 # (if this is 1, then you need to set the group <-> customer user 158 # relations (ro/rw)! http://host/otrs/index.pl?Action=AdminCustomerUserGroup 159 # otherway, each user is ro/rw in each group!) 160 $Self->{CustomerGroupSupport} = 1; 161
Line 149 is commented, and does not even have a quote in it. As I said, the line where TicketNumberGenerator (about which the message seem to complain) is defined comes later in the file, (line 197) , was generated by installer.pl and has always worked OK. There was actually no trouble with the system, except for this crontab error, which i could not
Try the perl syntax checker to be sure: shell> perl -cw Kernel/Config.pm
Brice
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

On Friday, February 06, 2004 2:52 PM
Brice Levy
There was actually no trouble with the system, except for this crontab error, which i could not reproduce.
Well, taking into regard that the syntax check went ok, we can state, that there *was* an error in your Config.pm, but isn't anymore. Regards, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (3)
-
Brice Levy
-
Martin Edenhofer
-
Robert Kehl