Title: WAF and json_decrypt() PHP Errors
Last modified: August 31, 2016

---

# WAF and json_decrypt() PHP Errors

 *  Resolved [Lee Hodson (VR51)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/)
 * 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://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297286)
 * Hello Lee,
    thanks for reporting. What is the reason you disabled json? Thanks
   in advance.
 *  Thread Starter [Lee Hodson (VR51)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297288)
 * 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.
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297294)
 * 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)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297304)
 * You are welcome and thank you for Wordfence. Been using and promoting Wordfence
   since Timthumb and your initial release.
 * Will mark this as resolved.
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297312)
 * 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)](https://wordpress.org/support/users/leehodson/)
 * (@leehodson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297397)
 * 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.
 *  [wfasa](https://wordpress.org/support/users/wfasa/)
 * (@wfasa)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297428)
 * 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.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 7 replies
 * 2 participants
 * Last reply from: [wfasa](https://wordpress.org/support/users/wfasa/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/waf-and-json_decrypt-php-errors/#post-7297428)
 * Status: resolved