[Gelöst] Fehler Perl

Hilfe zu Znuny Problemen aller Art
Locked
steste123
Znuny wizard
Posts: 554
Joined: 25 Sep 2012, 19:04
Znuny Version: OTRS Help Desk
Real Name: Stefan

[Gelöst] Fehler Perl

Post by steste123 »

Hallo,
immer wenn das Dashboard aufgerufen wird, generiert Active Perl mehrere Fehlermeldungen

Code: Select all

*** 'C:\otrs\OTRS\bin\cgi-bin\index.pl' log message at: 2013/12/21 18:31:36
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 204.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value in addition (+) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 205.
[Sat Dec 21 18:31:36 2013] -e: Use of uninitialized value $_ in numeric gt (>) at C:/otrs/OTRS/bin/cgi-bin/../../Kernel/Output/HTML/DashboardTicketQueueOverview.pm line 179.
Diese Fehlermeldung wurde durch einen einzigen Aufruf der Homepage erstellt. Entsprechend viele und entsprechend große Fehlerlogs haben wir über einen Tag hinweg...
Wenn wir das Dashboard deaktivieren ist es logischerweise weg...

Jedoch erhalten wir dann folgende Meldung:

Code: Select all

*** 'C:\otrs\OTRS\bin\cgi-bin\index.pl' log message at: 2013/12/21 18:37:49
ERROR: OTRS-CGI-30 Perl: 5.16.3 OS: MSWin32 Time: Sat Dec 21 18:37:46 2013

 Message: C-Parser: 
XML or text declaration not at start of entity at line 1, column 3, byte 3 at c:/Perl/lib/XML/Parser.pm line 187.
!

 RemoteAddress: 79.xxx
 RequestURI: /otrs/index.pl?Action=AdminSysConfig

 Traceback (2644): 
   Module: Kernel::System::XML::XMLParse (OTRS 3.3.2) Line: 772
   Module: Kernel::System::XML::XMLParse2XMLHash (OTRS 3.3.2) Line: 604
   Module: Kernel::System::SysConfig::_Init (OTRS 3.3.2) Line: 1577
   Module: Kernel::System::SysConfig::new (OTRS 3.3.2) Line: 115
   Module: Kernel::Modules::AdminSysConfig::new (OTRS 3.3.2) Line: 32
   Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.2) Line: 847
   Module: PerlEx::Precompiler::c_::otrs::otrs::bin::cgi2dbin::index_pl::__ANON__ (unknown version) Line: 41
   Module: (eval) (unknown version) Line: 458
   Module: PerlEx::Precompiler::Execute (unknown version) Line: 458
Jemand eine Idee?
Last edited by steste123 on 24 Dec 2013, 12:24, edited 2 times in total.
OTRS 5.x - Debian 8 - apache 2.4 - MySQL 5.x
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Fehler Perl

Post by reneeb »

Hast Du die Config aus viewtopic.php?f=35&t=23304 einfach so als eigenständige Datei unter Kernel/Config/Files/ abgespeichert?

Da muss vorher noch ein

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
und hinterher noch ein

Code: Select all

</otrs_config>
hin.

Die uninitialized Meldungen sind keine Fehler, sondern nur Warnungen. Um diese zu fixen, kannst Du folgende Codeänderungen einspielen: https://github.com/reneeb/otrs/commit/7 ... 3904a978d6
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
steste123
Znuny wizard
Posts: 554
Joined: 25 Sep 2012, 19:04
Znuny Version: OTRS Help Desk
Real Name: Stefan

Re: Fehler Perl

Post by steste123 »

Danke für die Hilfe zu den uninitialized-Fehler. Werde es gleich testen.
Der Fehler mit dem XML-Parser bezieht sich nicht auf meinen anderen Thread ;)
OTRS 5.x - Debian 8 - apache 2.4 - MySQL 5.x
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Fehler Perl

Post by reneeb »

Dann schau Dir mal die *.xml Dateien in Kernel/Config/Files an, ob die alle die XML-Deklaration haben und/ob etwas Nicht-XML-mäßiges am Anfang steht...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Fehler Perl

Post by reneeb »

Vielleicht helfen auch die Code-Änderungen, die ich unter https://github.com/OTRS/otrs/pull/186 bereitgestellt habe.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked