Title: Getting undefined array key errors with 1.8.0
Last modified: March 14, 2023

---

# Getting undefined array key errors with 1.8.0

 *  Resolved [ghostqix](https://wordpress.org/support/users/ghostqix/)
 * (@ghostqix)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/)
 * When the Geolocation plugin is enabled (v1.8.0), I’m getting the following error:
 * **Warning**: Undefined array key 0 in **/homepages/16/d122423689/htdocs/gc/wp/
   wp-content/plugins/geolocation/geolocation.php** on line **596**
 * This error appears to happen twice for each post shown on the page.
 * I need to deactivate the plugin to get these errors off my page. If you want 
   to see the error in action, let me know and I can re-activate it for your troubleshooting
   efforts.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgetting-undefined-array-key-errors-with-1-8-0%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [ymichel](https://wordpress.org/support/users/ymichel/)
 * (@ymichel)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/#post-16558849)
 * Can you please retry with 1.8.1
 *  Thread Starter [ghostqix](https://wordpress.org/support/users/ghostqix/)
 * (@ghostqix)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/#post-16559045)
 * That’s an improvement, but I’m still getting errors. Instead of the errors appearing
   at the start of the page (before the splash banner), they now appear down in 
   the individual posts.
 * ![](https://i0.wp.com/ghostcruises.org/misc/geolocation-error.jpg)
 * The plugin is re-activated if you want to inspect it live.
    -  This reply was modified 3 years, 2 months ago by [ghostqix](https://wordpress.org/support/users/ghostqix/).
 *  Plugin Author [ymichel](https://wordpress.org/support/users/ymichel/)
 * (@ymichel)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/#post-16559422)
 * Hi, 
   found the issue and fixed it with 1.8.2.However, it seems that you have 
   DEBUG set to true in your wp-config.php Unless you really need it, it is advisable
   to switch it of in a production env.
 * Please confirm. THX.
 * BR,
   Yann
 *  Thread Starter [ghostqix](https://wordpress.org/support/users/ghostqix/)
 * (@ghostqix)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/#post-16559707)
 * That fixed it. Thank you.
 * I looked at the wp-config.php and WP_DEBUG is set to false (and the false is 
   not quoted). If there’s some other setting that it putting WordPress into debug
   mode, I’m not aware of it.
 *  Plugin Author [ymichel](https://wordpress.org/support/users/ymichel/)
 * (@ymichel)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/#post-16559748)
 * Nice to see it is solved. Will close the ticket now.
 *  Plugin Author [ymichel](https://wordpress.org/support/users/ymichel/)
 * (@ymichel)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/#post-16559751)
 * …maybe you can also find some time for a review?

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

The topic ‘Getting undefined array key errors with 1.8.0’ is closed to new replies.

 * ![](https://ps.w.org/geolocation/assets/icon-256x256.png?rev=2871062)
 * [Geolocation](https://wordpress.org/plugins/geolocation/)
 * [Support Threads](https://wordpress.org/support/plugin/geolocation/)
 * [Active Topics](https://wordpress.org/support/plugin/geolocation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geolocation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geolocation/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [ymichel](https://wordpress.org/support/users/ymichel/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/getting-undefined-array-key-errors-with-1-8-0/#post-16559751)
 * Status: resolved