<?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>Web Development Blog &#187; WordPress plugin</title>
	<atom:link href="http://www.developerweb.co.uk/tips/wordpress-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developerweb.co.uk</link>
	<description>Richard Havelock: Freelance Web Designer &#38; Developer based in Newcastle upon Tyne</description>
	<lastBuildDate>Sun, 22 Aug 2010 19:43:30 +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>Unable to Locate Wordpress Content Directory wp-content</title>
		<link>http://www.developerweb.co.uk/unable-locate-wordpress-content-directory-wp-content/</link>
		<comments>http://www.developerweb.co.uk/unable-locate-wordpress-content-directory-wp-content/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 13:43:00 +0000</pubDate>
		<dc:creator>Web Developer</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Bug fixes]]></category>
		<category><![CDATA[coding solution]]></category>
		<category><![CDATA[Unable to Locate Wordpress Content Directory wp-content]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[wp-content]]></category>

		<guid isPermaLink="false">http://www.developerweb.co.uk/?p=235</guid>
		<description><![CDATA[I encountered this problem when attempting to upgrade my version WordPress (for this blog) and also upgrade my WordPress plugins to the newest versions.
I chose to upgrade my WordPress blog automatically, entered the correct ftp details and came across this error:
Unable to Locate Wordpress Content Directory wp-content
I racked my brains for a while making sure [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full  wp-image-338 alignleft" title="wordpress-grey" src="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-grey.jpg" alt="WordPress logo in grey" width="200" height="200" />I encountered this problem when attempting to upgrade my version WordPress (for this blog) and also upgrade my WordPress plugins to the newest versions.</p>
<p>I chose to upgrade my WordPress blog automatically, entered the correct ftp details and came across this error:</p>
<p><strong>Unable to Locate Wordpress Content Directory wp-content</strong></p>
<p>I racked my brains for a while making sure that all the permissions to the necessary files were correct and after about 45 minutes I found a blog post by <a title="Visit the post on Hui's website" rel="nofollow" href="http://www.hui-wang.info/2009/06/unable-to-locate-wordpress-content-directory-wp-content/" target="_blank">Hui Wang</a> which provided the answer.</p>
<p>The problem may not necessarily be with WordPress or any of my files / permissions but actually my hosting company. My blog is currently hosted through <strong>byethost.com</strong> and quite a few people who have WordPress blogs get the same problem.</p>
<p>To fix the problem, add the following code to the bottom of your wp-config.php file:</p>
<address>/** Override default file system method*/</address>
<address>if(is_admin()) { </address>
<address>add_filter(&#8216;filesystem_method&#8217;, create_function(&#8216;$a&#8217;, &#8216;return &#8220;direct&#8221;;&#8217; )); </address>
<address>define( &#8216;FS_CHMOD_DIR&#8217;, 0751 ); </address>
<address>} </address>
<p>The above code overides the default file system method to allow WordPress to upgrade, delete plugins directly (without using ftp details). It works for me and saves me from having to download .zip files and uploading them through my ftp client etc&#8230; which takes up a lot of time when you have a lot of plugins.</p>
<p>Let me know if it works for you or if you have any other problems or solutions let me know and I&#8217;ll write a post about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.developerweb.co.uk/unable-locate-wordpress-content-directory-wp-content/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>