Title: PHP Warning Undefined Array Key
Last modified: July 27, 2023

---

# PHP Warning Undefined Array Key

 *  [Alexander S. Kunz](https://wordpress.org/support/users/antermoia/)
 * (@antermoia)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-12/)
 * Hello,
 * I’m getting the following error message in my error_log when I switch to **PHP
   version 8:**
 *     ```wp-block-code
       PHP Warning:  Undefined array key 0 in [...clipped...]/wp-content/plugins/google-authenticator/google-authenticator.php on line 221
       ```
   
 * I’m using version 0.54
 * Thanks for any help,
   Alex.
    -  This topic was modified 2 years, 8 months ago by [Alexander S. Kunz](https://wordpress.org/support/users/antermoia/).

Viewing 1 replies (of 1 total)

 *  [HJ](https://wordpress.org/support/users/coach-henk/)
 * (@coach-henk)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-12/#post-17123561)
 * Same here in the error.log.
 * Cheers,
   Henk

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning Undefined Array Key’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [HJ](https://wordpress.org/support/users/coach-henk/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-12/#post-17123561)
 * Status: not resolved