• Resolved subzerostudio

    (@subzerostudio)


    Hi,

    After upgrading from version 7.1.7 to 7.1.15 we noticed our server max out it’s CPU usage. After looking at the error logs we discovered the following errors:

    [15-Oct-2018 09:10:45 UTC] PHP Warning: Division by zero in [redacted]/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 608
    [15-Oct-2018 09:10:45 UTC] PHP Warning: Division by zero in [redacted]/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/waf.php on line 687

    We’ve fixed for now by reverting to the old version, but can anyone shed any light on what this might be? I’ve upgraded successfully on other sites that I manage.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @subzerostudio!

    In the more recent version of Wordfence we’ve split up how some of the data is stored in the wflogs folder which is the Firewalls immediate memory. I think something must have gone wrong in the migration process when upgrading from 7.1.7 to 7.1.15. Specifically, it seems like the files in wflogs aren’t being migrated as they are supposed to.

    The CPU usage is probably from the site repeatedly trying to get/set malware signatures because the files in wflogs aren’t working correctly.

    It could be a one-time occurrence that won’t happen if you try upgrading again but if not, please zip up a copy of wflogs (located in wp-content), remove wflogs, and let it regenerate itself. At this point your Firewall will be reset, so you should go in and set it to “Enabled and protecting”.

    Let me know how it goes!

    Thread Starter subzerostudio

    (@subzerostudio)

    Hi wfasa,

    Thanks for the response!

    I can confirm that removing the plugin and the wflogs folder and reinstalling has fixed the issue for me.

    Thank you.

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

The topic ‘Upgrading from 7.1.7 to 7.1.15 causing PHP errors’ is closed to new replies.