<?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>Da Vinci Planet &#187; Best Practices</title>
	<atom:link href="http://www.davinciplanet.com/tag/best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davinciplanet.com</link>
	<description>A blog on productivity tools, tips and hacks for Web professionals, including topics on search marketing (SEO and SEM), Web analytics and on-line trends</description>
	<lastBuildDate>Thu, 04 Aug 2011 19:01:44 +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>Tips for Avoiding WordPress 2.3 Upgrade Problems</title>
		<link>http://www.davinciplanet.com/tips-for-avoiding-wordpress-23-upgrade-problems/</link>
		<comments>http://www.davinciplanet.com/tips-for-avoiding-wordpress-23-upgrade-problems/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 03:36:06 +0000</pubDate>
		<dc:creator>Da Vinci</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Jeromeâ€™s Keywords]]></category>
		<category><![CDATA[tagging]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress upgrade]]></category>

		<guid isPermaLink="false">http://www.davinciplanet.com/tips-for-avoiding-wordpress-23-upgrade-problems/</guid>
		<description><![CDATA[Keeping up with software updates is considered best practice, but it can be a pain. WordPress is no different. All my previous WordPress upgrades have been smooth, but I was reluctant to upgrade from 2.2 to 2.3 because I was using the Jeromeâ€™s Keywords plugin (which enables tagging) and feared that it would conflict with [...]]]></description>
			<content:encoded><![CDATA[<p>Keeping up with software updates is considered best practice, but it can be a pain.  WordPress is no different.  All my <a href="http://www.davinciplanet.com/wordpress-21/">previous WordPress upgrades</a> have been smooth, but I was reluctant to upgrade from 2.2 to 2.3 because I was using the <a href="http://vapourtrails.ca/wp-keywords">Jeromeâ€™s Keywords</a> plugin (which enables tagging) and feared that it would conflict with the native tagging support in WordPress 2.3.  That was before I learnt that <a href="http://wordpress.org/development/2007/09/wordpress-23/">WordPress 2.3 has import support</a> for plugins like Jeromeâ€™s Keywords, Ultimate Tag Warrior, Simple Tags, and Bunnyâ€™s Technorati Tag.  The nagging knowledge that I should upgrade finally won me over this week, but my fears realized and it took me a few hours to get my site back up. Here&#8217;s what I have learned.<span id="more-198"></span></p>
<h2>Understand the Best Practices for Upgrading</h2>
<p>The WordPress upgrade instructions are very good and include details on how to <a href="http://codex.wordpress.org/Backing_Up_Your_Database">backup your WordPress database</a>. Now backing up is probably the single most important best practice and the upgrade instructions includes a specific step to verify your backups, but you need to <strong>make sure you know how to restore your backups</strong>. I have been using the MySQL Administrator to do full daily, weekly and monthly backups, but when things went wrong with the upgrade I was surprised how unintuitive the restore process was.  In fact, restoring seemed more risky than resolving the upgrade issues I decided to rather figure out the upgrade incompatibilities. Had I known how to restore &#8211; with confidence &#8211; I would have been able to recover much quicker.  A blogger is likely to have upgrade issues at some point in time and it will almost certainly be caused by a plugin, so please think about that before you go plugin crazy. </p>
<h2>Reactivate Plugins Very Carefully</h2>
<p>The upgrade instructions explain that you should first deactivate all your plugins, then do the actual upgrade and then reactivate your plugins.  I followed these instructions, but it&#8217;s with the reactivation where things went wrong for me. The Jeromeâ€™s Keywords plugin like many others makes database updates when it&#8217;s activated.  What I didn&#8217;t realize was that when I reactivated it, it apparently conflicted with some of the WordPress 2.3 upgrades.  What I should have done was to run the new Jeromeâ€™s Keywords import feature, which can be found under <em>Manage</em>, <em>Import</em> in the WordPress admin interface and not reactivate the plugin.  While that in itself wouldn&#8217;t have made the upgrade flawless because I also had to make theme updates, it would have prevented my blog data from becoming partially corrupted.  The solution to my specific problems with the Jerome&#8217;s Keywords plugin was:</p>
<ol>
<ul>
1. After I had upgraded and reactivated the plugin, I deactivated it again.</p>
<p>2. Reran the Jerome&#8217;s Plugin import in the admin interface.  It returned zero records this time, but it seemed to fix the database structure.</p>
<p>3. Updated my theme to use <a href="http://richgilchrest.com/how-to-add-wordpress-23-tags-to-your-current-theme/">WordPress&#8217; tag functions</a> rather than the plugin&#8217;s.</p>
<p>4. Created Apache rewrite rules to convert plus signs to dashes.  The Jerome&#8217;s Keyword plugin uses plus (+) signs to separate words while the new WordPress tag functionality uses dashes. This seemingly simple rewrite rule probably has a simple solution, but I resorted to a list of less elegant, static rules like:<br />
<center><code>RewriteRule ^tag/portable\+apps(.*)$    /tag/portable-apps$1 [R=permanent,L]</code></center></ul>
</ol>
<h2>Other WordPress Upgrade Tips</h2>
<li>PHP has a built in function that can be used to check <a href="http://www.nathanrice.net/blog/wordpress-23-theme-backward-compatibility/">if functions exist</a>.  This can be used to <strong>make your WordPress theme more forward compatible</strong>.  Be warned though that by using this functionality you could be hiding incompatible theme components which would otherwise be exposed with clear PHP error messages.  These missing page elements would probably be the results of customization that you made from plugins.  So you need to decide what&#8217;s more important: a broken site with clear error messages or a less broken site with less clear signals that there&#8217;s a problem.</li>
<li><strong>Upgrade as frequently as possible, but don&#8217;t become careless because they seem easy</strong>.  By updating frequently you become more familiar and comfortable with the upgrade process.  That is good, but don&#8217;t overlook the basics of upgrading: create backups and know how to restore them yourself when needed.</li>
<li>When you upgrade, <strong>take the time to learn about new features</strong>.  Many new features are only useful when you update your theme to use them.  For instance WordPress 2.3 introduced tagging and so themes that were created before 2.3 would not include the new tagging functionality like adding a <a href="http://codex.wordpress.org/Template_Tags/the_tags">tag list</a> or a <a href="http://codex.wordpress.org/Template_Tags/wp_tag_cloud">tag cloud</a>.</li>
<p>When all is said and done I am happy to have completed the upgrade and in retrospect it was a good learning experience. <img src='http://www.davinciplanet.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.davinciplanet.com/tips-for-avoiding-wordpress-23-upgrade-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

