error 500 Call to undefined function json_encode()
-
Hello, today I saw the site was down with this message:
The www…. page isn’t working
www…. is currently unable to handle this request.
error 500After some checking and debugging I saw it was wordfence.
I renamed the folder on ftp (disabling WF), and everything was fine again.
Note: I can’t deactivate or edit anything via admin: the 500 error blocks me from any action.
I tried to fresh install WF, error was back.
My only option is deleting the WF folder entirely via ftp.
in the html root ERROR LOG it says this:
[20-Apr-2016 03:29:11 Europe/Rome] PHP Fatal error: Call to undefined function json_decode() in /home/xxx/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 1263on line 1263 of the WAF.PHP it says this:
/
$jsonData = json_decode($this->response->getBody(), true);
/I did not deactivate or activate any json myself.
I’m on a standard shared hosting. Single site, standard wordpress installation.As of now, the plugin is deactivated (folder renamed, so not seen by WordPress)
I have other sites where everything is working well.
What should I do (I’m no DB or PHP expert) to get WF up and running again?
Right now the site is up and working because WF is not running.Thank you for a great plugin!
Linda
- The topic ‘error 500 Call to undefined function json_encode()’ is closed to new replies.