In this tutorial, we will quick fix one of the most common error for WordPress – Fatal error: Allowed memory size of bytes exhausted. Simply follow the below steps to solve & increase memory limit 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.
Step 6: Thats all! and 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.
define( ‘WP_MEMORY_LIMIT’, ‘1024M’ );
IMPORTANT NOTE: the memory limit is always saved in MB as “M” which solely depends upon the hosting plan you have purchased. Hence don’t forget to ask your hosting provider for the total RAM you have in your wordpress hosting plan before updating this. This limit should not be set more than the RAM installed in the hosting plan you’re currently using. myglobalHOST offers minimum 1GB of virtual dedicated RAM in each shared hosting you buy & upto 6GB RAM in premium cloud hosting which is most suitable for WordPress Websites.
Also read