Forums

HELP ! Have crazy fatal errors all over ! (6 posts)

  1. yeng29
    Member
    Posted 2 years ago #

    I've been getting this following crazy fatal error for past few days when i tried to visit my blog URL :

    "Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 19456 bytes) in /home/yeng29/public_html/zendevi.com/wp-content/themes/enlight/functions.php on line 1056"

    and if i try to visit & login into my WordPress admin i get this fatal error :

    "Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77824 bytes) in /home/yeng29/public_html/zendevi.com/wp-includes/locale.php on line 161"

    Was told that it's because of some sort of memory limit for my blog, but when i checked with my hosting server they told me that my blog is on a shared server & hence they can't increase my memory limit further.

    What then must i do ? Can someone kindly tell me what's wrong & give me a step-by-step "idiot-proof" guide on how to solve this problem pls ?

    John

  2. Samuel B
    moderator
    Posted 2 years ago #

    1. Try adding this line to your wp-config.php file:
    define('WP_MEMORY_LIMIT', '64M');
    
    2. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
    
    3. If you don't have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M
  3. yeng29
    Member
    Posted 2 years ago #

    Hi Samboll,

    just added the 2 lines of code as you said in both my wp-config.php file & my .htaccess file ( i don't have any PHP.ini file), but now i encounter a new error as follows on my main URL :

    "Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@zendevi.socialnetworktrafficpackage.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."

    Now what seems to be the problem ? If I give you my hosting account username & temp password will you be able to help me investigate further ?

    John

  4. Chris_K
    Member
    Posted 2 years ago #

    Don't do all 3 of samboll's suggestions at once.

    Try 1. If it gives you error, then try 2. If that gives you an error, then try 3.

  5. yeng29
    Member
    Posted 2 years ago #

    Chris K,

    Just tried your suggestion but still no use.

    When i tried method 1, it gave me the original fatal error message. So i deleted the line added & tried method 3 (i don't have php.ini file so i'm unable to try method 2)

    But when i tried method 3, the error changed to the internal server error given above.

    Can someone help me please ? i'm getting really, really frustrated by all these crazy fatal errors !!

  6. Chris_K
    Member
    Posted 2 years ago #

    Long story short: Your installation of WordPress needs more memory than your web host is giving you. That's the root cause of the errors you see.
    Samboll's suggestions were ways to work around that.

    If his options didn't work you have a couple options:

    1) contact your host and see if they'll allocate more memory to your PHP.

    2) start disabling your WordPress plugins or, if your theme is complex, try a different theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.