WordPress 2.8 Upgrade Error Fix to Cure This Error: call to undefined method WordPress_Module::_weak_escape()
I just upgraded one of my niche blogs and got the following error:
Fatal error: Call to undefined method WordPress_Module::_weak_escape()
in ../wp-includes/wp-db.php on line 473
After a little bit of playing around I found the cause… The Redirection plugin…
The cure is simple: Delete the or rename plugin folder in the “wp-content/plugin” folder and refresh the blog login page (had to do it twice because the first time round WordPress had to disable the plugin (reset the database).
After logging back into the blog it was a simple matter of uploading the folder and reactivating the plugin.
Moral of the story?
Deactivate plugins before doing an upgrade – it saves a lot of headaches (by eliminating a major cause of upgrade errors).
Filed under 


September 9th, 2009 at 8:42 pm
My wife tried to upgrade her wordpress blog and did the same thing. I’m glad you made this post because I was starting to dig into the problem and would have spent a day or more working on it probably. A quick search for the error brought up your site. Thanks a lot! You saved me a ton of troubleshooting!