WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined method WP_User::get_user_by() (8 posts)

  1. joliver1
    Member
    Posted 1 year ago #

    I'm not a programmer. I've had luck with a site for years but suddenly I can't log in. I get a message that says:

    Fatal error: Call to undefined method WP_User::get_user_by() in /home/path/pluggable.php on line 136

    I've looked at the line in question but I have no idea what to do.

    Can anyone help? I have already tried replacing the file with a fresh WP download.

    Thanks,
    John

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Using an FTP client such as FileZilla or your host provided File manager, rename the folder /wp-content/plugins/ to /wp-content/old-plugins/ and try to login. If you can, it's a bad plugin. So, rename folder back to plugins, then rename each folder within plugins folder one at a time, testing site each time.

  3. joliver1
    Member
    Posted 1 year ago #

    Thanks Seacoast. I did as you suggested and now I get this message instead:
    Fatal error: Call to undefined method WP_Styles::get_data() in /home/path/wp-includes/class.wp-styles.php on line 113.

    So I go to that line in that file and here is what is there from line 112 to 128:

    function print_inline_style( $handle, $echo = true ) {
    $output = $this->get_data( $handle, 'after' );

    if ( empty( $output ) )
    return false;

    $output = implode( "\n", $output );

    if ( !$echo )
    return $output;

    echo "<style type='text/css'>\n";
    echo "$output\n";
    echo "</style>\n";

    return true;
    }

    In addition, now if I just try to load the web site, I get this warning only when I go to the home page:
    http://www.earsay.com/standonguardforcbc/

    Fatal error: Call to undefined function wp_jquery_dropdownmenu() in /home/ears1919/public_html/standonguardforcbc/wp-content/themes/ad-clerum-10/header.php on line 50.

    So I go to that file and see this on lines 49 to 51:

    <div id="menu">
    <?php
    echo wp_jquery_dropdownmenu(0,“Blog ,1, 1);
    ?>
    </div>
    <div id="middlepic"></div>

    How do I define the function?

    Is any of this a quick fix for a php programmer. I don't know how to program at all.

    Thanks,
    John

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    This appears to be theme related - upload the unedited default theme (if not present already) and then rename the current theme folder and any other theme's to old-theme_folder_name and try to load site - this will now load site with default theme and no plugins.

  5. joliver1
    Member
    Posted 1 year ago #

    If I do that, I just get a blank page on the home page. ANd if I try to log in, I get the same Fatal error message as before.

  6. joliver1
    Member
    Posted 1 year ago #

    Here's the offending php code that some hacker inserted into my site on several pages. I've managed to remove them all, but I'm still getting an error message about USERS that locks out the site from public view.

    Here's the offending code:

    [Code moderated. Please do not post hack code blocks in the forums. Please use the pastebin]

    And here's the code I get when I try to open the web site http://standonguardforcbc.ca

    Fatal error: Call to undefined method WP_User::exists() in /home/myfolder/public_html/standonguardforcbc/wp-includes/pluggable.php on line 729

    I have already downloaded and installed a fresh new unedited copy of the pluggable.php file, but no change in behaviour.

    Thanks for your help.

    John

  7. esmi
    Forum Moderator
    Posted 1 year ago #

  8. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    If this is not a plugin or theme issue, is there a problem with core WP?

Topic Closed

This topic has been closed to new replies.

About this Topic