• Hi, I read in the 6.3.2 release notes that some memory errors have been fixed, so I gave an old problem a new try. Since I have WF I always get the following error, if I enable “Scan for signatures of known malicious files”.

    Error message:

    [Oct 29 19:40:40] Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2434156 bytes) in /is/xxxxxx/wpxxxx_xxxxxx/_mydomain/wp-content/plugins/wordfence/lib/wfConfig.php on line 440

    I have set 75 MB for the setting “How much memory should Wordfence request when scanning?”. I tried in the past with different setting, to no avail.

    • This topic was modified 8 years, 4 months ago by crispress.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter crispress

    (@crispress)

    Additionally, the last line of a scan looks like this:
    [Oct 29 20:09:45] Wordfence used 8.61MB of memory for scan. Server peak memory usage was: 95.14MB

    The error messages looks like it tried to allocate 2 MB, with plenty of room left. So I guess it’s something very specific to the option “Scan for signatures of known malicious files”.

    Hi crispress,
    It’s a little bit tricky to investigate memory related issues, here you are my suggestions:
    – Please set 265MB in “How much memory should Wordfence request when scanning” under (Wordfence > Options).
    – Go to (Wordfence > Diagnostics) page and search for “WP_MEMORY_LIMIT”, “WP_MAX_MEMORY_LIMIT” and let me know the values assigned to them.
    – From (Wordfence > Diagnostics) page you can “Test your WordPress host’s available memory“.
    – Try excluding folders with large number of files on your server that you are sure they are safe (backup files, error/access logs and cache files), you can exclude these files from (Wordfence > Options => Exclude files from scan that match these wildcard patterns.)
    – Finally, you may need to try any of these methods to increase WordPress memory limit on your server.

    Let me know how it goes,
    Thanks.

    • This reply was modified 8 years, 4 months ago by wfalaa.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error on line 440: Out of memory’ is closed to new replies.