<?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>Entropy &#187; wordpress</title>
	<atom:link href="http://entropy.co.za/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://entropy.co.za/blog</link>
	<description>information out of chaos</description>
	<lastBuildDate>Thu, 06 Oct 2011 16:14:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Second rebirth</title>
		<link>http://entropy.co.za/blog/announcement/second-rebirth/</link>
		<comments>http://entropy.co.za/blog/announcement/second-rebirth/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 17:17:10 +0000</pubDate>
		<dc:creator>The Extremist</dc:creator>
				<category><![CDATA[Announcement]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[entropy]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://entropy.co.za/blog/?p=85</guid>
		<description><![CDATA[This is the second time I&#8217;ve attempted to relaunch Entropy. The first attempt was stillborn. I chose a theme that simply required too much work to be simply functional. This time, along with an upgrade from 2.7.1 to 2.8 I&#8217;ve &#8230; <a href="http://entropy.co.za/blog/announcement/second-rebirth/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is the second time I&#8217;ve attempted to relaunch Entropy.</p>
<p>The first attempt was stillborn. I chose a theme that simply required too much work to be simply functional. This time, along with an upgrade from 2.7.1 to 2.8 I&#8217;ve selected <a title="dfBlog (by Daniel Fajardo) Homepage" href="http://www.danielfajardo.com/dfblog/">dfBlog</a> as my base theme. It&#8217;s proven versatile, easy to modify when its versatility isn&#8217;t enough, and compatible with browsers as ancient as Internet Explorer 6.</p>
<p>Since the relaunch, WordPress 2.8.1 has been released, so I&#8217;ll need to update the Entropy WordPress installation soon as well.</p>
<p>I also butchered the accordion category list component from the very nice theme, <a title="Sliding Door WordPress theme - Mac-Host.com" href="http://mac-host.com/slidingdoor/">Sliding Doors (by Wayne Connor at Mac-Host)</a>. I&#8217;d love to widgetise it one day but I&#8217;m skeptical of my own ability to make time to do so.</p>
<p>For those of you that followed <a title="White Afrik(aans/aner) Male - the category/section/sub-blog" href="http://entropy.co.za/blog/categories/WAM/">W.A.M.</a>, fear not for it has been assimilated into Entropy. As the juicy news that pique public interest in South Africa breaks I&#8217;ll be sure to pass running commentary on it. I&#8217;m also working on getting a WordPress RSS plugin to work that will imp0rt RSS feeds as blog posts for The Extremist. He writes over at <a title="Hellforge - The GameRiot ARPG/CRPG/Diablo/General gaming portal" href="http://hellforge.gameriot.com/">Hellforge</a> now (<em>as well</em>, hopefully) in a column/blog he calls <a title="Extreme Opinion @ Hellforge" href="http://hellforge.gameriot.com/blogs/Demigod/">Extreme Opinion</a>. Check him out there in the meantime. Hopefully his articles (with appropriate links back to the source) will be live soon.</p>
<p>Anyway, welcome to Entropy 1.0. Where the site&#8217;s not in beta but the writing probably is.</p>
]]></content:encoded>
			<wfw:commentRss>http://entropy.co.za/blog/announcement/second-rebirth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading WordPress (2.1.0 to 2.6.2) &#8211; what a mission</title>
		<link>http://entropy.co.za/blog/dev/upgrading-wordpress-210-262/</link>
		<comments>http://entropy.co.za/blog/dev/upgrading-wordpress-210-262/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 22:49:53 +0000</pubDate>
		<dc:creator>The Extremist</dc:creator>
				<category><![CDATA[Featured Post]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://entropy.co.za/blog/?p=38</guid>
		<description><![CDATA[Generally WordPress is really easy to upgrade. They could have a whole load less people complaining on the forums about broken upgrades if they used sane defaults in the configuration files, though. <a href="http://entropy.co.za/blog/dev/upgrading-wordpress-210-262/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the short of it for those that don&#8217;t want to read my whole epic.</p>
<p>While trying to upgrade from WordPress 2.1 to 2.6 I was presented with the database upgrade page when trying to get to the backend (/wp-admin). Upon clicking the <em>Upgrade</em> button/link a half-ream long list of &#8220;Table doesn&#8217;t exist&#8221; errors were displayed.</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="src=http://lh4.ggpht.com/nanderman/SQUH9H_2iTI/AAAAAAAAAxo/H4vSU2G-BXc/s800/WP_DB_upgrade_error.jpg"><img title="WordPress database corrupts, data is lost, a great wailing and gnashing of teeth" src="http://lh4.ggpht.com/nanderman/SQUH9H_2iTI/AAAAAAAAAxo/H4vSU2G-BXc/s400/WP_DB_upgrade_error.jpg" alt="WordPress failed database upgrade - Table doesnt exist error messages." width="400" height="385" /></a><p class="wp-caption-text">WordPress failed database upgrade - Table doesnt exist error messages.</p></div>
<p>The reason WordPress can&#8217;t find the tables is because it fails to create them during the database upgrade. For the full reason behind why this happens you&#8217;ll have to read the whole post. If you&#8217;re only interested in what to do to get it working the next three paragraphs and two code samples should explain all.</p>
<p>In WordPress 2.2 <a title="Database character set and collation options in wp-config.php since WP2.2" href="http://codex.wordpress.org/Editing_wp-config.php#Database_collation" target="_blank">two new settings</a> were introduced in the wp-config.php file namely DB_CHARSET and DB_COLLATE. By default, that is in the wp-config-sample.php file, it sets these variables to &#8216;utf8&#8242; and &#8216;utf8-general&#8217; respectively.</p>
<p><!-- Remove the code tags once id="code" is properly defined --></p>
<div id="code" style="padding-left: 30px;"><code>define('DB_CHARSET', 'utf8');<br />
define('DB_COLLATE', 'utf8-general-ci');<br />
</code></div>
<p>If you added the DB_COLLATE option to your old wp-config.php file and retained the default option as given in the sample file then it is highly likely you experienced this error since <em>utf8-general-ci</em> is not a valid MySQL collation. The silly little error that causes so much grief lies in the dashes &#8212; they should be underscores.</p>
<p>Most MySQL installations use utf8_unicode_ci as the default collation. You&#8217;re likely to get joy by setting the DB_COLLATE option to</p>
<div id="code" style="padding-left: 30px;"><code>define('DB_COLLATE', 'utf8_general_ci');</code></div>
<p><span id="more-38"></span></p>
<p>I had an old WordPress 2.1 installation that needed to be upgraded. Besides the obvious security issues that have been fixed and the features that have been added, I wanted to use a theme that required at least WP2.5 to work.</p>
<p>I don&#8217;t do anything on any of my live websites without first ensuring that I won&#8217;t break anything by trying the changes on the copies I keep locally on my development machine. Upon attempting the famous 3-step upgrade process I found that not only does WordPress struggle to create a bunch of new tables for some reason, it proceeds to delete the old WP2.1 <em>categories</em>, <em>link2cat</em>, and <em>post2cat</em> tables even though the CREATE TABLE queries for the replacement tables, <em>terms</em>, <em>term_taxonomies</em>, and <em>term_relationships</em> fail.</p>
<p>The only <a title="Support thread at WordPress.org" href="http://wordpress.org/support/topic/190524" target="_blank">relevant thread</a> I could find at WordPress&#8217; support forums suggested incrementally upgrading and from the responses it suggested that it worked for the original poster. But why were the tables not being created? What do the other upgrade scripts do differently from the 2.6.2 one?</p>
<p>After some hunting I found the CREATE TABLE queries that are supposed to create the new tables during an upgrade to the file <em>schema.php</em> in <em>wp-admin/includes/</em>.</p>
<p>Copying and pasting the query verbatim into the MySQL Query Browser and replacing the variables with the values I suspected them to be (determined mainly from <em>wp-config.php</em>) indicated that the query was indeed failing. After ensuring that no amount of quoting or backticking would fix the query, the DEFAULT CHARACTER SET and COLLATE directives at the end of the CREATE TABLE query caught my interest. Could the use of dashes rather than underscores really be breaking the query?</p>
<p>A quick test by removing the directives entirely, forcing MySQL to use its defaults, verified it. The defaults WordPress supplied in its sample configuration file (<em>wp-config-sample.php</em>) were in fact not valid.</p>
<p>The WordPress documentation does mention that people who are upgrading should not include the DB_CHARSET and DB_COLLATE variables in their <em>wp-config.php</em> files unless they know what they&#8217;re doing&#8230; But that&#8217;s only on the <a title="Obscure documentation basic WordPress users will almost never come across..." href="http://codex.wordpress.org/Editing_wp-config.php" target="_blank">&#8216;Editing wp-config.php&#8217; page</a>! This should be made very clear in the <a title="The famous 3-step upgrade documented... A much more well-read document than the &quot;Editing wp-config.php&quot; doc I'll wager." href="http://codex.wordpress.org/Upgrading_WordPress" target="_blank">Upgrading WordPress</a> documentation.  For someone that doesn&#8217;t know the format MySQL expects arguments to COLLATE this can translate to days of struggle&#8230; Bad WordPress! No treat for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://entropy.co.za/blog/dev/upgrading-wordpress-210-262/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

