{"id":13594,"date":"2010-06-19T23:26:58","date_gmt":"2010-06-19T17:56:58","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=13594"},"modified":"2020-05-24T10:29:08","modified_gmt":"2020-05-24T04:59:08","slug":"fix-allowed-memory-size-exhausted-errors-wordpress-3-upgrade","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2010\/06\/fix-allowed-memory-size-exhausted-errors-wordpress-3-upgrade\/","title":{"rendered":"Fix &#8220;Allowed Memory Size Exhausted&#8221; Errors with WordPress 3.0 Upgrade"},"content":{"rendered":"<p>A lot of people upgrading to WordPress 3.0 are encountering &#8220;Fatal error: Allowed memory size exhausted&#8221; errors on their blog and the upgrade fails. There are some solutions which WordPress experts suggest.<\/p>\n<h3>&#8220;Allowed Memory Size Exhausted&#8221; Errors<\/h3>\n<p>This is how typically the error looks like &#8211; \u00a0Fatal error: Allowed memory size of 33554432 bytes exhausted<\/p>\n<p><strong>Why does this happen?<\/strong> Web reports indicate that the size of the download package for WordPress 3.0 is larger than previous versions (due to merger with WordPress MU and new Twenty Ten theme), due to which WordPress needs more memory to download the larger file. Since most web servers have set limit upto 32MB, whenever this is exceeded, the errors occur.<\/p>\n<h3>Fix &#8220;Allowed Memory Size Exhausted&#8221; Errors in WordPress 3<\/h3>\n<p>Here are some\u00a0<a href=\"https:\/\/wordpress.org\/support\/topic\/fatal-error-on-upgrade-allowed-memory-size-exhausted\/\" rel=\"noopener\">solutions<\/a> which WordPress experts suggest.<\/p>\n<ul>\n<li>Login your server via FTP (I prefer Filezilla)<\/li>\n<li>Download <em>wp-config.php<\/em> located in the root of your WordPress install<\/li>\n<li>Edit it using a text editor like Notepad<\/li>\n<li>Add this line after after the <em>&lt;?php<\/em> tag<br \/>\n<code>define('WP_MEMORY_LIMIT', '64M');<\/code><\/li>\n<li>Upload and replace wp-config.php file<\/li>\n<\/ul>\n<p>All should we working fine now. You can also choose \u00a0a value higher than 64 like 128M, but 64 should do the trick. Always keep a backup of the original wp-config.php file incase something goes wrong.<\/p>\n<p><strong>Update<\/strong>:\u00a0Here is another suggested fix &#8211; locate your <em>php.ini<\/em> file (if it exists), and if it shows 32M, change to 64M:<br \/>\n<code>memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)<\/code><\/p>\n<p>But if you don&#8217;t have access to PHP.ini try adding this to an .htaccess file:<br \/>\n<code>php_value memory_limit 64M<\/code><\/p>\n<p><strong>If all these steps do not work?<\/strong> Then your web hosting provider may have prevented PHP from increasing the memory limit, and you can contact your webhosting support to increase the memory limit for your server.<\/p>\n<p><strong>Use a WordPress Plugin<\/strong> &#8211; <a href=\"https:\/\/wordpress.org\/plugins\/memory-bump\/\" rel=\"noopener\">Memory Bump<\/a> is a simple WordPress plugin\u00a0which can add this line to your wp-config.php file (with 256MB limit) automatically, no PHP file editing manually required. Simply install and activate the WordPress plugin, and the memory limit error will go away (again only if your hosting allows PHP to raise the limit on your account), then you can deactivate once done.<\/p>\n<p>I think WordPress needs to address this memory issue soon, by reducing the package as much as possible, as it will be affecting thousands of WordPress bloggers upgrading WordPress on shared hosting servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A lot of people upgrading to WordPress 3.0 are encountering &#8220;Fatal error: Allowed memory size exhausted&#8221; errors on their blog&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6],"tags":[17],"class_list":["post-13594","post","type-post","status-publish","format-standard","hentry","category-blogging","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/13594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=13594"}],"version-history":[{"count":0,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/13594\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=13594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=13594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=13594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}