Title: plugin does not work with an js error
Last modified: November 25, 2016

---

# plugin does not work with an js error

 *  [AnMoreNight](https://wordpress.org/support/users/anmorenight/)
 * (@anmorenight)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/)
 * Hi,
 * Since a few weeks ago, GLT plugin does not work with an javascript error.
    Nothing
   happens after clicking a flag icon.
 * I’m using Google Language Transform plugin 5.0.20. At first, the plugin works
   fine. But now does not work. And it also does not work with latest version 5.0.23.
 * My site:
    [https://moon-light-oasis.net](https://moon-light-oasis.net)
 * GLT settings:
    [https://gyazo.com/4eaa7220560f3d543a46f43c568d3b02](https://gyazo.com/4eaa7220560f3d543a46f43c568d3b02)
 * After my little investigation, I found an error caught by flags.js when I clicked
   a flag icon. Please see below error message and source code via Firefox.
 * > TypeError: c is undefined[Detail] flags.js:29:74
 * > if (document.getElementById(‘google_language_translator’) == null || document.
   getElementById(‘google_language_translator’).innerHTML.length == 0 || c.length
   == 0 || c.innerHTML.length == 0) {
 * I don’t know the reason why the plugin does not work properly.
    And I also don’t
   know this js error causes the problem or not. Is there any google specific changes
   or any conflict with the other plugins?
 * Help me please!
 * Regards,

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

 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8481619)
 * Hi AnMoreNight! Thanks for letting me know about the error. This appears to be
   a plugin bug.
 * However, please switch the layout style to “Vertical” or “Horizontal” and the
   issue will be fixed.
 * Thanks again – this will be fixed very soon.
 *  Thread Starter [AnMoreNight](https://wordpress.org/support/users/anmorenight/)
 * (@anmorenight)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8481757)
 * Hi Rob.
 * Thanks for your quick confirmation and good advice! The issue was improved by
   changing layout option.
 * Hope the code error will be fixed in the next release.
 * Best regards,
 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8493632)
 * Sounds great! We also just updated to version 5.0.24. If you want to update, 
   that would be helpful.
 * Just make sure to refresh your flags.js file (below), then let me know if you
   experience any issues. It’s important to see especially since you are using a
   non-English browser. If any issues occur, it will likely be from non-US browsers,
   and I would like to catch them immediately.
 * [https://moon-light-oasis.net/wp-content/plugins/google-language-translator/js/flags.js?ver=4.6.1](https://moon-light-oasis.net/wp-content/plugins/google-language-translator/js/flags.js?ver=4.6.1)
 * Thanks for your support!
 *  Thread Starter [AnMoreNight](https://wordpress.org/support/users/anmorenight/)
 * (@anmorenight)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8504581)
 * Hi Rob!
 * Thanks for this announcement.
 * I updated GLT to 5.0.24 and it seems good.
    I have not caught any issue related
   using non-English browser untill now.
 * In 5.0.24, we can’t select ‘Popup’ layout.
    Is this correct behavor in this release?
 * And then, I have some css related requets for mobile viewing. I will let you 
   know the detailed report in the other topic.
 * regards.
 *  [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * (@rm2773)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8504599)
 * Hi [@anmorenight](https://wordpress.org/support/users/anmorenight/), yes I removed
   the Popup layout from non-English browsers for now, only until I have more time
   to figure out a better implementation. Although I added it in an earlier release,
   the flags did not work with the Popup style.
 * If you want me to enable it for you without flag usage, I can do it. Just email
   me here:
 * info @ wp-studio . net
 * The biggest issue with popup version, is that I cannot test it’s functionality
   even if I change to non-English browser, because Google still shows me the English
   version.
 * I will need to find a way to work around this, but I want to get it back in the
   plugin ASAP.
 * Thanks for the question.
    -  This reply was modified 9 years, 6 months ago by [Rob Myrick](https://wordpress.org/support/users/rm2773/).
 *  Thread Starter [AnMoreNight](https://wordpress.org/support/users/anmorenight/)
 * (@anmorenight)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8509377)
 * Hi Rob,
 * > The biggest issue with popup version, is that I cannot test it’s functionality
   > even if I change to non-English browser, because Google still shows me the 
   > English version.
   > I will need to find a way to work around this, but I want to get it back in
   > the plugin ASAP.
 * If Google Translator check your IP address for conferming your country and lang,
   you will be able to change it by using free abroad proxy service.
 * example:
    [http://www.freeproxylists.net/](http://www.freeproxylists.net/)
 * This is just for your information if you never try it :p
 *  Thread Starter [AnMoreNight](https://wordpress.org/support/users/anmorenight/)
 * (@anmorenight)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8509435)
 * Hi Rob,
 * > The biggest issue with popup version, is that I cannot test it’s functionality
   > even if I change to non-English browser, because Google still shows me the 
   > English version.
   > I will need to find a way to work around this, but I want to get it back in
   > the plugin ASAP.
 * If Google Translator checks your IP address for confirming your country and lang,
   you will be able to change it by using a abroad proxy service like as below.
 * [http://www.freeproxylists.net](http://www.freeproxylists.net)
 * This is just FYI. Hope this helps you :p
 * Thanks,

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

The topic ‘plugin does not work with an js error’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Rob Myrick](https://wordpress.org/support/users/rm2773/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-does-not-work-with-an-js-error/#post-8504599)
 * Status: not resolved