• Resolved softsleepysounds

    (@softsleepysounds)


    Hi there,
    Thanks in advance for your help.
    My client’s site is down with a 500 server error.

    When I look at the logs I see a long list of these error messages since about October 18th:

    [07-Nov-2018 22:23:37 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 49152 bytes) in /home/caca4518/public_html/wp-content/plugins/wordfence/lib/wordfenceHash.php on line 117
    [08-Nov-2018 01:53:35 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes) in /home/caca4518/public_html/wp-content/plugins/wordfence/lib/wordfenceClass.php on line 8039

    Could you please advise what I may do about this?
    Thanks!
    Sarah

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Looks like you need to increase your php memory, it’s not currently sufficient to run WordPress properly.

    You can do this by adding this..

    ..to wp-config.php (right above “happy blogging”)

    define(‘WP_MEMORY_LIMIT’, ‘256M’);
    define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’);

    or to .htaccess (does not work with all hosters)
    php_value memory_limit 256M

    or php/user .ini files (may not be accessible by the user)
    memory_limit = 256M ;

    Let us know how it goes.

    Thread Starter softsleepysounds

    (@softsleepysounds)

    Hey MNX @mononox

    Thank you for your reply! I did update the PHP memory, but it does not seem to be working. I am still getting a 500 server error.

    thank you!!
    Sarah

    Are there any other errors unrelated to memory? Try and find the exact line of your own access to the site and see what it says.

    Hi @softsleepysounds,

    Can you see if it’s the same error with the same number of bytes exhausted? 33554432 bytes exhausted

    If it still is the same number, then it’s possible that your host is manually setting PHP’s memory limit.

    In this case, you will need to contact your host provider to request them to increase PHP’s memory limit.

    Dave

    Thread Starter softsleepysounds

    (@softsleepysounds)

    Thanks so much Dave. You are absolutely right. It was an issue with the PHP limit and after a looooooonnnnnnggggg time waiting for the web host to update the PHP limit, they did so and now the site is working again!

    Thanks again ??
    Sarah

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Fatal error Wordfence – site down’ is closed to new replies.