Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2016-01-29 13:56:11

pitachx
Member
Registered: 2016-01-06
Posts: 6

safe_json_encode()

Hello, i have problem with dashboard.
I can see only Online visitors, other widgets are empty.
From logs:
FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function safe_json_encode() in /var/www/lhc.****/lib/core/lhchat/lhchat.php on line 1639" while reading response header from upstream, client: .*.*.*.*, server: lhc.****, request: "GET /index.php/site_admin/chat/syncadmininterface/(limita)/10/(limitu)/10/(limitp)/10/(limito)/10/(limitc)/10/(limitd)/10 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"

Offline

#2 2016-01-31 11:26:04

pitachx
Member
Registered: 2016-01-06
Posts: 6

Re: safe_json_encode()

I found in lib/core/lhchat/lhchat.php line 1639

public static function safe_json_encode($value) {
       $encoded = json_encode($value);
       .....
       case JSON_ERROR_UTF8:
               $clean = self::utf8ize($value);
               return safe_json_encode($clean);
      .....

Is it correct to call function from function?

P.S. Change safe_json_encode($clean); to json_encode($clean); fix the problem, but i think it is not right.

Offline

#3 2016-02-02 12:46:29

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: safe_json_encode()

Thank you for your post in the Forum.
I AM not using FastCGI so maybe here you have to wait some one who can understand if there are issue with FastCGI or if is your server configuration issue.

Good luck.


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

#4 2016-02-03 19:44:10

pitachx
Member
Registered: 2016-01-06
Posts: 6

Re: safe_json_encode()

After upgrade to v.2.44 the problem is gone.

Offline

#5 2016-02-03 19:45:08

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: safe_json_encode()

Nice, thank you for your feedback!
Happy to hear update have fixed your issue!


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer