• ianbauer2

    (@ianbauer2)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • RossMitchell

    (@rossmitchell)

    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?

    You can do this using phpmyadmin
    It is absolutely worth installing if you don’t have it already.

    Thread Starter ianbauer2

    (@ianbauer2)

    Thanks, Ross. I’m able to access phpmyadmin.

    Is it the database I’m supposed to export?

    RossMitchell

    (@rossmitchell)

    Yes, export the database, the database named in your wp-config.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Call to undefined method wpdb::esc_like()’ is closed to new replies.