Search Knowledge Base
Fatal error: Allowed Memory Size Error in WordPress (Increase WordPress Memory Limit)
Let us quick fix one of the most common error for WordPress – Fatal error: Allowed memory size of bytes exhausted. This tutorial will also guide you on how to increase php memory limit in WordPress.
Error Code: “Allowed memory size of” xxxxxxxx bytes exhausted (tried to allocate xxxxx bytes)
Simply follow the below steps to solve Error 503 in WordPress.
Step 1:
Login to Control Panel / cPanel.
Step 2:
Navigate & open File Manager
Step 3:
Open public_html folder
Step 4:
Edit wp-config.php file (do it by right clicking on the file and click edit)
Step 5:
Copy & paste the below code at the bottom of the file and click on save.
define( 'WP_MEMORY_LIMIT', '256M' );
Step 6:
- Thats all! You have fixed the Fatal error for allowed memory size in WordPress and increased the WordPress memory size for smooth & stable working of a WordPress website.
- You can change 256M upto 1024M depending upon the RAM / Memory Limit assigned in your hosting plan. Consider using myglobalHOST hosting for wordpress as we offer minimum of 1GB RAM per account.