<?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>Musings of a Software Engineer &#187; wordpress</title>
	<atom:link href="http://phoenix.adamcoulthard.co.uk/blogs/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://phoenix.adamcoulthard.co.uk/blogs</link>
	<description>The gentle ramblings of a bored software engineer</description>
	<lastBuildDate>Mon, 07 Jun 2010 10:26:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Spam filters</title>
		<link>http://phoenix.adamcoulthard.co.uk/blogs/2010/04/07/spam-filters/</link>
		<comments>http://phoenix.adamcoulthard.co.uk/blogs/2010/04/07/spam-filters/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 21:04:45 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://phoenix.adamcoulthard.co.uk/blogs/?p=238</guid>
		<description><![CDATA[After implementing a spam filter on my blogs a few months ago in an attempt to stop the spam comments, it seems to have worked really well in stopping all comments from everyone.  The idea of the first plugin was it asked a simple maths question of the user to ensure its a person rather [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://phoenix.adamcoulthard.co.uk/blogs/files/2010/04/spam.jpg"><img class="alignleft size-medium wp-image-239" title="Spam" src="http://phoenix.adamcoulthard.co.uk/blogs/files/2010/04/spam-300x300.jpg" alt="" width="180" height="180" /></a>After implementing a spam filter on my blogs a few months ago in an attempt to stop the spam comments, it seems to have worked really well in stopping all comments from everyone.  The idea of the first plugin was it asked a simple maths question of the user to ensure its a person rather than a human being.  I&#8217;m pretty sure that it was working ok, but we got an email the other day saying they couldnt post on the blog.  So after a quick check (I&#8217;m not sure what happened) but the plugin was no longer working as I would have expected.  The only thing that I can think of is that an update on wordpress itself caused it too stop working.</p>
<p>After a few searches on the wordpress plugin site I found a new comment spam protector and installed that and it was really simple to get it up and running.  Unfortunately for some reason when this was added to the comments forms they were put in an odd place, underneath the submit button.</p>
<p>So the simple install turned into updating all of the themes that I was using to ensure that it was being placed above the submit button.  I also did a quick hack on the php to remove the label that was being displayed.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fphoenix.adamcoulthard.co.uk%2Fblogs%2F2010%2F04%2F07%2Fspam-filters%2F&amp;linkname=Spam%20filters"><img src="http://phoenix.adamcoulthard.co.uk/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://phoenix.adamcoulthard.co.uk/blogs/2010/04/07/spam-filters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress pages hit internal server error</title>
		<link>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/08/wordpress-pages-hit-internal-server-error/</link>
		<comments>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/08/wordpress-pages-hit-internal-server-error/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:17:46 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[500]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[directories]]></category>
		<category><![CDATA[internal server error]]></category>
		<category><![CDATA[rewrite url]]></category>
		<category><![CDATA[wordpress mu]]></category>

		<guid isPermaLink="false">http://phoenix.adamcoulthard.co.uk/blogs/?p=181</guid>
		<description><![CDATA[When I was making the move to wordpress mu one of the strangess things that i encountered was a problem with pages and looking at full page articles.  When every I click on the links I would get an 500 internal server error returned.  Since the way that wordpress mu works it has to rewrite [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_172" class="wp-caption alignleft" style="width: 105px"><img class="size-full wp-image-172" title="Wordpress MU" src="http://phoenix.adamcoulthard.co.uk/blogs/files/2009/12/wordpress.jpg" alt="Wordpress MU" width="95" height="95" /><p class="wp-caption-text">Wordpress MU</p></div>
<p>When I was making the move to wordpress mu one of the strangess things that i encountered was a problem with pages and looking at full page articles.  When every I click on the links I would get an 500 internal server error returned.  Since the way that wordpress mu works it has to rewrite the url quite abit to understand what pages to actually get under the covers, for example:</p>
<p>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/08/wordpress-page-hit-internal-server-error</p>
<p>is not an actual page on the server it gets rewritten to something that the server can handle under the covers.  I think alot of the problems were occuring because of the way that I had installed wordpress mu (at least this is what I think).  I had installed wordpress mu into a directory on the webserver rather than putting it into the root directory.  So when it created the .htaccess file with file rewrite information it added a base rewrite of that directory.  So if I installed it into wordpressmu/ then its rewrite base would have been /wordpressmu/ in the htaccess file.</p>
<p>After alot of googling with very little luck and attempting to use the write logging again with no luck, I started to think about what that rewrite base would mean to the system.  So I had a cPanel setup of *.adamcoulthard.co.uk pointing at /html/wordpressmu/ meaning that all the sites had to go to the wordpressmu folder straight away.  So if the rewrite base was adding on /wordpressmu/ then it would mean that it was going to be trying to navigate to /wordpressmu/wordpressmu/&#8230;. leading to the internal server error (I would have expected a 404 not found but nevermind).</p>
<p>So what I did was set the base to being just / and that solved the problems of loading the articles.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fphoenix.adamcoulthard.co.uk%2Fblogs%2F2009%2F12%2F08%2Fwordpress-pages-hit-internal-server-error%2F&amp;linkname=Wordpress%20pages%20hit%20internal%20server%20error"><img src="http://phoenix.adamcoulthard.co.uk/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/08/wordpress-pages-hit-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where have the images gone?</title>
		<link>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/06/where-have-the-images-gone/</link>
		<comments>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/06/where-have-the-images-gone/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 10:38:56 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[missing]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[Wordpres Mu]]></category>

		<guid isPermaLink="false">http://phoenix.adamcoulthard.co.uk/blogs/?p=175</guid>
		<description><![CDATA[After the upgrade to Wordpress MU for some reason I &#8220;lost&#8221; all of my images from this blog, oddly the other blog did not have this problem which was very strange!  After abit of digging I noticed that the url&#8217;s being returned for the images had /uploads/ in them rather than /files/ I assumed that [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_172" class="wp-caption alignleft" style="width: 105px"><img class="size-full wp-image-172" title="Wordpress MU" src="http://phoenix.adamcoulthard.co.uk/blogs/files/2009/12/wordpress.jpg" alt="Wordpress MU" width="95" height="95" /><p class="wp-caption-text">Wordpress MU</p></div>
<p>After the upgrade to Wordpress MU for some reason I &#8220;lost&#8221; all of my images from this blog, oddly the other blog did not have this problem which was very strange!  After abit of digging I noticed that the url&#8217;s being returned for the images had /uploads/ in them rather than /files/ I assumed that the old blog was setup slightly different that caused this problem.</p>
<p>The simplest way to fix this was to manually edit all the posts to ensure that they were correct, rather than using the wordpress admin pages I decide to use phpmyadmin again because it was so much easier to edit them all in one go rather than having to navigate pages.</p>
<p>Now all the images are working as I would have expected with is fantastic <img src='http://phoenix.adamcoulthard.co.uk/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fphoenix.adamcoulthard.co.uk%2Fblogs%2F2009%2F12%2F06%2Fwhere-have-the-images-gone%2F&amp;linkname=Where%20have%20the%20images%20gone%3F"><img src="http://phoenix.adamcoulthard.co.uk/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/06/where-have-the-images-gone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress MU</title>
		<link>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/05/wordpress-mu/</link>
		<comments>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/05/wordpress-mu/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 12:49:53 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[subdirectories]]></category>
		<category><![CDATA[subdomains]]></category>
		<category><![CDATA[Wordpres Mu]]></category>
		<category><![CDATA[WP]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://phoenix.adamcoulthard.co.uk/blogs/?p=171</guid>
		<description><![CDATA[As you have probably noticed the site has been bouncing up and down over the last couple of days.  I got an email from my hosting provider to say that I had run out of space on my hosting account.  I had two installs of wordpress on it and wanted to add another but without [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_172" class="wp-caption alignleft" style="width: 105px"><img class="size-full wp-image-172" title="Wordpress MU" src="http://phoenix.adamcoulthard.co.uk/blogs/files/2009/12/wordpress.jpg" alt="Wordpress MU" width="95" height="95" /><p class="wp-caption-text">Wordpress MU</p></div>
<p>As you have probably noticed the site has been bouncing up and down over the last couple of days.  I got an email from my hosting provider to say that I had run out of space on my hosting account.  I had two installs of wordpress on it and wanted to add another but without the space (my hosting provider has upped my limit).</p>
<p>So after abit of searching I tried to use wp-hive which is suppose to be able to use the same installed wordpress code.  I gave it abit of a whirl but at that time it did not provide what I needed, ie the ability to easily move my two old wordpress sites into a central one.  After abit more googling and reading around I thought I should probably try the proper version of wordpress mulit user (WPMU) environment, this runs wordpress.com itself and a number of other high profile blogging sites.</p>
<p>The install of WPMU as for a normal wordpress install was really smooth and worked first time.  I suppose the biggest choice that I had to make when installing was whether to use subdomains or subdirectories.  Initially I thought subdomains so installed it, running through the rest of the install I then hit on whether I could actually update my hosting account to point to the subdomains to the correct location.  So I switched to subdirectories (using a great <a href="http://welcome.totheinter.net/2009/05/06/changing-wordpress-mu-from-subdomains-to-subdirectories/">article</a>).</p>
<p>Using the import I attempted to convert this blog first into the WPMU environment and then switched the subdomain pointer that I already had to point to WPMU.  Sadly this didnt work (still not 100% sure why but I suspect it was something on the URL rewriting), so I had to find a way to do the subdomains with my host.</p>
<p>More googling some time later I found a little trick for cpanel, that in the subdomain pointing its possible to use * as a subdomain and if the host has done the hardwork already in apache (or what ever is being used) all should work.  So I switched WPMU back to being subdomains and setup the blog correctly and everything seemed great!!!</p>
<p>Sadly I hit a few errors as you can probably see if you are reading this in the next day or so all the photos appear to have vanished from the blog! I also hit another couple of problems that I will blog in later blog posts so that they are easier to find for people searching.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fphoenix.adamcoulthard.co.uk%2Fblogs%2F2009%2F12%2F05%2Fwordpress-mu%2F&amp;linkname=Wordpress%20MU"><img src="http://phoenix.adamcoulthard.co.uk/blogs/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://phoenix.adamcoulthard.co.uk/blogs/2009/12/05/wordpress-mu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
