Title: wp-login.php Error
Last modified: August 20, 2016

---

# wp-login.php Error

 *  [cdukes](https://wordpress.org/support/users/walkinonwat3r/)
 * (@walkinonwat3r)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/wp-loginphp-error-2-2/)
 * 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/](http://wordpress.org/extend/plugins/google-authenticator/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Henrik Schack](https://wordpress.org/support/users/henrikschack/)
 * (@henrikschack)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/wp-loginphp-error-2-2/#post-3627457)
 * Hi Cooper
    Could you give me the exact steps needed to recreate this issue ?
 * Best regards
    Henrik Schack
 *  Thread Starter [cdukes](https://wordpress.org/support/users/walkinonwat3r/)
 * (@walkinonwat3r)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/wp-loginphp-error-2-2/#post-3627459)
 * 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

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘wp-login.php Error’ is closed to new replies.

 * ![](https://ps.w.org/google-authenticator/assets/icon-256x256.png?rev=3500822)
 * [Google Authenticator](https://wordpress.org/plugins/google-authenticator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-authenticator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-authenticator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-authenticator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-authenticator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-authenticator/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [cdukes](https://wordpress.org/support/users/walkinonwat3r/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/wp-loginphp-error-2-2/#post-3627459)
 * Status: not resolved