• Resolved VisedFAQ

    (@visedfaq)


    Hello, we have an issue with Defender constantly deactivating itself after some time of being active. We are running PHP 8.3, the memory limit and input vars values are more than enough, other plugins are working just fine and debug.log doesn’t show anything worth noting. Could you suggest what can be done to fix this issue? This happens on both 5.9 and 5.8 versions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @visedfaq,

    I hope this message finds you well, and sorry to know that you are experiencing this issue.

    We’ve noticed that cron jobs can end up turning off Defender without any notice. This often happens when the site directory is running PHP 7.4 or higher, while the cron job is using a version below 7.4. When there is a mismatch like this, Defender may stop running, and no message is displayed to indicate that it has been disabled.

    You can use the following mu-plugin to investigate this further: https://gist.github.com/wpmudev-sls/3600f4c2f5e1c93d4b4afa81b0423f4c. It shows the PHP version used by the cron job in a new screen on your WordPress menu.

    If you find that the cron job is running on an older PHP version, please contact your hosting provider and request an update. Once the PHP version is aligned with your site’s version, the issue should be resolved.

    I hope that helps. Please feel free to get back to us if you need any further clarification.

    Best Regards,
    Nebu John

    Thread Starter VisedFAQ

    (@visedfaq)

    Hi Nebu John @wpmudevsupport14 ,

    Thank you for the detailed explanation and the plugin link, however this seems to be not our case. Please see: https://share.cleanshot.com/JQR9Ll7d

    • This reply was modified 1 month, 2 weeks ago by VisedFAQ.
    Thread Starter VisedFAQ

    (@visedfaq)

    This is what debug.log says when I navigate Defender pages:

    [12-Feb-2026 10:26:21 UTC] PHP Warning:  Trying to access array offset on false in /home/richheav/public_html/wp-content/plugins/wp-defender/src/component/class-audit.php on line 142
    [12-Feb-2026 10:26:22 UTC] PHP Warning: Trying to access array offset on false in /home/richheav/public_html/wp-content/plugins/wp-defender/src/controller/class-blocklist-monitor.php on line 96
    [12-Feb-2026 10:26:22 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/richheav/public_html/wp-content/plugins/wp-defender/src/controller/class-blocklist-monitor.php on line 96
    [12-Feb-2026 10:29:18 UTC] PHP Warning: Trying to access array offset on false in /home/richheav/public_html/wp-content/plugins/wp-defender/src/component/class-audit.php on line 142
    [12-Feb-2026 10:29:48 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/richheav/public_html/wp-includes/kses.php on line 2018
    [12-Feb-2026 10:29:48 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/richheav/public_html/wp-includes/kses.php on line 2018
    [12-Feb-2026 10:32:17 UTC] PHP Warning: Trying to access array offset on false in /home/richheav/public_html/wp-content/plugins/wp-defender/src/component/class-audit.php on line 142
    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @visedfaq,

    Thanks for sharing the info. It appears that with the current setting, it should have worked fine. It’s odd that it didn’t help much.

    We would like to investigate the issue further. Could you please send us an email to [email protected] using this template:

    Subject: "ATTN: WPMU DEV support - wp.org"Message: Ticket URL

    Regards,

    Nithin

    Thread Starter VisedFAQ

    (@visedfaq)

    Hi @wpmudevsupport11 ,

    It seems like the issue on our end was caused by a small misconfiguration with php.ini file, seems to be resolved now and the plugin doesn’t autodisable itself for a couple of hours already. Anyway, thanks for your help.

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @wpmudevsupport11,

    Glad to know that you managed to resolve the issue. I will mark this topic as resolved.

    Please feel free to get back to us if you need any further assistance. We are happy to help.

    If you found our plugin helpful, please leave us a rating, which encourages us to keep improving the plugin.
    https://wordpress.org/support/plugin/defender-security/reviews/#new-post

    Best Regards,
    Nebu John

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

You must be logged in to reply to this topic.