• Hi guys,

    I’ve installed WordFence on a new site and when trying to run a scan i keep facing the ‘same’ error: Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 316415584 bytes) in?/home/X/domains/X.com/public_html/wp-includes/Requests/src/Requests.php?on line?855.

    So at first a had 128M memory limit available, so the error was at line 200 (ish) i increased it to 256M, the error moved to line 340 (ish) and so on. So now i’ve set it to 1024M and the error is at line 855. i’ve already set Wordfence to limited resources of max 256M, but it doesn’t change a thing.

    I learned that i can bypass the 1024M memory limit via the htaccess, but since i have a server limit of 2GB RAM i’m afraid this might cause problems.

    Any thoughts on how to proceed?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @donkeyboy33, thanks for your question.

    The error you’re seeing of Allowed memory size of x bytes exhausted...is almost always memory exhaustion occurring outside of PHP somewhere on the server. I say this because your attempts to increase the available memory to far beyond that of many customers successfully using Wordfence just results in an error slightly further along the process.

    Wordfence’s scan, saving settings, or other Live Traffic operations can definitely trigger the error due to requiring some memory, but it’s not the root cause from our tests with other customers.

    Your operating system/web server log files will likely show if memory is being exhausted somewhere outside of PHP and why. This is usually a job for your hosting company’s support channels as they have access to those logs, can diagnose the source and potentially resolve the problem. Shared servers especially can experience this problem when another site is eating up the memory, but that’s just one possible cause and may not be the case for you.

    Let us know how you get on!
    Peter.

    Thread Starter donkeyboy33

    (@donkeyboy33)

    Hi Peter,

    Sorry for my late reply, i’ll send you a private message to share some insights.

    Thank you!

    Thread Starter donkeyboy33

    (@donkeyboy33)

    Thought i could send a PM, but this isn’t the case, is it possibe to share your emailaddress so i can send you some more information? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Allowed memory size’ is closed to new replies.