After upgrading to WordPress3.1, many users experienced broken permalink issues. Some users were able to identify the Simple Tags or Top Level Category plugin as the culprit. In this case, obviously, the culprit is the Multi-page Toolkit plugin. http://solidlystated.com/scripting/wordpress-3-1-permalinks-broken-multi-page-toolkit/
The Quick and Easy Fix
The following simple fix was identified by WordPress.org member docarzt, so I cannot take credit for it. You simply need to delete one line of code.
This fix applies to Multi-page Toolkit version 2.6
and a newly upgraded WordPress 3.1 installation.
Please note that the broken plugin may cause WordPress to act strangely. Disabling the plugin may not immediately cause your broken permalinks to appear fixed. Likewise, the fix may not appear to work after reactivating the plugin. I was able to simply wait a minute to verify that it righted itself.
Find the allpage_permalink()
function in TA_multi_toolkit.php
in the plugin’s folder.
function allpage_permalink() { global $wp_rewrite; $wp_rewrite->add_endpoint("all", EP_ALL); $wp_rewrite->flush_rules(); ... } |
Delete the line $wp_rewrite->flush_rules();
and you are done.
If you have broken permalinks after your WordPress 3.1 upgrade and you have neither the Multi-page Toolkit or Simple Tags plugin, you should definitely try disabling all your plugins to see if that repairs it.
Then, you can turn them back on one at a time and find the one that causes you heartache.
Good luck! If you identify any other broken plugins, comment about them below to help other users… at least until we get some proper plugin updates released.
List of reported broken plugins at WordPress 3.1 launch:
- Simple Tags
- Multi-page Toolkit
- Top Level Categories
- Featured Content Gallery
- Simple Sidebar Share Widget
- Advanced Permalinks
- Qtranslate
Thank you! That did fix the problem of broken links on my blog. I just hate updates!
Glad it helped! This is the first update I ever had a single issue with. WP needs a big “Rollback version” button on the admin page…
Hallejlauh! I needed this-you’re my savior.
Your the man 🙂
Tanks a lot, got it working again.
Had a problem with “WP No Category Base”. I had to deactivate it, and reactivate it at the end.
Sounds similar to my problem. Once you change the permalinks, you have to “regenerate” them apparently. Switching that plugin off and on apparently does that, as does going into the ‘Permalinks’ section of the admin panel and hitting ‘Update.’
If this doesn’t solve your category/tag link list 404’s (pulldown and top level menus) when you have a custom permalink for Blog Posts, try this “action” function. It’s worked on every site I’ve tried (including multi-sites) WITHOUT having to tinker with .htaccess, change the existing permalink structure, or disable any installed plugins.
The problem is with 3.1’s canonical redirect. Sometimes, just disabling the redirect fixes the pblm. But, if this doesn’t solve it for you, here’s a more extensive alternative hotfix link. Just put the code in your theme’s functions.php file.
http://wpcodesnippets.info/blog/how-to-fix-the-wp-3-1-custom-permalinks-bug.html
Thank you very much.
That fixed the error for me. Thanks.
Hi,
Thanks a ton…I was messing with it from last few hours.
It fixed the problem.
thanks again
Thx a lot!! The bug still in 3.3 upgrade. You saved me =)
Just fixed my problem after 3.3 upgrade too. Didn’t know it was this plugin causing it.
I would have said thanks, but than I took an arrow to the knee ;))
THANKS!
You have no idea how happy this makes me. I saw this as a key feature of my new reviews site and was somewhat annoyed to see the original plugin borking my installation every time. I hope and pray that this keeps on working!
Glad to help. I always do test updates of everything on a development version of my site first to avoid any nasty surprises.
I think it is affecting many bloggers. Did they issue the update?