<?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>Racker Hacker &#187; upgrade</title>
	<atom:link href="http://rackerhacker.com/tag/upgrade/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Upgrading Fedora 11 to 12 using yum</title>
		<link>http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/</link>
		<comments>http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 02:28:06 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=1055</guid>
		<description><![CDATA[As with the Fedora 10 to 11 upgrade, you can upgrade Fedora 11 to Fedora 12 using yum. I find this to be the easiest and most reliable way to upgrade a Fedora installation whether you use it as a server or desktop. To reduce the total data downloaded, I'd recommend installing the yum-presto package [...]<p><a href="http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/">Upgrading Fedora 11 to 12 using yum</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>As with the <a href="/2009/06/11/upgrading-from-fedora-10-cambridge-to-fedora-11-leonidas/">Fedora 10 to 11 upgrade</a>, you can upgrade Fedora 11 to Fedora 12 using yum.  I find this to be the easiest and most reliable way to upgrade a Fedora installation whether you use it as a server or desktop.</p>
<p>To reduce the total data downloaded, I'd recommend installing the <code>yum-presto</code> package first.  It downloads delta RPM's and builds them on the fly, which allows you to upgrade packages without having to download the entire RPM's.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum install yum-presto</pre></div></div>

<p>Now, upgrade your current system to the latest packages and clean up yum's metadata:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum upgrade
yum clean all</pre></div></div>

<p>Get the latest <code>fedora-release</code> package and install it (replace <b>x86_64</b> with <b>x86</b> if you're using a 32-bit system):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">wget ftp://download.fedora.redhat.com/pub/fedora/linux/releases/12/Fedora/x86_64/os/Packages/fedora-release-*.noarch.rpm
rpm -Uvh fedora-release-*.rpm</pre></div></div>

<p>Now, upgrade your system to Fedora 12:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">yum upgrade</pre></div></div>

<blockquote><p>For detailed documentation on the entire process, refer to <a href="http://fedoraproject.org/wiki/YumUpgradeFaq">Fedora using yum</a> on the FedoraProject Wiki.</p></blockquote>
<p><a href="http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/">Upgrading Fedora 11 to 12 using yum</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/12/07/upgrading-fedora-11-to-12-using-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ugly upgrade path from WordPress 2.7.1 to 2.8</title>
		<link>http://rackerhacker.com/2009/06/13/ugly-upgrade-path-from-wordpress-2-7-1-to-2-8/</link>
		<comments>http://rackerhacker.com/2009/06/13/ugly-upgrade-path-from-wordpress-2-7-1-to-2-8/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 17:48:15 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=909</guid>
		<description><![CDATA[When I tried to do an automatic upgrade from WordPress 2.7.1 to 2.8 yesterday, it failed miserably. The files were all put in place, but when I tried to load /wp-admin/upgrade.php, this error popped up: Fatal error: Call to undefined method wpdb::has_cap() in /path/to/wordpress/wp-admin/includes/schema.php on line 22 I was perplexed at the error, so I [...]<p><a href="http://rackerhacker.com/2009/06/13/ugly-upgrade-path-from-wordpress-2-7-1-to-2-8/">Ugly upgrade path from WordPress 2.7.1 to 2.8</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>When I tried to do an automatic upgrade from WordPress 2.7.1 to 2.8 yesterday, it failed miserably.  The files were all put in place, but when I tried to load <code>/wp-admin/upgrade.php</code>, this error popped up:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Fatal error: Call to undefined method wpdb::has_cap() in 
/path/to/wordpress/wp-admin/includes/schema.php on line 22</pre></div></div>

<p>I was perplexed at the error, so I restored from a backup and began <a href="http://codex.wordpress.org/Upgrading_WordPress">upgrading manually</a>.  The manual upgrades have always worked well for me in the past, so I figured this would probably fix the problem.  After the upgrade, I went to <code>/wp-admin/upgrade.php</code> and saw:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Fatal error: Call to undefined method wpdb::has_cap() in 
/path/to/wordpress/wp-admin/includes/schema.php on line 22</pre></div></div>

<p><strong>What the heck is going on?</strong>  I restored from a backup, tried the manual upgrade again, and it still failed.  I took a look at the lines causing the problem in <code>schema.php</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">has_cap</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'collation'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">charset</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$charset_collate</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;DEFAULT CHARACTER SET <span style="color: #006699; font-weight: bold;">$wpdb-&gt;charset</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">collate</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$charset_collate</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot; COLLATE <span style="color: #006699; font-weight: bold;">$wpdb-&gt;collate</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>I figured I could comment out the if statement and probably still be safe:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// if ( $wpdb-&gt;has_cap( 'collation' ) ) {</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">charset</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$charset_collate</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;DEFAULT CHARACTER SET <span style="color: #006699; font-weight: bold;">$wpdb-&gt;charset</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">collate</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #000088;">$charset_collate</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot; COLLATE <span style="color: #006699; font-weight: bold;">$wpdb-&gt;collate</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// }</span></pre></div></div>

<p><strong>Success?</strong>  I could make it through the <code>upgrade.php</code> part fine at this point, but whenever I tried to add a tag to a post, it wasn't saving to the database.  I caught this error in my apache logs:</p>
<p><code>[Fri Jun 12 23:45:03 2009] [error] [client 72.183.200.144] WordPress database error Duplicate entry 'debian' for key 'slug' for query INSERT INTO wp_terms (`name`,`slug`,`term_group`) VALUES ('debian','debian','0') made by wp_insert_term, referer: http://rackerhacker.com/wp-admin/post.php?action=edit&#038;post=877</code></p>
<p><strong>Frustration quickly ensued.</strong>  I moved my <code>/wp-content/</code> folder out of the way and replaced it with the standard WordPress stuff, but that didn't help.  I moved plugins out of the way, one by one, but that didn't fix it either.  Then I spotted a strange file sitting in <code>/wp-content/</code> called <code>db.php</code>.  When I opened it, I found a <a href="http://pastie.org/private/rmbmk3ohgmdbujotnrg">lot of database setup classes for mysqli</a>.</p>
<p>I renamed it to <code>db.pleasedonteverrunthisphp</code> and I was able to save tags properly.  So far, I haven't found any issues after I made chat change.</p>
<p>Does anyone know where that file might have come from?  I don't remember adding it myself, so I'm wondering if it was ever packaged with a WordPress plugin or a WordPress installation.  I hope this helps someone else!</p>
<p><a href="http://rackerhacker.com/2009/06/13/ugly-upgrade-path-from-wordpress-2-7-1-to-2-8/">Ugly upgrade path from WordPress 2.7.1 to 2.8</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/06/13/ugly-upgrade-path-from-wordpress-2-7-1-to-2-8/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

