<?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>The Far Side of Tech &#187; Wordpress</title>
	<atom:link href="http://www.devindra.org/tech/categories/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devindra.org/tech</link>
	<description></description>
	<lastBuildDate>Tue, 19 Jan 2010 19:00:16 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress 2.1 and the Disappearing Pages</title>
		<link>http://www.devindra.org/tech/2007/01/28/wordpress-21-and-the-disappearing-pages/</link>
		<comments>http://www.devindra.org/tech/2007/01/28/wordpress-21-and-the-disappearing-pages/#comments</comments>
		<pubDate>Sun, 28 Jan 2007 05:07:31 +0000</pubDate>
		<dc:creator>Devindra</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.devindra.org/tech/2007/01/28/wordpress-21-and-the-disappearing-pages</guid>
		<description><![CDATA[After several Wordpress upgrades gone awry, I&#8217;ve learned by now that I should block out a couple hours whenever I decide to upgrade this blog. Never was that more true than in my latest upgrade attempt to Wordpress 2.1. After successfully running through the standard upgrade process I peeked at the main page with fingers [...]<p>a</p>
<p><a href="http://www.devindra.org/tech/2007/01/28/wordpress-21-and-the-disappearing-pages/">Wordpress 2.1 and the Disappearing Pages</a></p>
]]></description>
			<content:encoded><![CDATA[<p>After several Wordpress upgrades gone awry, I&#8217;ve learned by now that I should block out a couple hours whenever I decide to upgrade this blog. Never was that more true than in my latest upgrade attempt to <a href="http://wordpress.org/development/2007/01/ella-21/" target="_blank">Wordpress 2.1</a>. After successfully running through the standard upgrade process I peeked at the main page with fingers crossed. Everything appeared to be working at first, but I was quickly surprised to find that all of my pages had <em>disappeared</em>!</p>
<p>When I navigated to <strong>Manage &gt; Pages</strong> in the Wordpress Dashboard, I was confronted with the startling sight of a complete lack of pages. I was fairly concerned about this because I have around forty pages alone for the archives of my <a href="http://www.devindra.org/tech/?page_id=16">newspaper columns</a>. I then jumped over to the <strong>Manage &gt; Posts</strong> section and noticed that all of my pages were under the mistaken impression that they were actually posts. This is bad for obvious reasons. By showing up as posts, all of my pages no longer followed their absolute URL&#8217;s and it pretty much made a mess of the blog.</p>
<p><img src="http://www.devindra.org/tech/wp-content/uploads/2007/01/sshot-2.png" alt="The new “post_type” field" align="right" border="0" />After a bit of research, I learned that the WP folks actually changed the way that pages and posts are differentiated in the database. You can find a thorough description of the change over at <a href="http://www.transycan.net/blogtest/2007/01/23/how-pages-are-different-in-wp-21/" target="_blank">Playing with Wordpress</a>. Basically, they&#8217;re making use of a previously empty field in the <em>wp_posts</em> table called <em>post_type</em> wherein posts are designated as <em>&#8220;posts&#8221;</em> and pages as <em>&#8220;pages&#8221;</em>. It&#8217;s a simple change, and I&#8217;m honestly not surprised they didn&#8217;t make the switch earlier, but it could pose a problem if your posts for some reason didn&#8217;t take up their proper type. After some quick browsing of my database tables, I realized this was exactly what went wrong with my upgrade.</p>
<p>For some reason, my <em>post_type</em> fields were all showing up as <em>&#8220;</em><em>post&#8221;</em>, and this made all of my old pages show up as posts in turn. I searched in vain for a simple fix for this, but in the end I just went into the db tables and manually changed my pages to <em>&#8220;page&#8221;</em>. Luckily I was able to batch edit several rows very quickly, so this didn&#8217;t end up taking too much time. I don&#8217;t usually spend too much time dealing with MySQL tables, so this was also a good refresher for myself.</p>
<p>If you come across the same issue on your blog, all you need to do is get access to your MySQL database and make the same changes manually. After making these edits, I&#8217;m now able to see all of my old pages in their correct locations and under <strong>Manage &gt; Pages</strong>.</p>
<p>If anyone has any idea why my  <em>post_type</em> fields weren&#8217;t filled correctly after the upgrade, I would be interested to know. Also, if you have a quicker fix to this issue, I&#8217;d be mighty interested as well.</p>
<p>a</p>
<p><a href="http://www.devindra.org/tech/2007/01/28/wordpress-21-and-the-disappearing-pages/">Wordpress 2.1 and the Disappearing Pages</a></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.devindra.org%2Ftech%2F2007%2F01%2F28%2Fwordpress-21-and-the-disappearing-pages%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.devindra.org%2Ftech%2F2007%2F01%2F28%2Fwordpress-21-and-the-disappearing-pages%2F" height="61" width="51" /></a></div>Similar Posts:<ul><li><a href="http://www.devindra.org/tech/2009/12/30/looking-forward-to-the-android-takeover/" rel="bookmark" title="December 30, 2009">Looking Forward to the Android Takeover</a></li>

<li><a href="http://www.devindra.org/tech/2009/10/21/bing-adds-twitter-and-facebook-posts-to-search-results-should-google-worry/" rel="bookmark" title="October 21, 2009">Bing Adds Twitter and Facebook Posts to Search Results, Should Google Worry?</a></li>

<li><a href="http://www.devindra.org/tech/2009/09/03/thoughts-on-the-september-09-new-york-tech-meetup/" rel="bookmark" title="September 3, 2009">Thoughts on the September 09 New York Tech Meetup</a></li>

<li><a href="http://www.devindra.org/tech/2010/01/15/what-nvidias-tegra-means-for-mobile-devices-and-why-you-should-care/" rel="bookmark" title="January 15, 2010">What nVidia&#8217;s Tegra Means for Mobile Devices, and Why You Should Care</a></li>

<li><a href="http://www.devindra.org/tech/2009/05/16/my-thoughts-on-the-palm-pre/" rel="bookmark" title="May 16, 2009">My Thoughts on the Palm Pre</a></li>
</ul><!-- Similar Posts took 17.365 ms -->]]></content:encoded>
			<wfw:commentRss>http://www.devindra.org/tech/2007/01/28/wordpress-21-and-the-disappearing-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
