Eigene Dashlets unter version 3.3

Hilfe zu OTRS Problemen aller Art
Post Reply
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Eigene Dashlets unter version 3.3

Post by boris »

Hi,

was muss man denn tun damit das hier:
http://blog.otrs.org/2010/09/26/keep-an ... customers/
auch unter 3.3 funktioniert.

Wenn ich nach dieser Anleitung vorgehe zerlege ich mein Testsystem.

Apache Error Log:
[Thu Nov 21 09:38:32 2013] -e: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs//Kernel/System/Log.pm line 203.
[Thu Nov 21 09:38:32 2013] -e: Version string '-1, set by base.pm' contains invalid data; ignoring: '-1, set by base.pm' at /opt/otrs//Kernel/System/Log.pm line 203.
ERROR: OTRS-CGI-99 Perl: 5.10.1 OS: linux Time: Thu Nov 21 09:38:32 2013

Message: Decoding the JSON string failed: unexpected end of string while parsing JSON string, at character offset 250 (before "(end of string)") at /opt/otrs//Kernel/System/JSON.pm line 129


RemoteAddress: 10.33.0.60
RequestURI: /otrs/index.pl?Action=AgentDashboard

Traceback (34392):
Module: Kernel::System::JSON::Decode (OTRS 3.3.1) Line: 130
Module: Kernel::Output::HTML::DashboardTicketGeneric::_SearchParamsGet (OTRS 3.3.1) Line: 1748
Module: Kernel::Output::HTML::DashboardTicketGeneric::Run (OTRS 3.3.1) Line: 481
Module: Kernel::Modules::AgentDashboardCommon::_Element (OTRS 3.3.1) Line: 825
Module: Kernel::Modules::AgentDashboardCommon::Run (OTRS 3.3.1) Line: 562
Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.1) Line: 863
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31

[Thu Nov 21 09:39:49 2013] [error] [client 10.33.0.60] Can't locate /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm in @INC (@INC contains: /usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n, referer: http://coocgnotrs002.coo.local/otrs/ind ... tDashboard
[Thu Nov 21 09:39:49 2013] [error] [client 10.33.0.60] Can't locate /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm in @INC (@INC contains: /usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n



und ich bekomme diesen Fehler:
Fehlermeldung: Module Kernel::Modules::AgentDashboard not registered in Kernel/Config.pm!
Please contact your administrator.
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
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: Eigene Dashlets unter version 3.3

Post by reneeb »

Prinzipiell funktioniert das wie im Blog beschrieben (eben mit einer 3.3.1 getestet). Man muss nur die Config erweitern um die Anzeige der Spalten konfigurierbar zu machen.

Das hat aber nichts mit Deinem Fehler zu tun.

Mehr Informationen gibt es nicht? Ich würde mal in der JSON.pm das Debugging verbessern: Mach mal in der Zeile 129 von Kernel/System/JSON.pm aus

Message => 'Decoding the JSON string failed: ' . $@,

einfach

Message => 'Decoding the JSON string failed' . "($Param{Data})" . ': ' . $@,


Dann siehst Du im Log schonmal, wie der JSON-String aussieht, der Probleme macht.



Gibt es die Datei Kernel/Config/Files/ZZZAAuto.pm nicht? Kannst Du ein
RebuildConfig machen?
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
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: Eigene Dashlets unter version 3.3

Post by boris »

Doch doch die gibts.
ich hab auch ein RebuildConfig gemacht.
Jetzt gehts auch merkwürdigerweise
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
Post Reply