• Resolved rgosse75

    (@rgosse75)


    Hello,

    No data is showing for current role, last seen, or logout columns?

    Is there a reason no data is importing to these fields?

    Please advise, thanks.

    Cheers!

    Bobby

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Faiyaz Alam

    (@faiyazalam)

    Can you please tell me the login status for such records?

    Thread Starter rgosse75

    (@rgosse75)

    The columns have “—-” as data.

    Three are showing logged in and one shows logged out.

    All four instances are the same user, myself, the admin.

    It shows every instance where I log in but those columns are not showing any data.

    Its strange that three show logged in though its the same user name????

    • This reply was modified 6 years, 4 months ago by rgosse75.
    • This reply was modified 6 years, 4 months ago by rgosse75.
    • This reply was modified 6 years, 4 months ago by rgosse75.
    • This reply was modified 6 years, 4 months ago by rgosse75.
    Plugin Author Faiyaz Alam

    (@faiyazalam)

    Could you please share those records from your database table “wp_fa_user_logins”?

    Thread Starter rgosse75

    (@rgosse75)

    Where is the database table?

    The one on the backend that I see?

    • This reply was modified 6 years, 4 months ago by rgosse75.
    Plugin Author Faiyaz Alam

    (@faiyazalam)

    Please follow these following steps to get the table:

    1)Access phpMyAdmin
    2)Select your database which is connected to your WordPress project.
    3)Select table “wp_fa_user_logins”
    4)Export the records OR take a screenshot
    5)Now share the exported file or screenshot with me.

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    Can you please use the followign code at the bottom in your theme functions.php file and deactivate the plugin?

    Replace the username “admin” with your actual username in the code so that the code will execute only for the given username.

    Now login and share the output, remove the code from functions.php file and activate the plugin.

    You should change the username and password in the output for security reasons.

    add_action('wp_login', 'test_after_login', 0, 2);
    
    function test_after_login($username, $user){
    //replace "admin" with your username
    if('admin' != $username){
    return;
    }
    
    $userId = !empty($user->ID) ? $user->ID : "UNKOWN USER ID";
    $role = !empty($user->roles) ? implode(",", $user->roles) : "UNKOWN ROLE";
    
    echo "<pre>";
    echo "User ID is ".$userId;
    echo "<br>";
    echo "<br>";
    
    echo "Username is ".$username;
    echo "<br>";
    echo "<br>";
    
    echo "Role is ".$role;
    echo "<br>";
    echo "<br>";
    
    echo "User object is: <br>";
    print_r($user);
    exit;
    }
    Thread Starter rgosse75

    (@rgosse75)

    User ID is UNKOWN USER ID

    Username is “”””””

    Role is UNKOWN ROLE

    User object is:

    Had to remove it from php functions first because I couldn’t log in

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    There must be user ID in the above output, but its not.
    It means that there are some conflicts in other plugins, not in my plugin because it is deactivated.

    You can check conflicts by activating those plugins, one by one, which might conflict and see the output of the above code.

    Do not activate my plugin while checking conflicts.

    Thread Starter rgosse75

    (@rgosse75)

    Ok, I will check the plugins and see if I can find the cause of the conflict.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Field Data Not Showing’ is closed to new replies.