• Resolved customgearuk

    (@customgearuk)


    getting this message:

    Fatal error: Out of memory (allocated 106954752) (tried to allocate 1400832 bytes) in /home/cluster-sites/3/o/opdirect.co.uk/public_html/wp-content/plugins/wordfence/lib/wfConfig.php on line 708

    my php.ini settings are:

    memory_limit = 1024M
    max_execution_time = 120
    upload_max_filesize = 500M
    post_max_size = 500M
    max_input_vars = 5000
    
    any ideas?
    suhosin.post.max_vars = 5000 
    suhosin.request.max_vars = 5000
Viewing 1 replies (of 1 total)
  • Plugin Support wfjanet

    (@wfjanet)

    Hi

    Thank you for reaching out to us.

    This error indicates that more memory needs to be allocated to PHP. PHP memory is cumulative meaning that the amount set in php.ini is shared between all plugins, themes, WordPress, and any other non-WordPress apps installed in the site folder. Normally, changing the Memory Limit in the php.ini file to 256M solves this problem but you already have this covered. Please see the recommendations below:

    • Upgrade to PHP 7 or above since it introduced better memory handling.
    • On your wp-config.php file, look for the wp_memory_limit and update it to 256M define(‘WP_MEMORY_LIMIT’, ‘256M’);
    • Adjust the Wordfence performance options to the recommended settings.
    • Adjust the max_execution_time to 60. Sometimes, having a long execution time may cause the scan to timeout.

    If the issue still persists, please contact your site administrator or hosting provider and work with them to determine what is causing this issue since memory exhaustion may be occurring outside of PHP somewhere on the server.

    Thanks,

    Janet

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Out of memory’ is closed to new replies.