Title: Left over old code causing errors in 5.0.35
Last modified: February 9, 2018

---

# Left over old code causing errors in 5.0.35

 *  [drtonyb](https://wordpress.org/support/users/drtonyb/)
 * (@drtonyb)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/left-over-old-code-causing-errors-in-5-0-35/)
 * I’m getting the following errors reported in debug mode:
 * PHP Notice: Undefined variable: get_flag_choices in wp-content\plugins\google-
   language-translator\google-language-translator.php on line 450
 * PHP Notice: Undefined variable: get_flag_choices in wp-content\plugins\google-
   language-translator\google-language-translator.php on line 327
 * PHP Notice: Undefined variable: flag_width in wp-content\plugins\google-language-
   translator\google-language-translator.php on line 344
 * A quick look at the new code reveals that $get_flag_choices is never initialised,
   so its use on line 450 and 327 tries to initialise $get_flag_choices_count which
   itself is never used anywhere.
 * $flag_width is used in the function footer_script() on line 344, but it isn’t
   initialised in this function, although it is initialised and used in the functions
   googlelanguagetranslator_horizontal() and googlelanguagetranslator_vertical().
 * Looking forward to update 5.0.36.

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

 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/left-over-old-code-causing-errors-in-5-0-35/#post-9956827)
 * Thank you, I’ll probably be making another update here today.
 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/left-over-old-code-causing-errors-in-5-0-35/#post-9956948)
 * Hi [@drtonyb](https://wordpress.org/support/users/drtonyb/), I have just made
   the update fixing those errors. Thank you for the very useful post. Let me know
   if you see anything additional that catches your eye. I will do my best to tackle
   the most urgent.
 * More updates to come – thanks again!
 * Rob

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

The topic ‘Left over old code causing errors in 5.0.35’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/left-over-old-code-causing-errors-in-5-0-35/#post-9956948)
 * Status: not resolved