<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex's Antidote &#187; Fatal Error</title>
	<atom:link href="http://alexsantidote.com/tag/fatal-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexsantidote.com</link>
	<description>...the cure for what ails you...</description>
	<lastBuildDate>Fri, 15 Jul 2011 02:09:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Upgrading to WordPress 2.9 Memory Error Fix</title>
		<link>http://alexsantidote.com/199/upgrading-to-wordpress-2-9-memory-error-fix/</link>
		<comments>http://alexsantidote.com/199/upgrading-to-wordpress-2-9-memory-error-fix/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 01:42:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Dashboard]]></category>
		<category><![CDATA[External Server]]></category>
		<category><![CDATA[Fatal Error]]></category>
		<category><![CDATA[Fatal Error Allowed Memory Size]]></category>
		<category><![CDATA[Ftp Ssh]]></category>
		<category><![CDATA[Htdocs]]></category>
		<category><![CDATA[Kind Folks]]></category>
		<category><![CDATA[Logo]]></category>
		<category><![CDATA[Memory Error]]></category>
		<category><![CDATA[Memory Limit]]></category>
		<category><![CDATA[Odd]]></category>
		<category><![CDATA[Risk]]></category>
		<category><![CDATA[Sexton]]></category>
		<category><![CDATA[Special Thanks]]></category>
		<category><![CDATA[Step 3]]></category>
		<category><![CDATA[Strange]]></category>
		<category><![CDATA[Upgrading Memory]]></category>
		<category><![CDATA[Upload]]></category>
		<category><![CDATA[Usr]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wp]]></category>

		<guid isPermaLink="false">http://alexsantidote.com/?p=199</guid>
		<description><![CDATA[<table cellpadding='10'><tr><td valign='top'></td><td valign='top' align='left'>So I noticed yesterday that a newer version of WordPress was available. I clicked on the upgrade link and proceeded as usual until I was presented with the following error: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2515174 bytes) in /var/www/usr/htdocs/wordpress/wp-includes/http.php on line 1327 This appeared very odd to me [...]<table width='100%'><tr><td align=right><p><b>(<a href='http://alexsantidote.com/199/upgrading-to-wordpress-2-9-memory-error-fix/' title='Upgrading to Wordpress 2.9 Memory Error Fix'>Read more...</a>)</b></p></td></tr></table></td></tr><tr><td><p>Categories: <a href="http://alexsantidote.com/category/antidotes/" title="View all posts in Tech Stuff" rel="category tag">Tech Stuff</a></p><p>Tags: <a href="http://alexsantidote.com/tag/blog/" rel="tag">Blog</a>, <a href="http://alexsantidote.com/tag/dashboard/" rel="tag">Dashboard</a>, <a href="http://alexsantidote.com/tag/external-server/" rel="tag">External Server</a>, <a href="http://alexsantidote.com/tag/fatal-error/" rel="tag">Fatal Error</a>, <a href="http://alexsantidote.com/tag/fatal-error-allowed-memory-size/" rel="tag">Fatal Error Allowed Memory Size</a>, <a href="http://alexsantidote.com/tag/ftp-ssh/" rel="tag">Ftp Ssh</a>, <a href="http://alexsantidote.com/tag/htdocs/" rel="tag">Htdocs</a>, <a href="http://alexsantidote.com/tag/kind-folks/" rel="tag">Kind Folks</a>, <a href="http://alexsantidote.com/tag/logo/" rel="tag">Logo</a>, <a href="http://alexsantidote.com/tag/memory-error/" rel="tag">Memory Error</a>, <a href="http://alexsantidote.com/tag/memory-limit/" rel="tag">Memory Limit</a>, <a href="http://alexsantidote.com/tag/odd/" rel="tag">Odd</a>, <a href="http://alexsantidote.com/tag/risk/" rel="tag">Risk</a>, <a href="http://alexsantidote.com/tag/sexton/" rel="tag">Sexton</a>, <a href="http://alexsantidote.com/tag/special-thanks/" rel="tag">Special Thanks</a>, <a href="http://alexsantidote.com/tag/step-3/" rel="tag">Step 3</a>, <a href="http://alexsantidote.com/tag/strange/" rel="tag">Strange</a>, <a href="http://alexsantidote.com/tag/upgrading-memory/" rel="tag">Upgrading Memory</a>, <a href="http://alexsantidote.com/tag/upload/" rel="tag">Upload</a>, <a href="http://alexsantidote.com/tag/usr/" rel="tag">Usr</a>, <a href="http://alexsantidote.com/tag/wordpress/" rel="tag">Wordpress</a>, <a href="http://alexsantidote.com/tag/wp/" rel="tag">Wp</a></p></td></tr></table>]]></description>
			<content:encoded><![CDATA[<fb:like href='http://alexsantidote.com/199/upgrading-to-wordpress-2-9-memory-error-fix/' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><div id="attachment_205" class="wp-caption alignright" style="width: 215px"><a href="http://alexsantidote.com/wordpress/wp-content/uploads/2010/01/credited_wordpress_logo.jpg" rel="lightbox[199]"><img class="size-medium wp-image-205 " title="WordPress Logo by koka_sexton via Flickr" src="http://alexsantidote.com/wordpress/wp-content/uploads/2010/01/credited_wordpress_logo-293x300.jpg" alt="WordPress Logo by koka_sexton via Flickr" width="205" height="210" /></a><p class="wp-caption-text">WordPress Logo by koka_sexton via Flickr</p></div>
<p>So I noticed yesterday that a newer version of WordPress was available. I clicked on the upgrade link and proceeded as usual until I was presented with the following error:</p>
<p><strong><code>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2515174 bytes) in /var/www/usr/htdocs/wordpress/wp-includes/http.php on line 1327</code></strong></p>
<p>This appeared very odd to me at first&#8230; 33,554,432 bytes allowed, but when it attempted to allocate only 2,515,174 bytes it caused a fatal error? Well as strange as that looks, there&#8217;s an easy fix&#8230;</p>
<p><em>(note, I assume you already backed up your DB and existing wordpress installation &#8212; proceed at your own risk)</em></p>
<p>To Fix*: (assuming you want to use the auto-upgrade feature still and not a manual upgrade)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<ol>
<li>Open your existing <strong>wp-config.php</strong> file in a text editor of your choice<br />
<em>(note: if your blog is hosted on your computer you can just open the file and save it when you&#8217;re done, if your blog is hosted on an external server like mine is, you&#8217;ll probably need to FTP or SSH in, retrieve a copy, edit, then upload the new version).</em></li>
<li>Scroll down to almost the end of the file and you should see a comment that looks like this:<br />
<strong><br />
</strong></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; background-color: #ffffff; width: 400px; height: 30px; text-align: left;" dir="ltr"><strong>/* That's all, stop editing! Happy blogging. */</strong></pre>
<p><strong> </strong><br />
you want to put the code in step 3 just above this comment.</li>
<li>Insert the following line of code on it&#8217;s own line (mine is on line 67):<br />
<strong><br />
</strong></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; background-color: #ffffff; width: 400px; height: 30px; text-align: left;" dir="ltr"><strong>define('WP_MEMORY_LIMIT', '64M');
</strong></pre>
<p><strong> </strong></li>
<li>Save the file <em>(and be sure to upload the new copy if you have an external host)</em>.</li>
<li>Go back to your dashboard, click the upgrade link, and proceed as normal.</li>
</ol>
<p>I hope this helps someone, I know it helped me&#8230;</p>
<p>*special thanks go to the kind folks found here: <a title="Wordpress Support Forums" href="http://wordpress.org/support/topic/344567">http://wordpress.org/support/topic/344567</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexsantidote.com/199/upgrading-to-wordpress-2-9-memory-error-fix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

