[solved] Error when editing or creating a new statistic

Moderator: crythias

Post Reply
Herr_K
OTRS newbie
Posts: 8
Joined: 29 Jul 2009, 09:11
OTRS Version?: 3.0.8

[solved] Error when editing or creating a new statistic

Post by Herr_K »

A few Months ago I updated OTRS from 2.6.4 to 3.0.8. This error might be related to said update because I did not encounter it ever before. Though I didn't touch any statistics since.

However, when I try to create a stat or edit any of the existing ones, I get the following error (differs slightly, depending on which browser I use):

FireFox 3.6.17, 8.0

Code: Select all

Core.Agent.Stats is undefined

(?)()@http://helpdesk/otrs/index.pl?Action=AgentStats;Subaction=EditSpecification;StatID=1:557
Ready((function (j, s) {return new (b.fn.init)(j, s);}))@http://helpdesk/otrs-web/js/js-cache/CommonJS_fbbca61a9d9ce84eb58aed3a5cf2d732.js:582
trigger()@http://helpdesk/otrs-web/js/js-cache/CommonJS_fbbca61a9d9ce84eb58aed3a5cf2d732.js:37
trigger([object Event])@http://helpdesk/otrs-web/js/js-cache/CommonJS_fbbca61a9d9ce84eb58aed3a5cf2d732.js:37
Opera 11.11

Code: Select all

Cannot convert 'Core.Agent.Stats' to object

<anonymous function: TargetNS.Ready>()@:582:183
<anonymous function: ready>(j)@:37:7309
IE 8 (german)

Code: Select all

'Core.Agent.Stats' ist Null oder kein Objekt

{anonymous}(TypeError:''Core.Agent.Stats' ist Null oder kein Objekt)
printStackTrace(#object)
{anonymous}(#function)
{anonymous}()
a()
I tried with Java 6.24 and 6.29 on WinxP, Win7, x86 and x64 and keep getting the same error. I couldn't find any hint neither in buzilla nor the server logs.

Any help would be appreciated.
Last edited by Herr_K on 31 May 2012, 08:56, edited 1 time in total.
OTRS 3.0.8 and MySQL on Win2003 R2
ITSM 3.0.4

crythias
Moderator
Posts: 10112
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error when editing or creating a new statistic

Post by crythias »

OTRS doesn't use or require java. This is java script. You may want to back up your directory, extract the latest tar on top of it, run otrs.setPermissions (linux only) and see if it helps.
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask

Herr_K
OTRS newbie
Posts: 8
Joined: 29 Jul 2009, 09:11
OTRS Version?: 3.0.8

Re: Error when editing or creating a new statistic

Post by Herr_K »

I was finally able to solve that problem. After Upgrading to v3 and importin the old SysConfig, the option

Frontend::Agent::ModuleRegistration -> Frontend::Module###AgentStats -> Loader

was left blank. It had to be set to "Core.Agent.Stats.js", Type "JavaScript". Now my stats are working properly again.
OTRS 3.0.8 and MySQL on Win2003 R2
ITSM 3.0.4

Post Reply