Second OTRS and broken JSON

Moderator: crythias

Locked
Sanchez
Znuny newbie
Posts: 7
Joined: 06 May 2011, 10:05
Znuny Version: 3.0.7
Real Name: Patryk

Second OTRS and broken JSON

Post by Sanchez »

Hi all,

I've installed OTRS on apache and it worked fine. Then I've added virtual host, made a copy of first installation and configured virtual host to work with second OTRS. It generally works ok, but I've problem with refreshing data on new phone ticket.

When I select customer from list, form starts updating data on form but ends with an error
encountered object 'false', but neither allow_blessed nor convert_blessed settings are enabled at /opt/otrs//Kernel/System/JSON.pm line 115.\n
It happens only on "main host". On virtual host there is no problem with that.

I guess that something is wrong with apache configuration but I don't have any clue what can it be. Maybe somebody encountered this error or have some experience with configuration of apache for multiple OTRS?
OTRS 3.0.8, openSUSE 11.4, Apache 2.2.17, PostgreSQL 9.0.3
vngawande
Znuny newbie
Posts: 1
Joined: 23 Sep 2011, 09:17
Znuny Version: 3.0.10
Real Name: Vishal
Company: Gawande

Re: Second OTRS and broken JSON

Post by vngawande »

Same Issue here...
Installed OTRS on apache multiple VirtualHosts , but I've problem with refreshing data or opening new email ticket or new phone ticket.

get following errors:
"Error during AJAX communication"
" encountered object 'false', but neither allow_blessed nor convert_blessed settings are enabled at /opt/hrhelp//Kernel/System/JSON.pm line 110."

OTRS Version : 3.0.10 with Mysql & Apache
markandi
Znuny newbie
Posts: 3
Joined: 16 Feb 2012, 15:36
Znuny Version: 3.0.11
Real Name: Andreas Marksteiner

Re: Second OTRS and broken JSON

Post by markandi »

Hi all,

exact same issue here ... did anyone find a solution meanwhile?

My setup in short:
- apache virtual hosts for each OTRS Instance
- mod_perl with 'PerlOptions + Parent' in each virtual host

Made a copy of an OTRS System (database, otrs directory, adjusted configs/path, ...).
One thing I am not sure about - I also changed the SystemID for the "original" otrs (not in the copied system).

Result was - Copied systems works fine, Original System shows error as described by Sanchez in the logs (Browser shows "Ajax error").

I think the error occurs because JSON.pm tries to serialize a non existing (null) object from the database/query to json, but I couldn't find out why there is no result from the database.

Regards, Andreas.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Second OTRS and broken JSON

Post by jojo »

Windows?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
markandi
Znuny newbie
Posts: 3
Joined: 16 Feb 2012, 15:36
Znuny Version: 3.0.11
Real Name: Andreas Marksteiner

Re: Second OTRS and broken JSON

Post by markandi »

Updated my signature - using Ubuntu 10.04.
Ubuntu Server 10.04 (LTS), 64-bit
Apache/2.2.14 (Ubuntu), PostgreSQL 8.4.10
OTRS 3.0.11, OTRS:ITSM 3.0.5, FAQ 2.0.7
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Second OTRS and broken JSON

Post by ferrosti »

Wasn´t there an issue regarding running multiple OTRS instances on the same machine with mod_perl?
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
markandi
Znuny newbie
Posts: 3
Joined: 16 Feb 2012, 15:36
Znuny Version: 3.0.11
Real Name: Andreas Marksteiner

Re: Second OTRS and broken JSON

Post by markandi »

i am using apache virtual host and '+Parent' to fork a new perl interpreter for each otrs vhost - think that should work?
http://blog.otrs.org/2010/08/11/how-to- ... ngle-host/
Ubuntu Server 10.04 (LTS), 64-bit
Apache/2.2.14 (Ubuntu), PostgreSQL 8.4.10
OTRS 3.0.11, OTRS:ITSM 3.0.5, FAQ 2.0.7
liuk001
Znuny newbie
Posts: 7
Joined: 09 Sep 2011, 16:48
Znuny Version: 3.0.10
Real Name: Luca Maranzano

Re: Second OTRS and broken JSON

Post by liuk001 »

Hello,

we are facing the same issue just after upgrading from Ubuntu 8.04 to 10.04, OTRS 3.1.8 and 3.2.6, so now we are going to test 12.04 :-)

More later,
Luca
Locked