Undefined _weak_escape(), Redirection, and the WordPress 2.8 Upgrade

If you upgraded to WordPress 2.8 and ended up with an error like this…


Fatal error: Call to undefined method WordPress_Module::_weak_escape() in ../wp-includes/wp-db.php

Chances are you have the Redirection plugin. Anything prior to version 2.1.14 will throw this error when you upgrade. Of course, it would have been nice if you upgraded the plugin prior to upgrading WordPress, but you didn’t do that… did you?

I didn’t either. :)

No worries. The solution is simple enough:

  1. Rename the /wp-content/plugins/redirection directory to /wp-content/plugins/redirection-bad (or something like that) – This will cause WordPress to disable the plugin.
  2. You should be able to log into the WP admin now.
  3. Go to Plugins in the WP admin and confirm that the Redirection plugin is disabled.
  4. Change the /wp-content/plugins/redirection-bad back to /wp-content/plugins/redirection.
  5. Refresh the Plugins page in the WP admin.
  6. You should be able to use the automatic upgrade now on the Redirection plugin.

If you have other blogs to upgrade, try upgrading the plugin first… unless you like this sort of thing. :)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Reddit
  • Slashdot
  • Technorati
  • DZone
  • NewsVine
  • StumbleUpon
  • E-mail this story to a friend!
  • Sphinn

8 Comments

  1. john says:

    Thanks – it fixed my problem with this

    Cheers

  2. claus says:

    thanks, worked for me too!

    greetz

  3. I have 2 sites running Wordpress and on one I upgraded the plugins before upgrading to Wordpress 2.8 and this site worked perfectly. On the other site I upgraded to Wordpress 2.8 before upgrading the plugins and I got the error mentioned above.

    Thanks for the fix… this got my second site back up and running with 5 minutes.

    Many Thanks.

  4. Robert Brown says:

    You are an angel of the highest order for this, thank you!

  5. Tonny says:

    Thanks. Saved my day :) :):) We are lucky having people finding out stuff like this for us :)
    Tonny’ s last blog ..Hvorfor fjerner dere info om svindel My ComLuv Profile

  6. Dave says:

    You SAVED me!!! Thanks so much!

  7. Rob says:

    THANK YOU !!!!!!!!!!!!!! U R THE MAN

  8. nick says:

    Thanks so much for offering this post … It saved my life

    Nick