Title: PHP Fatal error with defender
Last modified: April 28, 2026

---

# PHP Fatal error with defender

 *  [rickyvbits](https://wordpress.org/support/users/rickyvbits/)
 * (@rickyvbits)
 * [2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-with-defender/)
 * Hi all, today we have received a error message from our hosting service provider.
   Which is related with defender-security. The defender version is 4.9.0, PHP 8.1.
   We are using WordPress for this site.
 * > _2026/04/28 01:40:54 [error] 11824#11824: *119734 FastCGI sent in stderr: “
   > PHP message: PHP Warning: Undefined array key “verify\_blocked\_user” in /www/
   > XXXXXXX\_267/public/wp-content/plugins/defender-security/src/controller/class-
   > firewall.php on line 584PHP message: PHP Warning: Undefined array key “verify\
   > _blocked\_user” in /www/XXXXXXX\_267/public/wp-content/plugins/defender-security/
   > src/controller/class-firewall.php on line 585PHP message: PHP Fatal error: 
   > Uncaught TypeError: WP\_Defender\Controller::check\_route(): Argument #1 ($
   > route) must be of type string, null given, called in /www/XXXXXXX\_267/public/
   > wp-content/plugins/defender-security/src/controller/class-firewall.php on line
   > 585 and defined in /www/XXXXXXX\_267/public/wp-content/plugins/defender-security/
   > src/class-controller.php:195_
 * We have staging and production environment, that error is happened on production
   only. We have compared with staging and production’s system environment, all 
   the plug-in and PHP version are the same.
 * I have reference the threads before which is enable the “OPcache_save_comments”
   can fix it. But I have other site using the same PHP version but no error.
 * Any hints for trouble shoot this error? Thank you.

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

 *  [Fida – WPMU DEV Support](https://wordpress.org/support/users/fidawpmudev/)
 * (@fidawpmudev)
 * [2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-with-defender/#post-18893826)
 * Hello [@rickyvbits](https://wordpress.org/support/users/rickyvbits/) ,
 * I hope you are doing well.
 * Your site is currently using **Defender version 4.9.0**, which is quite outdated.
   Please update Defender to the latest available version, **5.11.0**, and then 
   check whether this resolves the issue.
 * If the issue continues after updating, please enable **opcache.save_comments**
   on your hosting environment and test again to see if that helps.
 * > But I have other site using the same PHP version but no error.
 * Could you please confirm whether those sites are hosted on the same server, and
   whether **opcache.save_comments** is also disabled there?
 * Please also note that PHP 8.1 reached its official End of Life (EOL) on December
   31, 2025. Since then, PHP 8.1 no longer receives security patches, bug fixes,
   or official support from the PHP development team. This may expose applications
   to unresolved vulnerabilities and compatibility risks. I strongly recommend upgrading
   to PHP 8.2 or higher at your earliest convenience.
 * Kind Regards,
   Fida Al Hasan
 *  Thread Starter [rickyvbits](https://wordpress.org/support/users/rickyvbits/)
 * (@rickyvbits)
 * [5 days, 8 hours ago](https://wordpress.org/support/topic/php-fatal-error-with-defender/#post-18902357)
 * Hello [@fidawpmudev](https://wordpress.org/support/users/fidawpmudev/) ,
 * Thank you for your response. We will discuss to update the Defender version. 
   I have another side running on same server with same PHP8.1. Defender version
   is older than 4.9.0 but we haven’t receive any PHP error notice. By the way. 
   We will try to update the defender version first. Thank you for the support.
 * Best Regards,
   Ricky
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [5 days, 3 hours ago](https://wordpress.org/support/topic/php-fatal-error-with-defender/#post-18902507)
 * Hi [@rickyvbits](https://wordpress.org/support/users/rickyvbits/),
 * I hope updating Defender helps to resolve the issue.
 * Could you confirm if the other site is running on the same server? Also, could
   you verify if opcache.save_comments is disabled on them as well?
 * Looking forward to hearing back from you.
 * Best Regards,
    Nebu John

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-with-defender%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * Last activity: [5 days, 3 hours ago](https://wordpress.org/support/topic/php-fatal-error-with-defender/#post-18902507)
 * Status: not resolved