The Far Side of Tech

Icon

"It's not so much what you have to learn if you accept weird theories, it's what you have to unlearn."
Isaac Asimov


Wordpress 2.1 and the Disappearing Pages

After several Wordpress upgrades gone awry, I’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 crossed. Everything appeared to be working at first, but I was quickly surprised to find that all of my pages had disappeared!

When I navigated to Manage > Pages 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 newspaper columns. I then jumped over to the Manage > Posts 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’s and it pretty much made a mess of the blog.

The new “post_type” fieldAfter 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 Playing with Wordpress. Basically, they’re making use of a previously empty field in the wp_posts table called post_type wherein posts are designated as “posts” and pages as “pages”. It’s a simple change, and I’m honestly not surprised they didn’t make the switch earlier, but it could pose a problem if your posts for some reason didn’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. Read the rest of this entry »

About

A blog dedicated to the discussion of technology and its impact on our lives. From consumer technology to the Singularity, no tech is taboo.

 

More about Devindra Hardawar

@Devindra on Twitter

Archives