• 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)
  • Thank you, I’ll probably be making another update here today.

    Hi @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.