Support » Fixing WordPress » Permalinks broken after 2.6 upgrade – Please Help!

  • After upgrading to 2.6, clicking on a Post Title brings me to the 404. I tried rebuilding the permalinks, which regenerated my .htaccess file, but it is still broken. Static pages and single posts all bring up the 404. The only page that works correctly is the main index. Please help and thanks!
    Edit: I even tried disabling all my plugins, but that did not help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Ive got the exact same problem!

    When setting the permalinks to the “default” – site.com/?p=123 it works. Then I set it back to the custom structure: /index.php/%year%/%monthnum%/%day%/%postname%/ and it breaks again. I really would like to have the custom structure working; Google has my site indexed as such. Can anyone help?

    FIXED!
    1. Upload this file to your wp-includes directory:
    http://trac.wordpress.org/attachment/ticket/6650/rewrite.php
    (easy to save this link as rewrite.php, then upload it: http://trac.wordpress.org/attachment/ticket/6650/rewrite.php?format=raw)

    2. Set permalinks to “Default” and Save it.

    3. Set permalinks to “Custom Structure” of your choice and Save it.
    (Mine is: /index.php/%year%/%monthnum%/%day%/%postname%/)

    4. The above fixed it, but I saw some weird errors at the top of each of my pages pointing to wp-includes/plugin.php – so I added a hack:
    error_reporting(0); (put this at the top, just below the opening <?php tag.

    That’s it. Please let me know if you have any problems by commenting on my blog here: How To Fix Permalinks In WordPress When All Else Fails

    @kworthington
    The fix you used was meant for WordPress 2.5. I’m not sure if you can use it safely for WordPress 2.6.

    Nevertheless, another temporary fix is to add tags and categories prefixes in the permalink admin screen. This will make your URLs valid before we get the problem fixed by the WordPress developpers.

    Best regards

    i went to download http://www.wordpress.org/latest.zip, got the rewrite.php from that and replaced it again in my installation, and the two error lines are gone, and the permalinks work correct.

    Don’t forget to write down your permalink phrase as this procedure will remove it, and you have a problem when you crafted a complicated one!!

    Sorry — I get a 404 error with that link.

    Anyone else have any luck with this?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    darleene

    (@darleene)

    Otto, my problem wasn’t with the .php. I also upgraded the other day and everything seemed to be fine for a while…except my categories, which were missing. It seemed as soon as I fixed the categories (using this fix), my permalinks broke. It worked briefly in conjunction with the Permalinks Redirect button, but when I started to try and clean up (like, replacing the small htaccess file with the complete one), everything broke again. I tried kworthington’s fix, but that didn’t work either. Please help.

    doktormostro

    (@doktormostro)

    I recently upgraded to WP 2.6.1 and this fix doesnt work at all… when i upload the file, all goes wrong and i cant actualize the settings. So when i upload the original file “rewrite.php” all goes normal and not functional.

    Any help??

    eiland

    (@eiland)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Permalinks broken after 2.6 upgrade – Please Help!’ is closed to new replies.