Home Forums Plugin Support WP User Frontend Pro Error get_userdatabylogin

This topic is: resolved

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  towhid 4 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36312

    jeremymatter
    Participant
    Post count: 25

    Hi,
    I have an problem, when i'm logging to my website, I have the error :

    Notice: get_userdatabylogin is deprecated since version 3.3! Use get_user_by(‘login') instead. in D:\wamp\www\wordpress\wp-includes\functions.php on line 3378.

    I never user get_userdatabylogin in my code, the only use is in : wp-include/pluggable-deprecated.php

    if ( !function_exists(‘get_userdatabylogin') ) :
    /**
    * Retrieve user info by login name.
    *
    * @since 0.71
    * @deprecated 3.3.0
    * @deprecated Use get_user_by(‘login')
    *
    * @param string $user_login User's username
    * @return bool|object False on failure, User DB row object
    */
    function get_userdatabylogin($user_login) {
    _deprecated_function( __FUNCTION__, ‘3.3', “get_user_by(‘login')” );
    return get_user_by(‘login', $user_login);
    }
    endif;

    How can i fix my problem ?

    Thanks you !
    (Sorry for my english, I'm french)

    #36314

    jeremymatter
    Participant
    Post count: 25

    Hey,

    I resolved this problemm. It's a problem in my code, sorry.

    But it's was an index problem, i don't know why it's this error was display…

    Good bye !

    #36428

    towhid
    Participant
    Post count: 4505

    Hello Jeremymatter,

    I am happy to know that your problem solved.

    From my side, I had checked and did not find any error.

    Thank You ๐Ÿ™‚

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Error get_userdatabylogin’ is closed to new replies.