• 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

    GLT settings:
    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)
  • 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

    (@anmorenight)

    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,

    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

    Thanks for your support!

    Thread Starter AnMoreNight

    (@anmorenight)

    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.

    Hi @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 8 years, 3 months ago by Rob Myrick.
    Thread Starter AnMoreNight

    (@anmorenight)

    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:
    https://www.freeproxylists.net/

    This is just for your information if you never try it :p

    Thread Starter AnMoreNight

    (@anmorenight)

    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.

    https://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.