• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

500 Error - Call to Undefined function json_encode()

Cooper

Active member
#1
Started to get a HTTP500 error on my forum today, can't access the forum at all. Lots of these errors below in apache log. Any ideas on how to sort?

[error] [client 86.150.187.149] PHP Fatal error: Call to undefined function json_encode() in /var/www/vhosts/mydomain.com/httpdocs/forum/library/XenForo/ViewRenderer/Json.php on line 179
TIA :)
 

Chris D

XenForo developer
Staff member
#2
Can you access the admin CP?

First of all, disable ALL add ons.

Then enable them all one by one. I'd expect it to be one of those that's causing the problem.