Home
/
WordPress
/
How To Questions
/
How to Fix the Fatal Error 'Allowed Memory Size Exhausted'

How to Fix the Fatal Error 'Allowed Memory Size Exhausted'

In this article, we will explain how to increase your PHP memory limit in order to fix the fatal error “Allowed Memory Size Exhausted” in your WordPress site. This type of error occurs when the memory required by your WordPress code is more than the originally set one.

To increase your WordPress memory limit, go to your SiteGround Client Area > Websites > Site Tools next to the desired website. Select Site > File Manager.

File Manager

Edit the file wp-config.php. Above the line ‘That’s all, stop editing! Happy blogging.’ insert the following:

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

If you are on a Cloud plan, you may further customize the limit. Then save the changes that you have made to the file by clicking the Save icon.

Refresh your website and the error should not appear anymore.

Share This Article