• Resolved Larry Daniele

    (@larrydaniele)


    When I try to edit any post on my client’s site (https://www.northwoodhills.org/), I now get the white screen of death:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    I turned on WP_DEBUG and see this fatal error in our log:

    [27-Jan-2021 23:05:27 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 188416 bytes) in /home/…/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 618

    If I deactivate Wordfence Version 7.4.14, then I can edit posts as expected.

    This is a completely up-to-date site running WordPress 5.6 on PHP 7.4.

    Here’s a screenshot of our Wordfence scan performance options:

    2021-01-27_18-31-09.png

    This was all working fine for years, so I’m not sure where the problem is. What should I try next?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @larrydaniele and thanks for reaching out to us!

    PHP Fatal error: Allowed memory size usually occurs when your site has exhausted all of its memory, which would be a performance issue.

    Are you using any sort of plugin for editing your pages? If deactivating Wordfence seems to resolve the issue, we could try Learning Mode to see if the WAF is blocking by mistake.

    From the Wordfence Dashboard click on Manage WAF. Then you will see Basic Firewall Options > Web Application Firewall Status. Change the option to Learning Mode. Now perform the actions that were causing issues. This will help Wordfence learn that these actions are normal and it will allow them in the future. After you have finished performing the actions, switch the WAF from Learning Mode back to Enabled and Protecting. Now test to see if these actions work correctly.

    https://www.wordfence.com/help/firewall/learning-mode/ is an amazing resource for learning more about the WAF and learning mode.

    Let’s start here and see what we get.

    Thanks!

    Thread Starter Larry Daniele

    (@larrydaniele)

    Hi @wfadam. Thanks for your help with this.

    We are using the Avada theme with its Avada Builder page editor. But the post I’m primarily testing is using the WordPress “classic” editor (not Avada Builder nor Gutenberg / Block editor).

    I activated (and verified) Wordfence Learning Mode. I then tried editing this post and once again get the “white screen of death”. In debug.log is:

    [28-Jan-2021 14:12:43 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 131072 bytes) in /home/ghfzv6awifsr/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 618

    And editing the post with Wordfence disabled works fine.

    • This reply was modified 3 years, 10 months ago by Larry Daniele. Reason: Added additional information
    Plugin Support WFAdam

    (@wfadam)

    Can you send a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    I want to see if I can tell what might be tipping the scale on your performance. I think what is happening is the memory is exhausted and when you disable Wordfence, it’s clearing just enough RAM to run the editor.

    Thanks again!

    Thread Starter Larry Daniele

    (@larrydaniele)

    Diagnostic report sent.

    Plugin Support WFAdam

    (@wfadam)

    Thanks for sending that diagnostic!

    I don’t see anything there that might be causing an issue. It might be best to get a performance report from your host unless you have access to one.

    Any way you can send us raw access logs to see what might be triggering it? If you have the WP Debug, that would help as well! Just send them to wftest @ wordfence . com with subject as your forum username.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“There has been a critical error on this website” when editing any post’ is closed to new replies.