• Quick note to let you know that WAF causes a PHP error on servers that have the json PHP module disabled. Had it disabled on my servers because it wasn’t required until WAF activated.

    Here is an error log entry for you to look at:

    [19-Apr-2016 13:23:44 America/New_York] PHP Fatal error:  Uncaught Error: Call to undefined function json_decode() in /home/example/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php:1263
    Stack trace:
    #0 /home/example/public_html/wp-content/plugins/wordfence/waf/bootstrap.php(135): wfWAFCronFetchRulesEvent->fire()
    #1 /home/example/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php(193): wfWAFWordPress->runCron()
    #2 /home/example/public_html/wp-content/plugins/wordfence/waf/bootstrap.php(234): wfWAF->run()
    #3 /home/example/public_html/wordfence-waf.php(6): include_once('/home/example/...')
    #4 {main}
      thrown in /home/example/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 1263

    Had a shock to see a dozen of my sites off-line because I had json disabled.

    Enabling the module resolves the issue.

    This notice is in case others are hit by it.

    https://ww.wp.xz.cn/plugins/wordfence/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello Lee,
    thanks for reporting. What is the reason you disabled json?
    Thanks in advance.

    Thread Starter Lee Hodson (VR51)

    (@leehodson)

    My server (cPanel managed) was already loading the JSON module as a dependency of another set of modules that were previously enabled. Leaving the JSON module disabled after disabling the other modules didn’t appear to cause any issues so I left it unloaded. Have learned my lesson.

    Thanks Lee,
    we haven’t seen any other reports like this but I will run it by the devs just in case. They might to want to be aware of it either way.

    Thanks for your help!

    Thread Starter Lee Hodson (VR51)

    (@leehodson)

    You are welcome and thank you for Wordfence. Been using and promoting Wordfence since Timthumb and your initial release.

    Will mark this as resolved.

    Hello again Lee,
    just wanted to let you know that this will be filed as a bug and it will be patched in a future version of Wordfence. I can’t tell you which version yet though. Thanks for your support!

    Thread Starter Lee Hodson (VR51)

    (@leehodson)

    I caught the update. Thank you. That was fast! Say “Hi” to Mark for us. He has done wonderful things for WordPress security over the past few years.

    Thanks Lee, I will let Mark know! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WAF and json_decrypt() PHP Errors’ is closed to new replies.