{"id":13707,"date":"2019-09-17T15:15:32","date_gmt":"2019-09-17T12:15:32","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/%d8%a5%d8%b5%d9%84%d8%a7%d8%ad-%d8%ae%d8%b7%d8%a3-wordpress-memory-exhausted\/"},"modified":"2022-04-24T13:14:59","modified_gmt":"2022-04-24T10:14:59","password":"","slug":"fix-wordpress-memory-exhausted-error","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/fix-wordpress-memory-exhausted-error\/","title":{"rendered":"Fix WordPress Memory Exhausted Error"},"content":{"rendered":"<h3 class=\"g1-mega g1-mega-1st entry-title\"><span style=\"color: #ff0000;\">Fix WordPress Memory Exhausted Error<\/span><\/h3>\n<p>Do you see an error in the amount of memory allowed in WordPress?<\/p>\n<p>This is one of the most common WordPress errors, and you can fix it easily by increasing the php memory limit in WordPress.<\/p>\n<p>In this article, we will show you how to fix WordPress memory error by increasing PHP memory.<\/p>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #ff0000;\">What is a WordPress Exhausted Error Memory?<\/span><\/h3>\n<p>\u0648<\/p>\n<p>WordPress is written in PHP, which is a server-side programming language. Every website needs a <a href=\"https:\/\/www.hyyat.com\/en\/shared-hosting\/\" target=\"_blank\" rel=\"noopener\">WordPress hosting<\/a> server to function properly.<\/p>\n<p>Web servers are like any other computer as they need memory to run multiple applications efficiently at the same time.<\/p>\n<p>Server administrators allocate a certain memory size for different applications including PHP.<\/p>\n<p>When your WordPress code requires more memory than virtual memory, you will see this error.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-10436\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2019\/09\/memoryexhuastederror.png\" alt=\"\u0625\u0635\u0644\u0627\u062d \u062e\u0637\u0623 WordPress Memory Exhausted\" width=\"502\" height=\"199\" title=\"\"><\/p>\n<p>By default, WordPress automatically tries to increase the PHP memory limit if it is less than 64MB. However, 64MB is mostly<\/p>\n<p>Not high enough.<\/p>\n<p>Having said that, let&#8217;s see how to easily increase PHP memory limits in WordPress to avoid a memory error.<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"color: #ff0000;\">Increase PHP Memory Limit in WordPress<\/span><\/h2>\n<p>First you need to edit the <strong>wp-config.php<\/strong> file on your WordPress site.<\/p>\n<p>It is located in the root folder of your WordPress site, and you will need to use an FTP client or file manager in your web hosting control panel.<\/p>\n<h4><span style=\"color: #ff0000;\">1- We log in to the cPanel. Please see the following explanation:<\/span><\/h4>\n<p>Explanation of entering the cPanel Activate the ssl certificate of the cPanel<\/p>\n<h4><span style=\"color: #ff0000;\">2- We go to the file manager<\/span><\/h4>\n<p>Log in to the file manager<\/p>\n<h4><span style=\"color: #ff0000;\">3- Next, this code should be pasted into the wp-config.php file before the line that&#8217;s it.<\/span><\/h4>\n<pre class=\" language-markup\"><code class=\" language-markup\">define( 'WP_MEMORY_LIMIT', '256M' );<\/code><\/pre>\n<p>This code tells WordPress to increase the PHP memory limit to 256MB.<\/p>\n<p>Once done, you need to save your changes and upload the wp-config.php file back to your server.<\/p>\n<p>You can now visit your WordPress site and the exhausted memory should be gone now.<\/p>\n<p><strong>The explanation of fixing the WordPress Memory Exhausted error has been completed<\/strong><\/p>\n<h4><span style=\"color: #993366;\">Greetings from the <a href=\"https:\/\/www.hyyat.com\/en\" target=\"_blank\" rel=\"noopener\">Hyyat Host<\/a> team for hosting and web design<\/span><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Fix WordPress Memory Exhausted Error Do you see an error in the amount of memory allowed in WordPress? This is one of the most common WordPress errors, and you can fix it easily by increasing the php memory limit in WordPress. In this article, we will show you how to fix WordPress memory error by [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"doc_category":[2747],"doc_tag":[2769],"class_list":["post-13707","docs","type-docs","status-publish","hentry","doc_category-wordpress-explanations","doc_tag-memory-exhausted-en"],"year_month":"2026-05","word_count":354,"total_views":"4273","reactions":{"happy":"1","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"WordPress explanations","term_url":"https:\/\/www.hyyat.com\/en\/kb\/wordpress-explanations\/"}],"doc_tag_info":[{"term_name":"Memory Exhausted","term_url":"https:\/\/www.hyyat.com\/en\/docs-tag\/memory-exhausted-en\/"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=13707"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13707\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=13707"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=13707"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=13707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}