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:
- 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.
- You should be able to log into the WP admin now.
- Go to Plugins in the WP admin and confirm that the Redirection plugin is disabled.
- Change the /wp-content/plugins/redirection-bad back to /wp-content/plugins/redirection.
- Refresh the Plugins page in the WP admin.
- 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.

Thanks – it fixed my problem with this
Cheers
thanks, worked for me too!
greetz
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.
You are an angel of the highest order for this, thank you!
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
You SAVED me!!! Thanks so much!
THANK YOU !!!!!!!!!!!!!! U R THE MAN
Thanks so much for offering this post … It saved my life
Nick