500 Error - Call to Undefined function json_encode()


Active member
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] 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
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.