Pages broken after wordpress 2.5.1 upgrade

Apparently the Wordpress 2.5.1 upgrade last week did not went smooth as what I initially thought. I missed testing my wordpress pages (not post) above such author, contact form. If you notice, all pages were broken. It’ll direct me to 404 page. I only came across to this issue when I trying to add top post and archive page. It works on preview but not when it get published

Root cause?
It seems like this is related to permalink , not related to what so ever plugin. Upon checking on Wordpress forum, it has been reported since version 2.5, but similar issue is still there. If I modify back the permalink structure to default setup, or using resolution (a) below, the pages are accessible.

Resolution

a) for normal or ‘pretty’ permalink (most of us use this)

Simply change your permalink to /%postname%/ or use default structure . It works in this blog, but I prefer to to stay with current permalink /%year%/%monthnum%/%day%/%postname%/ since all my contents were indexed this way by search engine. I worried that Google will see this as broken link, even though I have Permalink Redirect plugin installed. Hopefully I manage to find the permanent fix soon

b) For PATHINFO permalink structure

This is for those who using Apache running on Windows or those that permalink structure beginning with index.php E.g /index.php/%postname%/ .Download new rewrite.php from here, and replace the current file at your /wp-include directory. You can find the discussion’s thread here.

Looks like I had to live with broken pages at least for now, for the sake of permalink and the contents indexed by search engines. Since I don’t have any contact form, should you have any inquiry, just leave it at any comment section, or shoot me an email to zakifahmi at gmail dot com

Learn more about permalink from this page. Heck, I waste a lot of time to figure out this fix since last night, but at least I learn a lot of things. Fair enough!!


Related Posts

RSS feed | Trackback URI

19 Comments »

Comment by azwanhadzree Subscribed to comments via email
2008-05-01 04:55:24

i am using the same type of permalinks for my azwanhadzree.com, looks like i might face the same issue. my kids is using /%postname%/ and the other blog is also the same, tu sebab takde masalah kut

anyway, i will have to test first before i proceed

 
Comment by am
2008-05-01 05:24:23

am pun dapat masalah yang sama… dan dia selalu confilct dengan plugin… deactive all plugin… dan activate satu2 dan refresh page..
sekali activate sekali refresh.. nanti taulah plugin mana yang kacau tu…

Comment by zaki
2008-05-01 08:01:46

Ok, I’ll try this, hope it works ;)

 
 
Comment by Igre Subscribed to comments via email
2008-05-01 10:54:55

I think this is already fixed in new version or isn’t ? :S

 
Comment by Zul Subscribed to comments via email
2008-05-01 12:41:33

WordPress is an adorable platform to work with but every round of updates give me this bad vibe. Half of me says that I should not upgrade but the other half does not want to belong to the ‘outdated’ lot. I use WPAU for upgrade, it seems ok on the front end but I am not sure if it screws or breaks any back end files. Hopefully not.

I just wish WordPress to be a machine that magically upgrades itself every time…

Comment by zaki
2008-05-02 18:34:37

It does not have any issue except this one.

Perhaps 1 day, when Matt has free time to figure this out

 
 
Comment by Raymond Chua Subscribed to comments via email
2008-05-01 17:23:18

Hi Zaki,

Sorry to hear about the challenge that you encounter.

How about tweaking your .htaccess file.

I’m not sure if it can fix the problem but it worths a try.

All the best!

Comment by zaki
2008-05-02 18:32:23

Thanks man. While looking for this error, I found something else, that I once ,looking at but didn’t found it

Comment by Raymond Chua Subscribed to comments via email
2008-05-03 00:44:29

And what’s that?

(Comments wont nest below this level)
Comment by zaki
2008-05-03 13:37:32

Not that interesting la, I found plugin which allow me to put php script in the post

 
 
 
 
Comment by seo lad
2008-05-03 16:09:31

Could this be your htaccess? I had a similar problem myself.

Comment by zaki
2008-05-03 17:45:35

Yeah, most probably yes. I’d tried few suggested fixes in the Wordpress forum with no luck

Btw, has your prob resolved? Mine hasn’t

 
 
Comment by cikgu azleen
2008-05-04 12:37:49

Hi, are you upgrading to 2.5 or 2.5.1?

I’ve upgraded cikguazleen.com to 2.5 and faced same problem as yours.. I’ve fixed it with help from some blogs.. I’ve wrote about it: http://www.cikguazleen.com/index.php/blogging-guide/2008/05/bagaimana-upgrade-blog-ke-versi-terkini-siri-4.html and the issue is settled. My pages has made it come back to the internet :D

I’ve installed kelasenglish.com with 2.5.1 and there is no such problem..

Comment by zaki
2008-05-04 14:56:41

Thanks cikgu, but I don’t want to add index.php to my permalink.

Btw, I’m upgrading from 2.2 to 2.5.1

 
 
Comment by cikgu azleen
2008-05-04 12:40:35

where is my comment? Did I miss something?

Comment by zaki
2008-05-04 14:36:13

cikgu, i flag first time commentator

 
 
Comment by eches
2008-05-04 23:56:00

If you change the permalink structure you need to do 301 redirects otherwise you will lose visitors from search engine and if I’m not mistaken there’s some sort of penalty from Google in term of PR. Google treats the old links as broken links. The good thing about this 301 redirects is it carries all PR and all link juices from previous link to the new one. Please bear in mind, it takes couple of week before everything starts to propogate, I mean thing related to PR etc, the redirect definitely happens right away.

You can either plunge yourself into htacess to fix this problem or you can use wordpress plugins to fix this problem. I chose the latter since I don’t know how to do it manually.

There are 2 plugins that you need to install to fix the problem .
1. Permalink migration ( http://www.deanlee.cn/wordpress/permalinks-migration-plugin/ )
2. Permalink Redirect ( http://scott.yang.id.au/code/permalink-redirect/ )

I think Permalink Redirect plugin all alone can do the job but I activated both. I hope these plugins help.

Comment by zaki
2008-05-06 04:39:07

I have permalink redirect installed, but no permalink migration. Thanks for the idea

 
 
2008-10-31 01:45:46

[...] This is pretty simple. Upgrade your version to wordpress 2.6, and that’s fix your problem. I wrote about this issue before and apparently it was fixed once it upgraded without I noticing that it has [...]

 
Name (required)
E-mail (required - never shown publicly)
URI

Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.