Fatal error: Call to undefined method wpdb::esc_like()
-
I’m moving my site from a local host to Hostmonster. I’ve been having troubles with that, but that’s another issue. What I’ve decided to do is just set up a new WP installation on Hostmonster and do an export/import.
The problem is, I can’t log into the site on my local host. I think since updating it to 4.0. I know the admin/password is correct. Here’s the error I get:
Fatal error: Call to undefined method wpdb::esc_like() in C:\Xammp\htdocs\wp\wp-includes\canonical.php on line 527
I checked the canonical.php file, line 527526- and it says:
if ( get_query_var(‘name’) ) {
$where = $wpdb->prepare(“post_name LIKE %s”, $wpdb->esc_like( get_query_var(‘name’) ) . ‘%’);So I’ve tried:
-Turning off the theme and plugins.
-Creating a new user.
-Replacing the wp-includes and wp-admin folders.I know it has something to do with the WordPress update and how it works with “esc_like”
I’ve read this but have no idea what any of it means.
All I need to do is log in and get an export file. Is there a way of doing that without logging in? Can anyone help me out with this?
- The topic ‘Fatal error: Call to undefined method wpdb::esc_like()’ is closed to new replies.