{"id":3177,"date":"2026-11-24T10:47:41","date_gmt":"2026-11-24T10:47:41","guid":{"rendered":"https:\/\/entri.app\/explore\/?post_type=curriculum&#038;p=3177"},"modified":"2026-11-24T10:47:41","modified_gmt":"2026-11-24T10:47:41","slug":"wordpress-memory-exhausted-error","status":"publish","type":"curriculum","link":"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/","title":{"rendered":"WordPress Memory Exhausted Error: How to Fix It"},"content":{"rendered":"<p>The WordPress memory exhausted error means your site ran out of the PHP memory it is allowed to use. Fix it by adding define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8216;256M&#8217;); to wp-config.php above the line that says to stop editing, then find the heavy plugin or image that caused the spike so the error does not return.<\/p>\n<h2>What does the memory exhausted error mean?<\/h2>\n<p>If the error says &#8220;Memory Exhausted&#8221;, your site has run out of brain power.<\/p>\n<p>In technical terms, PHP gives every request a fixed amount of memory. When a plugin, theme or large task needs more than that, PHP stops and WordPress shows a message such as &#8220;Allowed memory size of 41943040 bytes exhausted&#8221;. That number is the limit in bytes. Divide it by 1,048,576 and you get 40, which is 40 megabytes.<\/p>\n<h2>What causes it?<\/h2>\n<table>\n<thead>\n<tr>\n<th>Cause<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Heavy plugin<\/td>\n<td>A backup, page builder or SEO scanner running a big task<\/td>\n<\/tr>\n<tr>\n<td>Large image processing<\/td>\n<td>Uploading a very large photo that WordPress must resize<\/td>\n<\/tr>\n<tr>\n<td>Too many plugins at once<\/td>\n<td>Many plugins each loading code on every page<\/td>\n<\/tr>\n<tr>\n<td>Low host limit<\/td>\n<td>A cheap plan with a small memory cap<\/td>\n<\/tr>\n<tr>\n<td>Memory leak<\/td>\n<td>A buggy plugin that keeps asking for more<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How to fix it: increase the WordPress memory limit<\/h2>\n<p>Add define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8216;256M&#8217;); inside wp-config.php, above the line that says &#8220;That&#8217;s all, stop editing!&#8221;.<\/p>\n<p>Follow these steps:<\/p>\n<ul>\n<li>Open File Manager and go to public_html.<\/li>\n<li>Download a backup copy of wp-config.php.<\/li>\n<li>Right-click wp-config.php and choose Edit.<\/li>\n<li>Find the line that says &#8220;That&#8217;s all, stop editing! Happy publishing.&#8221;<\/li>\n<li>Paste the memory line just above it and save.<\/li>\n<li>Reload the page that showed the error.<\/li>\n<\/ul>\n<p>WordPress documentation describes WP_MEMORY_LIMIT as the setting that controls the PHP memory limit for WordPress only, and lists a default of 40 MB for a single site. That is why a heavier site often hits the limit quickly.<\/p>\n<h2>If the error comes back: check the host limit<\/h2>\n<p>Your server has its own limit, and WordPress cannot ask for more than the host allows. If you raise WP_MEMORY_LIMIT and the error stays, open your hosting panel and look for a PHP settings area with a memory limit option, or ask support to raise it. Some low-cost plans cap memory.<\/p>\n<p>You can also see the current limit inside WordPress under Tools, Site Health, Info, in the server section.<\/p>\n<h2>How much memory should you ask for?<\/h2>\n<table>\n<thead>\n<tr>\n<th>Site type<\/th>\n<th>Starting point<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Small blog or brochure site<\/td>\n<td>128M<\/td>\n<\/tr>\n<tr>\n<td>Business site with a page builder<\/td>\n<td>256M<\/td>\n<\/tr>\n<tr>\n<td>Online store or heavy plugins<\/td>\n<td>256M or more, with host approval<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>These are rough starting points, not rules. Raise in steps, test each time, and stop when the error disappears.<\/p>\n<h2>Find the real culprit<\/h2>\n<p>Raising the limit treats the symptom. To fix the cause, work through these checks:<\/p>\n<ul>\n<li>Note what you were doing when the error appeared, such as uploading an image or running a backup.<\/li>\n<li>Turn on debug logging as described in the white screen article, then read debug.log for the plugin name.<\/li>\n<li>Deactivate the named plugin and test.<\/li>\n<li>Reduce image sizes before uploading.<\/li>\n<li>Delete plugins you do not use.<\/li>\n<\/ul>\n<h2>A worked example (illustrative): importing a product catalogue<\/h2>\n<p>Imagine a store owner importing 800 products with images into a WooCommerce shop on a small hosting plan. Halfway through, the screen shows a memory exhausted message and the import stops. The owner raises WP_MEMORY_LIMIT to 256M, retries and the import completes. Later, the same error appears when a backup plugin runs. The cause this time is a backup of a now much larger site. The owner moves the backup to a quiet night hour and asks the host to raise the PHP limit. Two different tasks, two different fixes, one underlying cause: the site grew past its starting limits.<\/p>\n<h2>Warning signs your site is outgrowing its plan<\/h2>\n<p>If you keep raising the memory limit and errors return every few weeks, the problem is not a setting. Either a plugin is misbehaving or your site needs a bigger hosting plan. Check which plugins use the most resources and compare your traffic and content growth with the plan you bought.<\/p>\n<h2>Where to look if the error keeps returning<\/h2>\n<p>Keep a short log: the date, the task you were doing and the fix you applied. After two or three entries, a pattern usually shows up, such as the error appearing only during imports or backups. That pattern tells you whether to change a plugin, change a schedule or change your hosting plan.<\/p>\n<h2>Quick prevention checklist<\/h2>\n<ul>\n<li>Resize images before upload.<\/li>\n<li>Keep plugins lean and updated.<\/li>\n<li>Schedule heavy tasks, such as backups, for quiet hours.<\/li>\n<li>Review plugins every three months.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The WordPress memory exhausted error means your site ran out of the PHP memory it is allowed to use. Fix it by adding define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8216;256M&#8217;); to wp-config.php above the line that says to stop editing, then find the heavy plugin or image that caused the spike so the error does not return. What does the [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"template":"","meta":{"_acf_changed":false},"language":[179],"curriculum-category":[182,183,185],"custom_linking_tags":[],"class_list":["post-3177","curriculum","type-curriculum","status-publish","hentry","curriculum-category-digital-marketing","curriculum-category-digital-marketing-tutorials","curriculum-category-wordpress-website-building"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WordPress Memory Exhausted Error: How to Fix It<\/title>\n<meta name=\"description\" content=\"Fix the WordPress memory exhausted error: raise WP_MEMORY_LIMIT in wp-config.php, check your host limit and track down the plugin that ran out of memory.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Memory Exhausted Error: How to Fix It\" \/>\n<meta property=\"og:description\" content=\"Fix the WordPress memory exhausted error: raise WP_MEMORY_LIMIT in wp-config.php, check your host limit and track down the plugin that ran out of memory.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/\" \/>\n<meta property=\"og:site_name\" content=\"Entri Free Materials\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/\",\"url\":\"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/\",\"name\":\"WordPress Memory Exhausted Error: How to Fix It\",\"isPartOf\":{\"@id\":\"https:\/\/entri.app\/explore\/#website\"},\"datePublished\":\"2026-11-24T10:47:41+00:00\",\"description\":\"Fix the WordPress memory exhausted error: raise WP_MEMORY_LIMIT in wp-config.php, check your host limit and track down the plugin that ran out of memory.\",\"breadcrumb\":{\"@id\":\"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/entri.app\/explore\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Memory Exhausted Error: How to Fix It\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/entri.app\/explore\/#website\",\"url\":\"https:\/\/entri.app\/explore\/\",\"name\":\"Entri Free Materials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/entri.app\/explore\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/entri.app\/explore\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/entri.app\/explore\/#organization\",\"name\":\"Entri Free Materials\",\"url\":\"https:\/\/entri.app\/explore\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg\",\"contentUrl\":\"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg\",\"caption\":\"Entri Free Materials\"},\"image\":{\"@id\":\"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Memory Exhausted Error: How to Fix It","description":"Fix the WordPress memory exhausted error: raise WP_MEMORY_LIMIT in wp-config.php, check your host limit and track down the plugin that ran out of memory.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Memory Exhausted Error: How to Fix It","og_description":"Fix the WordPress memory exhausted error: raise WP_MEMORY_LIMIT in wp-config.php, check your host limit and track down the plugin that ran out of memory.","og_url":"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/","og_site_name":"Entri Free Materials","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/","url":"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/","name":"WordPress Memory Exhausted Error: How to Fix It","isPartOf":{"@id":"https:\/\/entri.app\/explore\/#website"},"datePublished":"2026-11-24T10:47:41+00:00","description":"Fix the WordPress memory exhausted error: raise WP_MEMORY_LIMIT in wp-config.php, check your host limit and track down the plugin that ran out of memory.","breadcrumb":{"@id":"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/entri.app\/explore\/digital-marketing\/wordpress-memory-exhausted-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/entri.app\/explore\/"},{"@type":"ListItem","position":2,"name":"WordPress Memory Exhausted Error: How to Fix It"}]},{"@type":"WebSite","@id":"https:\/\/entri.app\/explore\/#website","url":"https:\/\/entri.app\/explore\/","name":"Entri Free Materials","description":"","publisher":{"@id":"https:\/\/entri.app\/explore\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/entri.app\/explore\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/entri.app\/explore\/#organization","name":"Entri Free Materials","url":"https:\/\/entri.app\/explore\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/","url":"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg","contentUrl":"https:\/\/wp-cdn.entri.app\/explore\/2025\/03\/logo.svg","caption":"Entri Free Materials"},"image":{"@id":"https:\/\/entri.app\/explore\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/curriculum\/3177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/curriculum"}],"about":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/types\/curriculum"}],"author":[{"embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/users\/11"}],"wp:attachment":[{"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/media?parent=3177"}],"wp:term":[{"taxonomy":"language","embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/language?post=3177"},{"taxonomy":"curriculum-category","embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/curriculum-category?post=3177"},{"taxonomy":"custom_linking_tags","embeddable":true,"href":"https:\/\/entri.app\/explore\/wp-json\/wp\/v2\/custom_linking_tags?post=3177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}