<?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>Redouane &#187; WordPress</title>
	<atom:link href="http://www.redouane.co.uk/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.redouane.co.uk</link>
	<description>Rants and Other Potentially Useful Information</description>
	<lastBuildDate>Sun, 21 Nov 2010 18:13:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>404 Error Page on WordPress Posts and Pages!</title>
		<link>http://www.redouane.co.uk/404-error-page-on-wordpress-posts-and-pages.html</link>
		<comments>http://www.redouane.co.uk/404-error-page-on-wordpress-posts-and-pages.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 21:06:19 +0000</pubDate>
		<dc:creator>Redouane</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.redouane.co.uk/?p=71</guid>
		<description><![CDATA[I was meant to post on this last weekend, when I starting seeing and error on this blog, but I was busy working on a new site. I think it was Saturday when I was able to view my blog, but every time I click on any WordPress post on this blog, I got a [...]]]></description>
			<content:encoded><![CDATA[<p>I was meant to post on this last weekend, when I starting seeing and error on this blog, but I was busy working on a new site.</p>
<p>I think it was Saturday when I was able to view my blog, but every time I click on any WordPress post on this blog, I got a 404 error – page can not be displayed. I was puzzled and didn’t know what would cause this.<span id="more-71"></span> I certainly didn’t make any changes on WordPress settings and I don’t have at time of writing any non-default plugin. The only change I remember making was on Hotlink settings on cPanel to test stopping other sites using images from one of my sites. Anyway, I’ve disabled the settings as I was just experimenting with the option.</p>
<p>As you might expect, I Googled for “<a href="http://www.google.co.uk/search?hl=en&amp;q=404+on+page+and+post+wordpress" target="_blank">404 on page and post wordpress</a>” and found the following <a href="http://wordpress.org/support/topic/183368" target="_blank">report</a>.</p>
<p>The reporter, Randa, apparently tried to delete the &#8220;uncategorized&#8221; category, but that wasn’t my case and didn’t answer why every post link I click on the front page is throwing a 404 error. After some digging, I found the solution by using the following easy steps:<strong><br />
</strong></p>
<blockquote><p><strong>- Login to WordPress Admin Panel<br />
- Click on Settings<br />
- Click on Permanlinks<br />
- Hit Save Changes</strong></p></blockquote>
<p><strong> </strong><br />
As you can see, the solution is very easy and could perceive as silly, but it did work for me and that’s what matters. I discovered the above steps when I changed the Permanlinks back to Default, which resolved the issue. When I changed it back to Custom Structure, access to posts and pages still works.</p>
<p>Hopefully, the above will help resolve the same issue someone else is seeing without going through any radical solutions such as reinstalling WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redouane.co.uk/404-error-page-on-wordpress-posts-and-pages.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Delete Previous Post Revisions in WordPress Database</title>
		<link>http://www.redouane.co.uk/how-to-delete-previous-post-revisions-in-wordpress-database.html</link>
		<comments>http://www.redouane.co.uk/how-to-delete-previous-post-revisions-in-wordpress-database.html#comments</comments>
		<pubDate>Sun, 26 Jul 2009 20:00:17 +0000</pubDate>
		<dc:creator>Redouane</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.redouane.co.uk/?p=65</guid>
		<description><![CDATA[Further to my previous post regarding disabling Post Revisions in WordPress 2.6 or Later, this post will explain how to remove those posts that have been previously saved to your WordPress database. Before running any SQL commands to changing anything, it&#8217;s critical that you backup your WordPress database and posts. A detailed guide on how [...]]]></description>
			<content:encoded><![CDATA[<p>Further to my previous post regarding <a href="http://www.redouane.co.uk/turn-off-and-disable-post-revisions-in-wordpress-2-6-or-later.html" target="_self">disabling Post Revisions in WordPress 2.6 or Later</a>, this post will explain how to remove those posts that have been previously saved to your WordPress database.<br />
<span id="more-65"></span><br />
Before running any SQL commands to changing anything, it&#8217;s critical that you backup your WordPress database and posts. A detailed guide on how to backup WordPress database is available from <a href="http://codex.wordpress.org/WordPress_Backups" target="_blank">WordPress.org</a>.</p>
<p>Now, deleting previous post revisions can be done easily from phpMyAdmin which is available with most web hosting providers from cPanel or other hosting control panel. Once you are on phpMyAdmin, select the database of your WordPress blog, if you have more than one, and run the following SQL statement:</p>
<blockquote><p><span style="color: #ff0000;"><strong>DELETE FROM wp_posts WHERE post_type = &#8220;revision&#8221;;</strong></span></p></blockquote>
<p>The only draw back of removing previous revisions is that you won&#8217;t to go back to earlier version of posts. On the plus side, it will help reduce the size of WordPress database and process queries much faster (when blog pages are served to users).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redouane.co.uk/how-to-delete-previous-post-revisions-in-wordpress-database.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn Off and Disable Post Revisions in WordPress 2.6 or Later</title>
		<link>http://www.redouane.co.uk/turn-off-and-disable-post-revisions-in-wordpress-2-6-or-later.html</link>
		<comments>http://www.redouane.co.uk/turn-off-and-disable-post-revisions-in-wordpress-2-6-or-later.html#comments</comments>
		<pubDate>Mon, 06 Jul 2009 17:02:28 +0000</pubDate>
		<dc:creator>Redouane</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.redouane.co.uk/?p=15</guid>
		<description><![CDATA[A new feature that was shipped with WordPress 2.6 and later is the ability to create tracking revisions for each post. This is particularly handy if there are many authors that write on the same WordPress blog. Post revisions is intended to keep previous versions of a post after it have been modified. It helps [...]]]></description>
			<content:encoded><![CDATA[<p>A new feature that was shipped with <a title="WordPress" href="http://wordpress.org" target="_blank">WordPress</a> 2.6 and later is the ability to create tracking revisions for each post. This is particularly handy if there are many authors that write on the same WordPress blog. <a title="post revisions" href="http://en.blog.wordpress.com/2008/07/26/post-revisions/" target="_blank">Post revisions</a> is intended to keep previous versions of a post after it have been modified. It helps track changes to blog post in case there is a need to revert back to an earlier version. Each time a post has been saved, a Post Revision is created. Those happens even if the same author is hitting the &#8220;Update Post&#8221; button.</p>
<p><span id="more-15"></span>There is also the AutoSave option which automatically save the content of the post at an interval, just in case the WordPress admin page is closed accidentally or Internet connection is lost before you had a chance to save your work.</p>
<p>There are downsides to post revisions, especially if you are the only author of your blog:</p>
<p><strong>MySQL database grows unnecessarily</strong></p>
<p>Let&#8217;s say you just started a new blog a few weeks back and you managed to create 20 posts. If those 20 posts got edited or changed 5 times each, you will technically have around 100 posts stored in the database. That&#8217;s a lot of posts that you don&#8217;t have. This caused the size of WordPress database to grow and use up space unnecessarily.</p>
<p><strong>Slow Database performance</strong></p>
<p>MySQL is a pretty solid and robust database, but bloating it with unnecessary content, such as post revisions, can have a detrimental performance impact on your WordPress blog, especially in the long run. In other words, you may notice a delay when saving new posts, loading your blog or making other changes that involved WordPress database.</p>
<p>In order to<strong> turn off and disable Post Revisions in WordPress</strong>, add the following line to your wp-config.php:</p>
<blockquote><p><span style="color: #ff0000;"><strong>define (’WP_POST_REVISIONS’, false);</strong></span></p></blockquote>
<p>wp-config.php can found on the root directory of your WordPress installation folder. If your WordPress is self-hosted and you are using cPanel Control Panel, go to File Manager, then click WWW folder icon. You should be able to locate the folder of your WordPress and click the right folder icon. With cPanel, you can edit wp-config.php by clicking the file from the list and Edit File from the top right hand side. This saves you downloading (if you don&#8217;t have a copy), changing and then uploading wp-config.php.</p>
<p>Once wp-config.php is saved with the line above, WordPress will no longer save post revisions in the MySQL database, except AutoSave ones, which are not saved after you done saving the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redouane.co.uk/turn-off-and-disable-post-revisions-in-wordpress-2-6-or-later.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

