• Resolved vatiazhospitality

    (@vatiazhospitality)


    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 6295552 bytes) wp-content/plugins/wordfence/lib/wfConfig.php on line 709

    Does anyone know how to resolve this issue?

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

    (@wfpeter)

    Hi @vatiazhospitality, thanks for getting in touch.

    I’ve seen this exact issue with a Wordfence customer in the past, where there seems to be ~268MB allocated but this attempted somewhat smaller ~6MB transaction failed.

    The out of memory error is given when memory exhaustion occurs outside of PHP somewhere on the server. The operating system log files and web server log files will likely show if memory is being exhausted somewhere outside of PHP. We normally recommend PHP memory limits with Wordfence such as 128MB or 256MB, so there could be something bigger going on. If you’re running your site on a shared hosting server, a different site could be exhausing the memory for yours and others.

    For reference though, in case it helps, you could try altering memory_limit = 256M and checking whether your max_execution_time = 60 in php.ini. Next, ensure wp_memory_limit in wp-config.php is at least 256M to mirror the other change, as similar issues can be caused by timeouts or memory being maxed out during scans or periods of heavy activity on your site.

    If it doesn’t seem to be related to the settings above, I think it’s worth reporting the fatal error text to your host and see if they will review those OS and server log files with you.

    Thanks,

    Peter.

    Thread Starter vatiazhospitality

    (@vatiazhospitality)

    Thank you Peter for your answer. I get another issue below can you help to resolve this?

    [AUG 09 19:09:02] Warning: Invalid argument supplied for foreach() in /home/private_html/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 589 Warning: Invalid argument supplied for foreach() in /home/private_html/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 589 Warning: Invalid argument supplied for foreach() in /home/private_html/wp-content/plugins/wordfence/lib/wfScanEngine.php on line 589

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘memory size exhausted’ is closed to new replies.