<?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>Bodu's S.E.O, Design and Social Networking  Blog &#187; wordpress tips</title>
	<atom:link href="http://www.boduweb.com/blog/category/wordpress-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.boduweb.com/blog</link>
	<description>Thoughts and experiences on search engine optimisation, web design, and social networks</description>
	<lastBuildDate>Mon, 12 Apr 2010 07:48:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing that &#8216;Plugin could not be activated because it triggered a fatal error.&#8217; problem with wordpress plugins</title>
		<link>http://www.boduweb.com/blog/12200910/fixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins/</link>
		<comments>http://www.boduweb.com/blog/12200910/fixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 09:27:59 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[web hosting]]></category>
		<category><![CDATA[website troubleshooting]]></category>
		<category><![CDATA[wordpress tips]]></category>
		<category><![CDATA[ftp configuration]]></category>
		<category><![CDATA[no such file error]]></category>
		<category><![CDATA[wordpress plugin errors]]></category>
		<category><![CDATA[wordpress plugins]]></category>

		<guid isPermaLink="false">http://www.boduweb.com/blog/?p=127</guid>
		<description><![CDATA[
			
				
			
		
The huge range of useful plug-ins for Wordpress are a contributing factor to its huge popularity both as a blogging platform and as a content management system. The great thing about the plugin system is that &#8211; in theory at least &#8211; it&#8217;s dead simple to setup. You upload the plugin to your plugins directory, [...]


Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Digg"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Sphinn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="del.icio.us"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;t=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Facebook"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Mixx"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Google"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins&amp;body=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F" title="E-mail this story to a friend!"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;t=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Furl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/furl.png" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="LinkedIn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.spurl.net/spurl.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Spurl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/spurl.png" title="Spurl" alt="Spurl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="StumbleUpon"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=" title="Taggly"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/taggly.png" title="Taggly" alt="Taggly" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F" title="Technorati"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F" title="TwitThis"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></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%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;source=boduweb&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>The huge range of useful plug-ins for Wordpress are a contributing factor to its huge popularity both as a blogging platform and as a content management system. The great thing about the plugin system is that &#8211; in theory at least &#8211; it&#8217;s dead simple to setup. You upload the plugin to your plugins directory, then go into the wordpress admin area and activate it. Any special instructions will then appear from the plugin itself.</p>
<p>Of course life isn&#8217;t always that simple. A client called early this morning saying that he was having problems installing a new plugin (the mailchimp wordpress plugin- that he was getting a &#8216;Plugin could not be activated because it triggered a <strong>fatal error</strong>.&#8217; message. Working through his problem is hopefully instructive for others, so here&#8217;s what we did.</p>
<h2>Check the Wordpress error message</h2>
<p>Error messages appear for a very good reason. They&#8217;ll give you the clue as to what the problem is. So try to activate the plugin, and at the top of your plugins page, when a problem occurs, you&#8217;ll get an error message.</p>
<p>In many cases the problem exists because of a limit placed by the server setup on memory allocated to php. In this case you&#8217;ll get a &#8216;<strong>Allowed memory size of xxx bytes exhausted while upgrading Wordpress</strong>&#8216;. There&#8217;s a good discussion on how to fix this very common problem <a href="http://www.webhostingdiscussion.net/wordpress-kb/wordpress-knowledge-base/wordpress-fatal-error-allowed-memory-size-of-xxx-bytes-exhausted-while-upgrading-wordpress.htm">here</a></p>
<p>That, though wasn&#8217;t the problem for this client. Instead he was getting the following error:</p>
<p>&#8216;<strong>Warning</strong>: main(/public_html/testsite/wp-content/plugins/mailchimp/MCAPI.class.php) [<a href="http://www.cerritotropicalpanama.com/tabogaislandhotel/wp-admin/function.main">function.main</a>]: failed to open stream: No such file or directory in<strong>/public_html/testsite/wp-content/plugins/mailchimp/mailchimp.php</strong> on line <strong>28</strong></p>
<p>This straight away gives us something concrete to work on. In the activation of the plugin the file MCAPI.class.php is called, and if not present will produce the above error.</p>
<p>&#8220;But it is there&#8221;, an increasingly frustrated client remarked &#8211; &#8220;after all, I uploaded the latest version of the plugin directly, and even went into the file-manager to check if the file was there!&#8221;.</p>
<p>A quick check on the server confirmed my  hunch. <strong>The file was there, but was in lowercase</strong> &#8211; rather than the specified MCAPI.class.php.  In grammatical terms I&#8217;m as guilty as the next for my often random capitalisation of terms. This often produces mild irritation from people reading things I&#8217;ve written, but rarely causes downright confusion &#8211; Web Servers, though, are a different case.</p>
<p>A file in lowercase is not necessarily the same as a file in uppercase &#8211; for example, on a unix system you can have both existing in the same folder.  So, the simple solution? <strong>A quick rename of the offending file to its correct uppercase format &#8211; and bob&#8217;s your uncle the mailchimp plugin was fine</strong></p>
<h2>The offender? Take a look at your ftp client</h2>
<p>This solved the immediate problem, but how had it occured in the first place? After all, Client A. had done everything according to the book &#8211; he&#8217;d downloaded the latest version of the plugin. He&#8217;d checked that it was compatible with the version of wordpress he was running (this is another useful check to do whenever having problems with a plugin), and uploaded it.</p>
<p>A quick look at his ftp program settings revealed the problem. Using the wonderful Total Commander program, he&#8217;d missed one tell-tale setting which was causing all the problems:</p>
<p><img class="aligncenter size-full wp-image-128" title="wordpress ftp error" src="http://www.boduweb.com/blog/wp-content/uploads/2009/12/ftp-error-message.jpg" alt="wordpress ftp error" width="250" height="106" />That little box checked, &#8216;convert file names to lowercase&#8217; was the problem. So, from now on, it&#8217;s unchecked, and all systems are go.</p>
<p>Have you had any other problems installing plugins, for which there was a simple solution? Let us know and we&#8217;ll link to them.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Digg"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Sphinn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="del.icio.us"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;t=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Facebook"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Mixx"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Google"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins&amp;body=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F" title="E-mail this story to a friend!"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;t=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Furl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/furl.png" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="LinkedIn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.spurl.net/spurl.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="Spurl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/spurl.png" title="Spurl" alt="Spurl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F&amp;title=Fixing%20that%20%27Plugin%20could%20not%20be%20activated%20because%20it%20triggered%20a%20fatal%20error.%27%20problem%20with%20wordpress%20plugins" title="StumbleUpon"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=" title="Taggly"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/taggly.png" title="Taggly" alt="Taggly" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F" title="Technorati"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F12200910%2Ffixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins%2F" title="TwitThis"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.boduweb.com/blog/12200910/fixing-that-plugin-could-not-be-activated-because-it-triggered-a-fatal-error-problem-with-wordpress-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shortening the_excerpt in wordpress with substr</title>
		<link>http://www.boduweb.com/blog/11200930/shortening-the_excerpt-in-wordpress-with-substr/</link>
		<comments>http://www.boduweb.com/blog/11200930/shortening-the_excerpt-in-wordpress-with-substr/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 15:30:34 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[general thoughts]]></category>
		<category><![CDATA[wordpress tips]]></category>
		<category><![CDATA[php and wordpress]]></category>
		<category><![CDATA[the_excerpt template tag]]></category>
		<category><![CDATA[wordpress the loop]]></category>

		<guid isPermaLink="false">http://www.boduweb.com/blog/?p=115</guid>
		<description><![CDATA[
			
				
			
		
Things have been very busy here for the last couple of months, so sorry for the lack of posts. We hope to resume normal posting shortly.
In the meantime, here&#8217;s a quick and simple wordpress tip that&#8217;s come in handy for us so we thought it would be good to share.
One common problem you can run [...]


Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Digg"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Sphinn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="del.icio.us"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;t=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Facebook"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Mixx"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Google"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Shortening%20the_excerpt%20in%20wordpress%20with%20substr&amp;body=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F" title="E-mail this story to a friend!"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;t=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Furl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/furl.png" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="LinkedIn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.spurl.net/spurl.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Spurl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/spurl.png" title="Spurl" alt="Spurl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="StumbleUpon"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=" title="Taggly"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/taggly.png" title="Taggly" alt="Taggly" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F" title="Technorati"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F" title="TwitThis"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></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%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;source=boduweb&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Things have been very busy here for the last couple of months, so sorry for the lack of posts. We hope to resume normal posting shortly.</p>
<p>In the meantime, here&#8217;s a quick and simple wordpress tip that&#8217;s come in handy for us so we thought it would be good to share.</p>
<p>One common problem you can run into, when customising wordpress themes, is the default length of  text returned by the handy template tag the_excerpt . The default, which is set at 55 words (not characters!) is often to big a chunk to fit its required purpose &#8211; that of providing a teaser for posts.</p>
<p>What to do? Well, you can add code into the functions.php file to change the default size of the_excerpt site-wide &#8211; as detailed <a href="http://wordpress.org/support/topic/231953">here </a></p>
<p>What, though, if you just want to reduce the excerpt on a specific page &#8211; for example on your home page (by default index.php)?</p>
<p>Using the simple php command  <strong>substr</strong> you can reduce the_excerpt directly in <a href="http://codex.wordpress.org/The_Loop">the loop</a>.  You&#8217;re going to have to use the get_the_excerpt hook first though, as you can&#8217;t run substr directly on the_excerpt template tag.</p>
<p>Let&#8217;s take the example of the front page:</p>
<p>The loop starts here: <strong>&lt;?php while (have_posts()) : the_post(); ?&gt;</strong> returning template tags like the_title(), the_author(), and the_excerpt() for use within the template.</p>
<p>We&#8217;re going to create a variable called $excerpt and assign the contents of get_the_excerpt() to it. So &lt;<strong>?php while (have_posts()):the_post();$excerpt=get_the_excerpt();?&gt;</strong></p>
<p>Then, wherever in your template you want to reduce the size of the_excerpt simply replace it with <strong>&lt;?php echo substr($excerpt,0,x);?&gt; </strong> where x is the number of characters (not words!) that you want to display.  So, to display an excerpt of 50 characters you would have <strong>&lt;?php echo substr($excerpt,0,50);?&gt;</strong></p>
<h2>Adding a &#8216;Read More&#8217; link</h2>
<p>You should, of course, provide a link to the full post when using the_excerpt or any variation on it. To do that, simply add <strong>&lt;a href=&#8221;&lt;?php echo the_permalink();?&gt;&#8221;&gt;[ read more...]&lt;/a&gt;</strong> immediately after your excerpt code.</p>
<p><strong><br />
</strong></p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Digg"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Sphinn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="del.icio.us"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;t=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Facebook"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Mixx"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Google"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Shortening%20the_excerpt%20in%20wordpress%20with%20substr&amp;body=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F" title="E-mail this story to a friend!"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;t=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Furl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/furl.png" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="LinkedIn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.spurl.net/spurl.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="Spurl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/spurl.png" title="Spurl" alt="Spurl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F&amp;title=Shortening%20the_excerpt%20in%20wordpress%20with%20substr" title="StumbleUpon"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=" title="Taggly"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/taggly.png" title="Taggly" alt="Taggly" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F" title="Technorati"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F11200930%2Fshortening-the_excerpt-in-wordpress-with-substr%2F" title="TwitThis"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.boduweb.com/blog/11200930/shortening-the_excerpt-in-wordpress-with-substr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems setting up your own Wordpress contact form?</title>
		<link>http://www.boduweb.com/blog/05200915/problems-setting-up-your-own-wordpress-contact-form/</link>
		<comments>http://www.boduweb.com/blog/05200915/problems-setting-up-your-own-wordpress-contact-form/#comments</comments>
		<pubDate>Fri, 15 May 2009 11:01:32 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[wordpress tips]]></category>
		<category><![CDATA[web design tips]]></category>
		<category><![CDATA[wordpress forms and 404 error]]></category>

		<guid isPermaLink="false">http://www.boduweb.com/blog/?p=54</guid>
		<description><![CDATA[
			
				
			
		
Stumbled across this problem recently and thought it worth sharing, for anyone who&#8217;s trying to set up a form on wordpress and on submission gets a 404 error. 
Recently we set up a contact form for a client on their wordpress blog. Many people simply use one of the numerous plugins available to achieve this, [...]


Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Digg"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Sphinn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="del.icio.us"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;t=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Facebook"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Mixx"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Google"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F&amp;body=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F" title="E-mail this story to a friend!"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;t=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Furl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/furl.png" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="LinkedIn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.spurl.net/spurl.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Spurl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/spurl.png" title="Spurl" alt="Spurl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="StumbleUpon"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=" title="Taggly"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/taggly.png" title="Taggly" alt="Taggly" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F" title="Technorati"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F" title="TwitThis"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></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%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;source=boduweb&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Stumbled across this problem recently and thought it worth sharing, for anyone who&#8217;s trying to set up a form on wordpress and on submission gets a 404 error. </p>
<p>Recently we set up a contact form for a client on their wordpress blog. Many people simply use one of the numerous plugins available to achieve this, but the client wanted some particular customisation for this form so we decided to set up a page template to handle the contact form.</p>
<p>All well and good, until the form gets submitted (regardless of where the action is pointed). Some scratching of heads ensued, as we tested the form independently of wordpress. This post on the wordpress support site gave an indication of <a href="http://wordpress.org/support/topic/209747">the problem</a>. Using the field &#8216;name&#8217; was causing all to go awry. Change your field name to something like cname and the form works fine.</p>
<p>Great &#8211; that&#8217;s a solution, but why does it happen? Well, you can get the answer quickly by adding <?php echo $name; ?> to your form template. Load the page and you&#8217;ll see that $name is a variable already used by Wordpress for the slug, or the part of the url specific to a given page when using the customised permalinks structure. When you assign a field the id of &#8216;name&#8217; you send wordpress looking for a page that doesn&#8217;t exist, hence your 404 error.</p>



Share and Enjoy:


	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Digg"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://sphinn.com/submit.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Sphinn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="del.icio.us"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;t=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Facebook"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Mixx"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Google"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" href="mailto:?subject=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F&amp;body=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F" title="E-mail this story to a friend!"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.furl.net/storeIt.jsp?u=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;t=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Furl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/furl.png" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="LinkedIn"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.spurl.net/spurl.php?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="Spurl"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/spurl.png" title="Spurl" alt="Spurl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F&amp;title=Problems%20setting%20up%20your%20own%20Wordpress%20contact%20form%3F" title="StumbleUpon"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=" title="Taggly"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/taggly.png" title="Taggly" alt="Taggly" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F" title="Technorati"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://twitthis.com/twit?url=http%3A%2F%2Fwww.boduweb.com%2Fblog%2F05200915%2Fproblems-setting-up-your-own-wordpress-contact-form%2F" title="TwitThis"><img src="http://www.boduweb.com/blog/wp-content/plugins/sociable/images/twitter.png" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.boduweb.com/blog/05200915/problems-setting-up-your-own-wordpress-contact-form/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
