Title: Undefined Variable and Undefined Index Errors
Last modified: August 22, 2016

---

# Undefined Variable and Undefined Index Errors

 *  Resolved [Leads Koala](https://wordpress.org/support/users/btimsah/)
 * (@btimsah)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-and-undefined-index-errors/)
 * After the latest update I started getting a string of both errors and error messages.
 * I have debugging turned off – set to false.
 * But I keep getting Undefined index or undefined variable and it seems to happen
   almost randomly. If I disable one plugin, then another error pops up for a different
   plugin. Disabling and then re-enabling does not help. I don’t understand how 
   this happened or what it means. I’m about to just kill the entire install – which
   will hurt, but I’m sick of the errors.
 * Notice: Undefined index: query in /**/**/public_html/wp-content/plugins/simple-
   mobile-url-redirect/mobile-redirect.php on line 134
 * Notice: Undefined variable: english_flag_choice in /**/**/public_html/wp-content/
   plugins/google-language-translator/google-language-translator.php on line 372
 * Notice: Undefined variable: english_flag_choice in /**/**/public_html/wp-content/
   plugins/google-language-translator/google-language-translator.php on line 375
 * Notice: Undefined variable: lang_attribute in /**/**/public_html/wp-content/plugins/
   google-language-translator/google-language-translator.php on line 385

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-and-undefined-index-errors/#post-5711607)
 * Turn off the PHP display_errors setting. You should not have a live site setup
   to display errors in the first place. That is a debug setting, useful for development,
   but useless on real production sites.
 * Notices are ignorable errors that normally don’t display at all.
 *  Thread Starter [Leads Koala](https://wordpress.org/support/users/btimsah/)
 * (@btimsah)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-and-undefined-index-errors/#post-5711608)
 * Hey, do you know if hostgator turns this on by default? I’ve not turned it on
   or enabled it.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-and-undefined-index-errors/#post-5711713)
 * It probably is on by default. You may need to ask your host how to turn it off.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [11 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-and-undefined-index-errors/#post-5711744)
 * [http://forums.hostgator.com/php-ini-modifications-t792.html?s=4941924a9200de9d3ea9401c7b2802ea&#038](http://forums.hostgator.com/php-ini-modifications-t792.html?s=4941924a9200de9d3ea9401c7b2802ea&#038);
 * Google helps here 🙂

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

The topic ‘Undefined Variable and Undefined Index Errors’ is closed to new replies.

## Tags

 * [error message](https://wordpress.org/support/topic-tag/error-message/)
 * [undefined index](https://wordpress.org/support/topic-tag/undefined-index/)
 * [undefined variable](https://wordpress.org/support/topic-tag/undefined-variable/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 3 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/undefined-variable-and-undefined-index-errors/#post-5711744)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
