WordPress 2.8 bleeding-edge and WordPress_Module::_weak_escape()

After upgrading to 2.8-beeding-edge I got the following error:

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

Disabling Redirection plugin solved the problem. Could it be that Redirection also defines _weak_escape() or escape()? Server ir running PHP 5.2.6.

14 Comments

Mr. Serge 11 months, 2 weeks ago

To get a 2.8 version I should be a beta tester or I can get a direct link also?

Kaspars 11 months, 2 weeks ago

Mr. Serge, to test WordPress 2.8 simply change $wp_version inside /wp-includes/version.php from 2.7.1 to 2.8-bleeding-edge and do an automatic upgrade as you normally would when a new version is released.

Mr. Serge 11 months, 2 weeks ago

Thank you. Great tip.

jamEs 9 months ago

How do I disable the plugin if I can’t get to anything on my blog? I tried just pulling it out of the plugins directory and that just opened up a whole other can of worms.

Kaspars 9 months ago

jamEs, just delete the plugin folder and refresh any of the front-end pages for two times — first, it will display an error while the core disables the plugin, and at the second time the error should be gone.

Hari Bhajan 9 months ago

Thanks for the simple solution!

Andy 8 months, 4 weeks ago

Had this same problem. Solution:

Rename “plugins” to “plugins.old”
Create new dir: plugins
Refresh page, 2.8 should be installed and working fine.
Copy old plugins from plugins.old to plugins one by one, refreshing every time, to pinpoint which plugin is causing the problem.

ravi 8 months, 3 weeks ago

deleting redirection plugin helped. thanks for the simple solution

Sandy Kumskov 8 months, 3 weeks ago

renaming redirection plugin folder was perfect, thanks very much :)

Jon Milani 8 months, 3 weeks ago

This page just saved me from having many major headaches with my WP upgrade! Thank you so much!

As a side note, there is a new version of the plugin available (as of today – June 20, 2009), so hopefully the new version won’t break WP 2.8.

http://urbangiraffe.com/plugins/redirection/

Jeremy Blake 8 months, 3 weeks ago

It was the redirection plugin for me too. Thank you for the help. Worked like a charm! :)

JC 8 months, 2 weeks ago

Thank you for the simple solution. Brilliant

Andy 3 months, 3 weeks ago

Redirection plugin was the problem for me to. I just deactivated it, upgraded it, and then reactivated it and all is well now!

Feedback on other blogs (trackbacks)

Leave a comment

Note: Basic HTML formatting is allowed. If you post HTML or PHP fragments, wrap them with <code>...</code> which will automatically encode the HTML entities.

Es vienmēr tevi mīlēšu, Sirsniņ!