laylock
Member
Posted 2 years ago #
Hi,
I'm using a static page for my 'Front page', and a page called 'blog' for my 'Posts Page'. Everything works fine, except that /blog returns an index when it used to return all my posts. When I try to edit the page called 'blog', I get the following error:
Fatal error: Call to undefined function: _weak_escape() in /home4/laylocko/public_html/wp-includes/wp-db.php on line 487
Any help would be greatly appreciated.
That's strange. What version of PHP are you running? I can suggest a hack for you. Open wp-includes/wp-db.php and replace _weak_escape on lines 484 and 487 with addslashes Does exactly the same thing.
For me, this error was a result of an old version of the Redirection plugin. I deleted it via FTP and all was well (and then I installed the latest version of the plugin, and all was still well :) ).
shazza007
Member
Posted 1 year ago #
This exact error happened to me today. Thanks for the fix ... deactivating and then upgrading the Redirection plugin did the trick. Whew!