WordPress.org

Forums

Google Authenticator
wp-login.php Error (3 posts)

  1. cdukes
    Member
    Posted 2 years ago #

    Hi,

    Thanks for bringing GA to WordPress! I'm receiving the following error on a fresh install login page: Notice: Trying to get property of non-object in [...]/google-authenticator/google-authenticator.php on line 174

    I believe the issue is an empty $user object at this point (since there is no $user before someone tries to log in).

    Thanks!

    http://wordpress.org/extend/plugins/google-authenticator/

  2. Henrik Schack
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Cooper
    Could you give me the exact steps needed to recreate this issue ?

    Best regards
    Henrik Schack

  3. cdukes
    Member
    Posted 2 years ago #

    Hi Henrik,

    This was on a fresh WP 3.5.1 install, with just the plugin.

    - Enable it on an (admin) profile.
    - Logout

    The error was on the /wp-login.php screen, and was fixed by adding a !empty($user) check on the indicated line (though I'm not sure if this is secure).

    Thanks,
    ~Cooper

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Authenticator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.