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
-
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.
Hey, do you know if hostgator turns this on by default? I’ve not turned it on or enabled it.
It probably is on by default. You may need to ask your host how to turn it off.
The topic ‘Undefined Variable and Undefined Index Errors’ is closed to new replies.