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.
Login to Control Panel / cPanel.
Navigate & open File Manager
Open public_html folder
Edit wp-config.php file (do it by right clicking on the file and click edit)
Copy & paste the below code at the bottom of the file and click on save.
define( 'WP_MEMORY_LIMIT', '256M' );
- 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.