<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Web Development Blog &#187; WordPress</title>
	<atom:link href="http://www.developerweb.co.uk/tips/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developerweb.co.uk</link>
	<description>Tips, code &#38; inspiration for web designers &#38; developers</description>
	<lastBuildDate>Thu, 19 Jan 2012 08:16:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to Optimise a CMS Driven Website</title>
		<link>http://www.developerweb.co.uk/optimise-cms-driven-website/</link>
		<comments>http://www.developerweb.co.uk/optimise-cms-driven-website/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 07:10:49 +0000</pubDate>
		<dc:creator>Steven Jones</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[cdn]]></category>
		<category><![CDATA[content management]]></category>
		<category><![CDATA[optimise]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.developerweb.co.uk/?p=507</guid>
		<description><![CDATA[A content management system (CMS) driven website solves a lot of problems presented in modern day websites; namely the ability for people without web development skills to edit their website. The ability to keep a website up-to-date is important for a number of reasons, none moreso than to retain your visitors. As with most solutions, [...]]]></description>
			<content:encoded><![CDATA[<p>A content management system (CMS) driven website solves a lot of problems presented in modern day websites; namely the ability for people without web development skills to edit their website. The ability to keep a website up-to-date is important for a number of reasons, none moreso than to retain your visitors.</p>
<p>As with most solutions, a CMS presents further problems; most commonly, performance issues. Here’s a few ways to mitigate these issues and ensure your website loads quickly. There are a lot of guides on how to specifically speed up certain CMS platforms but I’ve taken a step back and provided solutions for general CMS optimisation problems.</p>
<h2>1. Page caching</h2>
<p>If you are running a site that serves thousands of visitors then these database queries, however much you have optimised them in step 1, are going to be intensive. It’s going to be a hit on your bandwidth (which could increase costs) and also slows down your site.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://i.msdn.microsoft.com/dynimg/IC47225.gif" alt="" /></p>
<p><strong>Solution.</strong> Page caching. When a page is first retrieved it is stored (cached) as a static page (e.g. HTML) and then further visitors will be served that static page. No database calls means the site is back on par with the speed of static sites. If you edit the content of the page in the CMS then the cache will be cleared so visitors still receive a up-to-date version of the site and not a cached one.</p>
<h2>2. Clever coding</h2>
<p>If you analyse a CMS template/theme you will see that there can be up to 20 database calls on a page. Whether this be the title of the page, the date an article was posted or the location of a stylesheet. The reasons why they are dynamic in the first place is to provide flexibility, often provided through options pages.</p>
<p>Solution. Have a look through your website. Are there any settings that are never going to change? If so you can hardcode these into your themes so they do not require an extra database hit, which in turn will load the pages quicker. Do you need the footer text to be driven by a text field on the options page? Probably not.</p>
<h2>3. Using a Content Delivery Network (CDN)</h2>
<p>Using a CDN such as <a title="Amazon Cloudfront" href="http://aws.amazon.com/" target="_blank">Amazon Cloudfront</a> is undeniably a way to speed any website up. When a request for a file (such as an image) is requested it is served by the CDN from the Amazon storage system (Amazon S3). Not only do you have the benefit of having your image stored on a more powerful server (Amazon S3) but whilst you are being served the image you can also be served the rest of the site simultaneous. It’s not only file sizes that are the problem but the amount of requests made on a server.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://blog.whatclinic.com/wp-content/uploads/2009/05/content-delivery-network.jpg" alt="" width="487" height="351" /></p>
<h2>4. Optimise the database</h2>
<p>Installing plugins not clearing up afterwards can cause problems. The larger the database the more the longer the search queries.</p>
<p>Optimise your database by clearing out tables and data that are not needed. If you’re searching through 10,000 entries, rather than 20,000 this will speed things up considerably.</p>
<h2>5. Broken links</h2>
<p>A user&#8217;s browser might spend time looking for that JavaScript or CSS file that doesn’t exist, or an image that has been deleted. It will retry a certain amount of times and it’s the times of, and in between, those requests that can increase the page load speeds.</p>
<p>Analyse your code and get to know it. Make sure that if the page has tried to load an image and if it hasn’t investigate as to why. Using <a title="Pindom Tool" href="http://tools.pingdom.com/" target="_blank">Pingdom Tool</a> you can check how long it’s taking to load a file and it ‘greys out’ the ones that it can’t find. Those are the ones that need your attention.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.developerweb.co.uk/optimise-cms-driven-website/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:thumbnail url="http://i.msdn.microsoft.com/dynimg/IC47225.gif" />
		<media:content url="http://i.msdn.microsoft.com/dynimg/IC47225.gif" medium="image" />
		<media:content url="http://blog.whatclinic.com/wp-content/uploads/2009/05/content-delivery-network.jpg" medium="image" />
	</item>
		<item>
		<title>An XSLT stylesheet does not have an XML mimetype</title>
		<link>http://www.developerweb.co.uk/an-xslt-stylesheet-does-not-have-an-xml-mimetype/</link>
		<comments>http://www.developerweb.co.uk/an-xslt-stylesheet-does-not-have-an-xml-mimetype/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 17:35:49 +0000</pubDate>
		<dc:creator>Richard Havelock</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[An XSLT stylesheet does not have an XML mimetype]]></category>
		<category><![CDATA[Bug fixes]]></category>
		<category><![CDATA[coding solution]]></category>
		<category><![CDATA[Sitemap]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://www.developerweb.co.uk/?p=273</guid>
		<description><![CDATA[I have recently been brushing up on my WordPress knowledge for a blog I have created for a client. While working on the blog I noticed that the error below displayed when trying to view a dynamically generated sitemap (/sitemap.xml) in my Firefox browser: Error loading stylesheet: An XSLT stylesheet does not have an XML [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-337 alignleft" title="wordpress-blue" src="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-blue.jpg" alt="WordPress logo in blue" width="200" height="200" />I have recently been brushing up on my WordPress knowledge for a blog I have created for a client. While working on the blog I noticed that the error below displayed when trying to view a dynamically generated sitemap (/sitemap.xml) in my Firefox browser:</p>
<p><strong>Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:</strong></p>
<p><strong>http://DOMAIN_NAME.com/wp-content/plugins/google-sitemap-generator/sitemap.xsl</strong></p>
<p>The sitemap was created by the superb Google XML Sitemaps plugin for WordPress and after a quick bit of research on Google I came across <a title="Visit Article" href="http://tutsarena.com/2009/03/fixing-an-xslt-stylesheet-does-not-have-an-xml-mimetype-error/" target="_blank">this article</a> at tutsarena.</p>
<p>It is important to mention that the error only occurs in the Firefox browser and not Internet Explorer  (for a change). The error is not WordPress &#8211; specific but was actually related to the Apache server the client&#8217;s website was hosted on.</p>
<p>To fix the error add the following line of code to the bottom of your .htacces file (found in the root of your site):</p>
<address>AddType text/xsl xsl</address>
<p>This adds the MIME type for XSL, which was missing from the list of MIME types on the client&#8217;s server.</p>
<p>If you are still having problems try adding the below line of code as well as the above code into the .htacces file:</p>
<address>AddType application/xml xml</address>
<p>This should sort everything out nicely.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">
<p>This is a quick fix for anyone who has seen the following error  appear when trying to edit a WordPress theme through the admin section:</p>
<p><strong>The Requested Theme Does Not Exist</strong></p>
<p>I remember seeing this and immediately fearing the worst (that I had  broken my WordPress blog somehow) but I had a think of what I had been  changing on the site before I got this error (the CSS file) and after a  quick look on Google I found <a title="Go to the article" href="http://www.bigfootwebmarketing.com/2007/11/25/heres-a-weird-one-the-requested-theme-does-not-exist-when-in-theme-editor/" target="_blank">this article</a>.</p>
<p>The article mentions that the commented-out information at the top of  the CSS file (containing the theme details) is used by WordPress to  pull out the theme name:</p>
<pre>/*
Theme Name: WordPress Default
Theme URI: http://wordpress.org/
Description: The default WordPress theme based on the famous &lt;a href="http://binarybonsai.com/kubrick/"&gt;Kubrick&lt;/a&gt;.
Version: 1.6
Author: Michael Heilemann
Author URI: http://binarybonsai.com/
Tags: blue, custom header, fixed width, two columns, widgets

 Kubrick v1.5

http://binarybonsai.com/kubrick/

 This theme was designed and built by Michael Heilemann,
 whose blog you will find at http://binarybonsai.com/

 The CSS, XHTML and design is released under GPL:

http://www.opensource.org/licenses/gpl-license.php

*/</pre>
<p>At the time I wasn&#8217;t too familiar with WordPress and had just deleted  the code to save about 15 lines in my CSS file. If you delete the code  or use certain special characters in the theme name (such as an  ampersand &#8211; &amp;) WordPress cannot find the theme and display the  templates or CSS in the admin section for you.</p>
<p>To fix this quite simply check the commented code at the top of the  theme&#8217;s CSS for any characters which may be causing the error. Or if you  did what I had done and delete the commented code completely, put it  back in via ftp and WordPress will load up the editor section straight  away.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.developerweb.co.uk/an-xslt-stylesheet-does-not-have-an-xml-mimetype/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:thumbnail url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-blue-100x100.jpg" />
		<media:content url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-blue.jpg" medium="image">
			<media:title type="html">wordpress-blue</media:title>
			<media:thumbnail url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-blue-100x100.jpg" />
		</media:content>
	</item>
		<item>
		<title>The Requested Theme Does Not Exist &#8211; WordPress</title>
		<link>http://www.developerweb.co.uk/requested-theme-does-not-exist/</link>
		<comments>http://www.developerweb.co.uk/requested-theme-does-not-exist/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 07:20:31 +0000</pubDate>
		<dc:creator>Richard Havelock</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Bug fixes]]></category>
		<category><![CDATA[coding solution]]></category>
		<category><![CDATA[The Requested Theme Does Not Exist]]></category>
		<category><![CDATA[web developer]]></category>

		<guid isPermaLink="false">http://www.developerweb.co.uk/?p=246</guid>
		<description><![CDATA[This is a quick fix for anyone who has seen the following error appear when trying to edit a WordPress theme through the admin section: The Requested Theme Does Not Exist I remember seeing this and immediately fearing the worst (that I had broken my WordPress blog somehow) but I had a think of what [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-336 alignleft" title="wordpress-stacked" src="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-stacked.jpg" alt="WordPress logo stacked" width="200" height="200" />This is a quick fix for anyone who has seen the following error appear when trying to edit a WordPress theme through the admin section:</p>
<p><strong>The Requested Theme Does Not Exist</strong></p>
<p>I remember seeing this and immediately fearing the worst (that I had broken my WordPress blog somehow) but I had a think of what I had been changing on the site before I got this error (the CSS file) and after a quick look on Google I found <a title="Go to the article" href="http://www.bigfootwebmarketing.com/2007/11/25/heres-a-weird-one-the-requested-theme-does-not-exist-when-in-theme-editor/" target="_blank">this article</a>.</p>
<p>The article mentions that the commented-out information at the top of the CSS file (containing the theme details) is used by WordPress to pull out the theme name:</p>
<address> /*</address>
<address> Theme Name: WordPress Default</address>
<address> Theme URI: http://wordpress.org/</address>
<address> Description: The default WordPress theme based on the famous &lt;a href=&#8221;http://binarybonsai.com/kubrick/&#8221;&gt;Kubrick&lt;/a&gt;.</address>
<address> Version: 1.6</address>
<address> Author: Michael Heilemann</address>
<address> Author URI: http://binarybonsai.com/</address>
<address> Tags: blue, custom header, fixed width, two columns, widgets</address>
<address> Kubrick v1.5<br />
http://binarybonsai.com/kubrick/</address>
<address> This theme was designed and built by Michael Heilemann,<br />
whose blog you will find at http://binarybonsai.com/</address>
<address> The CSS, XHTML and design is released under GPL:<br />
http://www.opensource.org/licenses/gpl-license.php</address>
<address>*/</address>
<p>At the time I wasn&#8217;t too familiar with WordPress and had just deleted the code to save about 15 lines in my CSS file. If you delete the code or use certain special characters in the theme name (such as an ampersand &#8211; &amp;) WordPress cannot find the theme and display the templates or CSS in the admin section for you.</p>
<p>To fix this quite simply check the commented code at the top of the theme&#8217;s CSS for any characters which may be causing the error. Or if you did what I had done and delete the commented code completely, put it back in via ftp and WordPress will load up the editor section straight away.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.developerweb.co.uk/requested-theme-does-not-exist/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:thumbnail url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-stacked-100x100.jpg" />
		<media:content url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-stacked.jpg" medium="image">
			<media:title type="html">wordpress-stacked</media:title>
			<media:thumbnail url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-stacked-100x100.jpg" />
		</media:content>
	</item>
		<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>Richard Havelock</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 [...]]]></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>11</slash:comments>
	
		<media:thumbnail url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-grey-100x100.jpg" />
		<media:content url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-grey.jpg" medium="image">
			<media:title type="html">wordpress-grey</media:title>
			<media:thumbnail url="http://www.developerweb.co.uk/wp-content/uploads/2010/07/wordpress-grey-100x100.jpg" />
		</media:content>
	</item>
	</channel>
</rss>

