[SOLVED] After upgrade, FAQ: JavaScript error

Moderator: crythias

Locked
peters
Znuny newbie
Posts: 19
Joined: 02 Oct 2012, 15:18
Znuny Version: 5.0.15
Real Name: Peter S

[SOLVED] After upgrade, FAQ: JavaScript error

Post by peters »

Hello, we just upgraded from 3.2.8 to 3.3.9, all Packages are on latest versions, FAQ module was also manually reinstalled twice, but we are still getting error, after agent opens Faq -> Explorer:

Core.UI.InitTableHead is not a function

(?)()@https://servicedesk.company.com/otrs/in ... orer:878:5
Core.App</TargetNS.Ready/<@https://servicedesk.company.com/otrs-we ... s:1254:173
x.Callbacks/c@https://servicedesk.company.com/otrs-we ... js:2:25959
x.Callbacks/p.fireWith@https://servicedesk.company.com/otrs-we ... js:2:26755
.ready@https://servicedesk.company.com/otrs-we ... .js:2:3320
q@https://servicedesk.company.com/otrs-we ... 4.js:2:715

FAQ is on 2.3.2, didn't find any other update...

Thank you for help
Peter
Last edited by peters on 29 Sep 2014, 13:05, edited 1 time in total.
OTRS 5.0.15 on Centos 6 and Postgresql 9.1
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: After upgrade, FAQ: JavaScript error

Post by Rooobaaat »

Seems to be a Java-Cache-Issue.

Did you restore the whole /var directory?
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
peters
Znuny newbie
Posts: 19
Joined: 02 Oct 2012, 15:18
Znuny Version: 5.0.15
Real Name: Peter S

Re: After upgrade, FAQ: JavaScript error

Post by peters »

How do you mean restored from /var.?
I did an upgrade via rpm, running centos 6.5. I didn't restore any files in /var or /opt/otrs, as this should be handled by the upgrade process automatically.
Can the cache be deleted manually?
OTRS 5.0.15 on Centos 6 and Postgresql 9.1
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: After upgrade, FAQ: JavaScript error

Post by Rooobaaat »

Hi peters,

1. open a command prompt on the server
2. change the working directory to the bin/ directory of your OTRS installation
3. run the script otrs.LoaderCache.pl -o delete
4. run the script otrs.DeleteCache.pl
5. ensure that var/httpd/htdocs/js/js-cache/ directory is empty
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
peters
Znuny newbie
Posts: 19
Joined: 02 Oct 2012, 15:18
Znuny Version: 5.0.15
Real Name: Peter S

Re: After upgrade, FAQ: JavaScript error

Post by peters »

Hi Rooobaaat,

many thanks for pointing to the real cause. After deleting cache it still didn't work, then I realized that we are using custom Theme and I updated it right after OTRS upgrade. But then packages like FAQ and ITSM were updated, which copied new files into the Standard folder, and those files I was missing in our Theme.
After copying missing files, it works correctly.

Peter
OTRS 5.0.15 on Centos 6 and Postgresql 9.1
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: After upgrade, FAQ: JavaScript error

Post by Rooobaaat »

Did you consider the OTRS admin manual on http://otrs.github.io/doc/manual/admin/ ... hemes.html ?
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
Locked