{"id":85011,"date":"2018-08-01T10:33:52","date_gmt":"2018-08-01T14:33:52","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=85011"},"modified":"2018-08-01T10:36:02","modified_gmt":"2018-08-01T14:36:02","slug":"how-to-fix-wordpress-memory-exhausted-error-increase-php-memory","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-fix-wordpress-memory-exhausted-error-increase-php-memory.html","title":{"rendered":"How to fix WordPress memory exhausted error (increase PHP memory)"},"content":{"rendered":"<p>Fatal error on the website is the thing that always makes a heart leap into the boots, but today we will learn how to deal with one of the most annoying WordPress errors easily.<\/p>\r\n<p>If one day you open your website and instead of the content see a blank page with the next words: <strong>Fatal error: Allowed memory size of 33554432 bytes exhausted<\/strong>, do not be afraid.<\/p>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory1.jpg\" alt=\"\" width=\"894\" height=\"158\" class=\"alignnone size-full wp-image-85012\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory1.jpg 894w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory1-150x27.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory1-300x53.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory1-768x136.jpg 768w\" sizes=\"(max-width: 894px) 100vw, 894px\" \/><\/a>\r\n\r\n<p>Note, that error appears just like a warning that your WordPress code requires more memory than it is set by the default.<\/p>\r\n<p>So, all you need is just to increase the <strong>PHP memory limit<\/strong> on your server, and all will be nailed.<\/p>\r\n<p>In order to do that, just login to your FTP or hosting control panel and find the <strong>wp-config.php<\/strong> file that is located in the root directory of your WordPress installation.<\/p>\r\n<p>After that, paste the following piece of code before the line that says: \/* That&#8217;s all, stop editing! Happy blogging. *\/.<\/p>\r\n\r\n<pre class=\"brush:php\">define( 'WP_MEMORY_LIMIT', '256M' );<\/pre>\r\n\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory2.jpg\" alt=\"\" width=\"710\" height=\"179\" class=\"alignnone size-full wp-image-85013\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory2.jpg 710w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory2-150x38.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/07\/How_to_fix_Wordpress_memory_exhausted_error_increase_PHP_memory2-300x76.jpg 300w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/a>\r\n\r\n<p>Do not forget to save the changes and clear your browser cache.<\/p>\r\n<p>Well done! Now your visitors and you can enjoy the website again.<\/p>\r\n\r\n<p>We would also recommend you to view our beautiful <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\">WordPress themes<\/a> in case you need a wider choice of website building solutions.<\/p>","protected":false},"excerpt":{"rendered":"<p>Fatal error on the website is the thing that always makes a heart leap into the boots, but today we will learn how to deal with one of the most annoying WordPress errors easily<\/p>\n","protected":false},"author":87,"featured_media":85014,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2017,728],"tags":[1394,1396,2231],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/85011"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=85011"}],"version-history":[{"count":3,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/85011\/revisions"}],"predecessor-version":[{"id":85061,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/85011\/revisions\/85061"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/85014"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=85011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=85011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=85011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}