<?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>SeanColombo.com &#187; dataLoss</title>
	<atom:link href="http://www.seancolombo.com/tag/dataloss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seancolombo.com</link>
	<description>My little corner of the internet.</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:30:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to restore WordPress categories</title>
		<link>http://www.seancolombo.com/2008/07/19/categories-are-back/</link>
		<comments>http://www.seancolombo.com/2008/07/19/categories-are-back/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 21:52:46 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[dataLoss]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.seancolombo.com/?p=76</guid>
		<description><![CDATA[After upgrading to the latest version of WordPress, the text of all of the categories were deleted. It appears this may be my fault for not disabling all of the plugins before doing the upgrade (oops). They&#8217;re back now though. It was somewhat annoying to have to do, but as far as &#8220;data loss error&#8221;s [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to the latest version of WordPress, the text of all of the categories were deleted.  It appears this may be my fault for not disabling all of the plugins before doing the upgrade (oops).  They&#8217;re back now though.  It was somewhat annoying to have to do, but as far as &#8220;data loss error&#8221;s go, it wasn&#8217;t very bad at all.</p>
<p>I noticed a bunch of other people online had similar problems but nobody mentioned a solution so I figured I might as well throw up a quick description of what I did.</p>
<p>I used google to find a cached version of my page which listed all of the categories in the side-bar.  Now I had all of the categories but I didn&#8217;t know which id in the database matched which category.  I found that out by running this query:<br />
<code>SELECT post_title, term_taxonomy_id FROM wp_posts,wp_term_relationships WHERE wp_term_relationships.object_id=wp_posts.ID ORDER BY term_taxonomy_id;</code><br />
Which shows what posts were assigned to each category.  After reading through the list and figuring it out, I was able to fix the text by typing queries along the lines of:<br />
<code>UPDATE wp_terms SET name='Motive Force', slug='motive-force' WHERE term_id=8;</code></p>
<p>Since I brushed over it above:<br />
To find a cached version of your site on google, just search for &#8220;site:YOURDOMAINNAMEHERE.com&#8221;, then click on &#8220;Cached&#8221; next to any of the results.  They clear those out after a while, so don&#8217;t put it off!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seancolombo.com/2008/07/19/categories-are-back/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
