<?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>FiddyP &#187; 500 internal server error</title>
	<atom:link href="http://fiddyp.co.uk/tag/500-internal-server-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://fiddyp.co.uk</link>
	<description>The personal blog of Andy Bailey</description>
	<lastBuildDate>Tue, 17 Jan 2012 09:02:09 +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>CommentLuv gets CommentSmothered!</title>
		<link>http://fiddyp.co.uk/fix-wordpress-500-internal-server-error/</link>
		<comments>http://fiddyp.co.uk/fix-wordpress-500-internal-server-error/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 11:05:04 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Blog News]]></category>
		<category><![CDATA[500 internal server error]]></category>
		<category><![CDATA[commentluv]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[profit]]></category>
		<category><![CDATA[sh-autolink]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fiddyp.co.uk/fix-wordpress-500-internal-server-error/</guid>
		<description><![CDATA[I tried to respond to a comment on my CommentLuv plugin page this morning, and I was greeted with this error, 500 Error — Internal Server Error. There [..]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ffiddyp.co.uk%2Ffix-wordpress-500-internal-server-error%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ffiddyp.co.uk%2Ffix-wordpress-500-internal-server-error%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I tried to respond to a comment on my CommentLuv plugin page this morning, and I was greeted with this error,<br />
<strong>500 Error — Internal Server Error. There has been an internal server error</strong><br />
oh noes!! The site was working fine for the main index page but single posts kept on throwing up a 500 error <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>I had a quick search of the WordPress forums and found a variety of posts from people experiencing the same problem, each one with a different solution. I went through each solution until I revived the site back to it&#8217;s normal functionality.. here&#8217;s what I did..</p>
<ol>
<li><strong>.htaccess</strong><br />
Some people had the problem because their htaccess file was not writable or their server had mod_rewrite disabled. I tried deleting the htaccess file and then going back to &#8216;options/permalinks&#8217; and updating the permalink structure. The update went through with no problems (sometimes it will say &#8220;could not update htaccess&#8221; which means it is not writable by the server). The problem still persisted though..</li>
<li><strong>wp-cache</strong><br />
I thought it might be a cache problem seeing as the CommentLuv page gets so many visitors (it has a pr5 too!), I disabled the cache plugin.<br />
still no joy&#8230;</li>
<li><strong>php.ini &#8211; only 8m of memory?</strong><br />
I thought it might be too much memory used (I was close) so I edited php.ini in the root of my hosting folder and put this line in.<br />
<strong>memory_limit=16M</strong><br />
Not successful <img src='http://fiddyp.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </li>
<li><strong>Too much content?</strong><br />
I tried browsing to the CommentLuv page on my mobile phone once and it crashed with &#8220;out of memory&#8221; error and considering it has (atm) 199 responses, I thought that might be something to do with it. I know my stats sometimes give me a 500 internal server error when it takes a long time to load so that looked to be the problem.<br />
I downloaded a plugin called &#8216;<a href="http://www.keyvan.net/code/paged-comments/">paged-comments</a>&#8216; and installed it, I particularly like the way you can stop it from paging every post and only choose which posts need paged comments by adding a custom field to the post editing screen.</p>
<p>Sorted that out and tried to view the page, it loaded partly! almost there!</li>
<li><strong>Plugin memory hog.</strong><br />
On the nearly loaded page there was an out of memory error relating to <a href="http://www.rockschtar.de/wp-plugin-sh-autolink/">sh-autolink</a> (a plugin which automatically makes certain words in to html links) so I disabled that and SUCCESS!<br />
It all works fine now.</li>
</ol>
<p>A combination of too many comments and a plugin that scans the whole text for keywords led to my 500 internal server error for WordPress, it&#8217;s now fixed with a neat plugin and a quick removal of another. phew!</p>
<p>The CommentLuv plugin page is now up and working fine again, I never realized that it would get so much attention when I first drafted it. Thanks everyone for using CommentLuv!</p>
]]></content:encoded>
			<wfw:commentRss>http://fiddyp.co.uk/fix-wordpress-500-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

