{"id":254,"date":"2017-07-12T22:00:39","date_gmt":"2017-07-12T22:00:39","guid":{"rendered":"http:\/\/orissawebhosting.in\/blog\/?p=254"},"modified":"2019-07-19T04:16:48","modified_gmt":"2019-07-19T04:16:48","slug":"how-to-fix-wordpress-memory-exhausted-error-via-cpanel","status":"publish","type":"post","link":"https:\/\/orissawebhosting.in\/blog\/how-to-fix-wordpress-memory-exhausted-error-via-cpanel\/","title":{"rendered":"How To Fix WordPress Memory Exhausted Error via cPanel"},"content":{"rendered":"<p><strong>How To Quick Fix WordPress Memory Exhausted Error.<\/strong><\/p>\n<p>Sometimes when you are perform normal WordPress action like activating a plugin, you get an error message like this<\/p>\n<pre> Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes)<\/pre>\n<p>If you installing the resource more consuming plugins like\u00a0WooCommerce, you will get this\u00a0<strong>Memory Exhausted <\/strong>errors.<\/p>\n<p>The solution is to increase the PHP memory to resolve it.<\/p>\n<p><strong>Fix this error via wp-config.php \u00a0 \u00a0 \u00a0<\/strong><\/p>\n<p>Step 1 &#8211; \u00a0Login to your cPanel &gt;&gt; File manager &gt;&gt; choose the directory, there you can have the file as wp-config.php<\/p>\n<p><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fatal.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-262 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fatal-1024x496.png\" alt=\"\" width=\"640\" height=\"310\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fatal-1024x496.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fatal-300x145.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fatal-768x372.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fatal.png 1355w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Step 2 &#8211; Do edit the wordpress config file and enter the below code to increase the PHP memory limit.<\/p>\n<pre> define('WP_MEMORY_LIMIT', '256M');<\/pre>\n<p><strong>Fix this error via php.ini<\/strong><\/p>\n<p>Step 1 &#8211; If already you have php.ini file under the directory, Do edit the php.ini file and enter the below code to increase the PHP memory limit. Else create the file then enter the below code.<\/p>\n<pre><a href=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fata1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-269 size-large\" src=\"http:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fata1-1024x501.png\" alt=\"\" width=\"640\" height=\"313\" srcset=\"https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fata1-1024x501.png 1024w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fata1-300x147.png 300w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fata1-768x375.png 768w, https:\/\/orissawebhosting.in\/blog\/wp-content\/uploads\/2017\/07\/fata1.png 1354w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a>\n\nmemory_limit = 128M ;<\/pre>\n<p><strong>Fix this error via\u00a0.htaccess<\/strong><\/p>\n<p>Step 1 &#8211; Also you can use your .htaccess file and edit the enter below command to set the memory limit.<\/p>\n<pre>php_value memory_limit 128M&lt;br&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How To Quick Fix WordPress Memory Exhausted Error. Sometimes when you are perform normal WordPress action like activating a plugin, you get an error message like this Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) If you installing the resource more consuming plugins like\u00a0WooCommerce, you will get this\u00a0Memory Exhausted errors. The solution is to increase the PHP memory to resolve it. Fix this error via wp-config.php \u00a0 \u00a0 \u00a0 Step 1 &#8211; \u00a0Login to your cPanel &gt;&gt; File manager &gt;&gt; choose the directory, there&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/254"}],"collection":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=254"}],"version-history":[{"count":19,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/254\/revisions"}],"predecessor-version":[{"id":276,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/254\/revisions\/276"}],"wp:attachment":[{"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/orissawebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}