How to fix fatal error issue ?

Hi,

Since One Week now, User can not login to their store created in my mulsite. They have this message :
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/gratosho/public_html/wp-includes/wp-db.php on line 945

How to fix this please?

  • PC
    • WPMU DEV Initiate

    Hey there,

    Thanks for posting on the forums.

    This is a memory issue that need resolving on the system.

    Basically the more plugins/users/traffic you have, the more memory you need.

    You could do one of the following like edit your php.ini file or add your own (depending on setup):

    memory_limit = 256M

    htaccess:

    php_value memory_limit 256M

    If your PHP supports then you can edit your wp-config.php file and add the following line:

    define('WP_MEMORY_LIMIT', '96MB');

    You would change the memory in those to whatever it is you require.

    http://www.bubbleindia.com/check-increase-php-memory-limit-wordpress/ is a good article.

    If you are not sure how or have further issues then it would be best to ask your host to help you out with this one.

    I hope that helps. Please feel free to ask if you have more questions on the same.

    Cheers, PC

  • Timothy Bowers
    • Chief Pigeon

    Hey there.

    This is a memory issue relating to your host.

    You could do one of the following like edit your php.ini file or add your own (depending on setup):

    memory_limit = 256M

    httaccess:

    php_value memory_limit 256M

    If your PHP supports then you can edit your wp-config.php file and add the following line:

    define('WP_MEMORY_LIMIT', '256M');

    You would change the memory in those to whatever it is you require.

    Basically, the more themes, plugins, code, more people using your site, the more memory you require.

    If you are not sure how or have further issues then it would be best to ask your host to help you out with this one

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.