{"id":2463,"date":"2022-08-30T15:25:04","date_gmt":"2022-08-30T15:25:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/17\/wordpress-memory-on-3-x-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:04","modified_gmt":"2022-08-30T15:25:04","slug":"wordpress-memory-on-3-x-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/wordpress-memory-on-3-x-collection-of-common-programming-errors\/","title":{"rendered":"WordPress memory on 3.X-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m using the WP_Overview plugin to view WordPress&#8217; memory limit.<\/p>\n<p>It&#8217;s showing <code>Mem: WP 32M (def) Usage 25% 32.59M of PHP Limit 128M<\/code>.<\/p>\n<p>However, in my <code>functions.php<\/code>, I have the following line of code: <code>define('WP_MEMORY_LIMIT','96M');<\/code>.<\/p>\n<p>I&#8217;ve also installed the Change Memory Limit plugin and tried updating the figure from there, again to 96M.<\/p>\n<p>Despite this, the Overview plugin is still showing 32M.<\/p>\n<p>Three questions in one:<\/p>\n<ol>\n<li>Which gets used, the PHP limit or the WP limit?<\/li>\n<li>Is this plugin a good way of checking the limit, or should I try a different method?<\/li>\n<li>Is this potentially a problem with WP 3.X? I found this post on WP Support which might imply that it is. Their solution suggests moving the <code>PHP.INI<\/code> but I&#8217;m not particularly keen on doing that &#8211; surely it can&#8217;t be safe?<\/li>\n<\/ol>\n<p>Thanks in advance,<\/p>\n<p id=\"rop\"><small>Originally posted 2014-01-17 07:09:00. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using the WP_Overview plugin to view WordPress&#8217; memory limit. It&#8217;s showing Mem: WP 32M (def) Usage 25% 32.59M of PHP Limit 128M. However, in my functions.php, I have the following line of code: define(&#8216;WP_MEMORY_LIMIT&#8217;,&#8217;96M&#8217;);. I&#8217;ve also installed the Change Memory Limit plugin and tried updating the figure from there, again to 96M. Despite this, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2463","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2463"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2463\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}