• Resolved prachinigam

    (@prachinigam)


    As soon as i have activated the wordfence plugin,the site show the following errror.
    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes)

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

Viewing 1 replies (of 1 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @prachinigam and thanks for reaching out to us!

    Check your site or server error logs for any memory errors. You will see something similar to this:

    ‘PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 36287088 bytes) in /path/to/public_html/wp-includes/wp-db.php on line 1989’

    This means that there isn’t enough memory allocated to PHP for everything you have going on with the site. That memory is cumulative so all your plugins, your theme, WordPress, and any other PHP apps you have running share it. If it isn’t enough this PHP error occurs. The file path involved in the error is just the final process to run when it crashed. In this case you can add it in php.ini or .user.ini depending on your hosting set up. 256M is usually what I see most sites set to but if you have a larger site setting it to 512M isn’t out of the question. Also making sure you have PHP 7.0 or above will help since 7 introduced some really nice memory handling improvements.

    NOTE: Some hosts may have this configured to not allow users to set a higher value for memory_limit locally, so you will have to contact your host to increase your memory allocation.

    Let me know if this helps!

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Memory allocation problem while using wordfence plugin’ is closed to new replies.