OTRS 3.3.1 Statistics Edit problem

Moderator: crythias

Locked
Niels2570
Znuny newbie
Posts: 20
Joined: 16 May 2011, 15:11
Znuny Version: 3.3.11
Real Name: Niels

OTRS 3.3.1 Statistics Edit problem

Post by Niels2570 »

Hi there,

After the migration from 3.2.12 to 3.3.1 I'm having problems with editing the stats.
When I click on the Edit button I get the following error in the browser :
--
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
--

The following errors are in the apache error log :

[Thu Dec 19 07:54:20 2013] [error] Can't use string ("1/8") as a HASH ref while "strict refs" in use at /opt/otrs//Kernel/Modules/AgentStats.pm line 1406.\n
[Thu Dec 19 07:54:21 2013] -e: Use of uninitialized value $ValueHash{"40"} in string comparison (cmp) at /opt/otrs//Kernel/Modules/AgentStats.pm line 417.
[Thu Dec 19 07:54:21 2013] -e: Use of uninitialized value $ValueHash{"41"} in string comparison (cmp) at /opt/otrs//Kernel/Modules/AgentStats.pm line 417.
etc.

System: Red Hat Enterprise Linux Server release 6.5 (Santiago), MySQL 5.1.71
lolle
Znuny newbie
Posts: 3
Joined: 10 Jul 2012, 15:59
Znuny Version: 6.x
Real Name: Lolle

Re: OTRS 3.3.1 Statistics Edit problem

Post by lolle »

Seems to be a bug, I have the same Probs.
[Tue Jan 14 17:41:03 2014] [error] Can't use string ("1/8") as a HASH ref while "strict refs" in use at /opt/otrs//Kernel/Modules/AgentStats.pm line 1406.\n
[Tue Jan 14 17:41:18 2014] [error] Can't use string ("1/8") as a HASH ref while "strict refs" in use at /opt/otrs//Kernel/Modules/AgentStats.pm line 1406.\n
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: OTRS 3.3.1 Statistics Edit problem

Post by yuri0001 »

Hi!
I'm also have the same problem on 3.3.3 version. Some stats I can't edit with same message
Can't use string ("1/8") as a HASH ref while "strict refs" in use at /opt/otrs//Kernel/Modules/AgentStats.pm line 1406.\n
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
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: OTRS 3.3.1 Statistics Edit problem

Post by reneeb »

You say "some stats"? What do they have in common? Are those stats created by you? Are they stats of stock OTRS? For which stats it works?
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
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: OTRS 3.3.1 Statistics Edit problem

Post by yuri0001 »

All of stock stats are editable. Some of stats that I'll created also I can edit. But some of my stats gives me an error message. They have not been edited since
v. 3.2.11. I found this just now in version 3.3.3. I don't execute & edit them for about 4 month.
Sorry my bad English.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
lolle
Znuny newbie
Posts: 3
Joined: 10 Jul 2012, 15:59
Znuny Version: 6.x
Real Name: Lolle

Re: OTRS 3.3.1 Statistics Edit problem

Post by lolle »

All of stock stats are editable. Some of stats that I'll created also I can edit. But some of my stats gives me an error message. They have not been edited since
v. 3.2.11. I found this just now in version 3.3.3. I don't execute & edit them for about 4 month.
I found a way to bypass this bug. I just exported the stats that can't be edited. After reimporting, everything seems to be fine.
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: OTRS 3.3.1 Statistics Edit problem

Post by yuri0001 »

I wanted to try your method, BUT before it I'm try to edit it. All stats become editable without any efforts. It's nonsense, but true. :shock: :lol:
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Lure79
Znuny newbie
Posts: 11
Joined: 13 Aug 2013, 08:33
Znuny Version: 3.2.9
Real Name: Anderas Larsson
Company: Consid AB

Re: OTRS 3.3.1 Statistics Edit problem

Post by Lure79 »

We had the same problem today. I exported and imported one of the problematic reports. Once I had done that all other reports was possible to edit again. Very strange.
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: OTRS 3.3.1 Statistics Edit problem

Post by yuri0001 »

Try to upgrade OTRS for 3.3.4. This bug where fixed in it as I know.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Locked