JavaScriptError: Cannot call method 'Init' of undefined

Hello, We upgraded from OTRS 2.4.9 to OTRS 3.0.2 using the RPM package on CentOS 5.5. Everything seems to be working fine, but when we open the page to compose a new e-mail we get two JavaScript errors: ---- [ERROR] JavaScriptError: Cannot call method 'Init' of undefined • /otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught TypeError: Cannot call method 'Init' of undefined • TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212 • (anonymous function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546 • c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37 • c.t/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37 /otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:168[ERROR] JavaScriptError: Cannot call method 'Init' of undefined • /otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught TypeError: Cannot call method 'Init' of undefined • TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212 • (anonymous function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546 • c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37 ---- We already tried removing these cache files, but they are regenerated and the error persists. As a result auto-complete and features (navigation) break... Has anyone else encountered this or does anyone know what is wrong here? How do we fix this? Nils.

Beste Nils,
It seems like you did not run bin/otrs.RebuildConfig.pl - this makes
the javascript not load in your browser. Please try!
--
Michiel
On Mon, Nov 22, 2010 at 6:08 PM, Nils Breunese (Lemonbit)
Hello,
We upgraded from OTRS 2.4.9 to OTRS 3.0.2 using the RPM package on CentOS 5.5. Everything seems to be working fine, but when we open the page to compose a new e-mail we get two JavaScript errors:
---- [ERROR] JavaScriptError: Cannot call method 'Init' of undefined • /otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught TypeError: Cannot call method 'Init' of undefined • TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212 • (anonymous function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546 • c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37 • c.t/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37 /otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:168[ERROR] JavaScriptError: Cannot call method 'Init' of undefined • /otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212Uncaught TypeError: Cannot call method 'Init' of undefined • TargetNS.HandleFinalError/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:212 • (anonymous function)/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:546 • c.b.extend.ready/otrs-web/js/js-cache/CommonJS_164eff894a813f6591b6435b5c04d077.js:37 ----
We already tried removing these cache files, but they are regenerated and the error persists. As a result auto-complete and features (navigation) break...
Has anyone else encountered this or does anyone know what is wrong here? How do we fix this?
Nils. --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Michiel Beijen wrote:
It seems like you did not run bin/otrs.RebuildConfig.pl - this makes the javascript not load in your browser. Please try!
Thanks, but I am sure I ran that command after the upgrade. I just ran it again, but the problem is still present.
----
# ~otrs/bin/otrs.RebuildConfig.pl
otrs.RebuildConfig.pl

Can you please check your web server log for errors?
--
Mike
On Tue, Nov 23, 2010 at 11:14 AM, Nils Breunese (Lemonbit)
Michiel Beijen wrote:
It seems like you did not run bin/otrs.RebuildConfig.pl - this makes the javascript not load in your browser. Please try!
Thanks, but I am sure I ran that command after the upgrade. I just ran it again, but the problem is still present.
---- # ~otrs/bin/otrs.RebuildConfig.pl otrs.RebuildConfig.pl
- OTRS rebuild default config Copyright (C) 2001-2010 OTRS AG, http://otrs.org/ ---- Any other ideas?
Nils. --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Op 23 nov 2010, om 15:33 heeft Michiel Beijen het volgende geschreven:
Can you please check your web server log for errors?
I had been looking at the vhost error_log and didn't see anything, but I just found that there are some OTRS errors in the server-wide error_log. This doesn't look right to me: ---- [Tue Nov 23 15:44:45 2010] -e: DBD::mysql::db do failed: Duplicate entry '46827' for key 'PRIMARY' at /opt/otrs//Kernel/System/DB.pm line 422. ERROR: OTRS-CGI-1 Perl: 5.8.8 OS: linux Time: Tue Nov 23 15:44:45 2010 Message: Duplicate entry '46827' for key 'PRIMARY', SQL: 'INSERT INTO article_flag (article_id, article_key, article_value, create_time, create_by) VALUES (?, ?, ?, current_timestamp, ?)' Traceback (30748): Module: Kernel::System::Ticket::Article::ArticleFlagSet (v1.260) Line: 2859 Module: Kernel::Modules::AgentTicketZoom::_ArticleItemSeen (v1.138) Line: 1190 Module: Kernel::Modules::AgentTicketZoom::Run (v1.138) Line: 125 Module: Kernel::System::Web::InterfaceAgent::Run (v1.57) Line: 837 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 48 Module: (eval) (v1.88) Line: 204 Module: ModPerl::RegistryCooker::run (v1.88) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.88) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31 ---- Any idea how I can fix this? Nils.

Nils Breunese (Lemonbit) wrote:
Op 23 nov 2010, om 15:33 heeft Michiel Beijen het volgende geschreven:
Can you please check your web server log for errors?
I had been looking at the vhost error_log and didn't see anything, but I just found that there are some OTRS errors in the server-wide error_log. This doesn't look right to me:
---- [Tue Nov 23 15:44:45 2010] -e: DBD::mysql::db do failed: Duplicate entry '46827' for key 'PRIMARY' at /opt/otrs//Kernel/System/DB.pm line 422. ERROR: OTRS-CGI-1 Perl: 5.8.8 OS: linux Time: Tue Nov 23 15:44:45 2010
Message: Duplicate entry '46827' for key 'PRIMARY', SQL: 'INSERT INTO article_flag (article_id, article_key, article_value, create_time, create_by) VALUES (?, ?, ?, current_timestamp, ?)'
Traceback (30748): Module: Kernel::System::Ticket::Article::ArticleFlagSet (v1.260) Line: 2859 Module: Kernel::Modules::AgentTicketZoom::_ArticleItemSeen (v1.138) Line: 1190 Module: Kernel::Modules::AgentTicketZoom::Run (v1.138) Line: 125 Module: Kernel::System::Web::InterfaceAgent::Run (v1.57) Line: 837 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 48 Module: (eval) (v1.88) Line: 204 Module: ModPerl::RegistryCooker::run (v1.88) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.88) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31 ----
Any idea how I can fix this?
A colleague went through our configuration files and removed everything that looked unneeded and now it's working again. Nils.
participants (2)
-
Michiel Beijen
-
Nils Breunese (Lemonbit)