• Resolved buzzquake

    (@buzzquake)


    I am using the free version of the plugin which is showing the language dropdown but not taking any translation action when a language is clicked. I’ve installed the Cookies and Content Security Policy plugin and specifically allowed the domains for GTranslate. I don’t get any error messages in the Console for resources that can’t be loaded yet the plugin is still not working.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    This is the error message I see in the browser console:

    Refused to load the script 'https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit2' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://s3.amazonaws.com/ https://*.list-manage.com/". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

    Please configure your Content Security Policy directive properly.

    Thanks! ??

    Thread Starter buzzquake

    (@buzzquake)

    I do not see those messages in the browser console in Safari, Firefox or Chrome on my iMac running Ventura 13.5.2. What browser are you using? I have made a number of changes since you first responded to my first support submission. Would you please clear your browser and cookie cache and try again? https://makingchangecenter.org

    Plugin Author edo888

    (@edo888)

    This is your current configuration from the HTML source code:

    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https://s3.amazonaws.com/ https://*.list-manage.com/; img-src 'self' data: ; object-src 'self' data: https://elegantthemes.com/ https://*.elegantthemes.com/ https://makingchangecenter.org/; frame-src 'self' data: https://elegantthemes.com/ https://*.elegantthemes.com/ https://makingchangecenter.org/; ">

    You will need to add https://translate.google.com into the list. You also have similar issues with googletagmanager.com.

    Please consult the plugin developer responsible for Content-Security-Policy if you cannot solve it yourself.

    Thanks! ??

    Thread Starter buzzquake

    (@buzzquake)

    I appreciate you working with me. This is the current configuration. The GTranslate plugin still does not work.

    <meta http-equiv='Content-Security-Policy" content=
    "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://s3.amazonaws.com/ https://*.list-manage.com/ https://translate.google.com/ https://translate.googleapis.com/ https://translate-pa.googleapis.com https://googletagmanager.com/ https://*.googletagmanager.com/ https://tagmanager.google.com/ https://google-analytics.com/ https://*.google-analytics.com/ https://googletagmanager.com/ https://*.googletagmanager.com/ https://youtube.com/ https://*.youtube.com/ https://www.recaptcha.net/ https://www.gstatic.com/ https://www.google.com/ https://*.calendly.com/ https://calendly.com/ https://translate.google.com/ https://translate.googleapis.com/ https://translate-pa.googleapis.com https://googletagmanager.com/ https://*.googletagmanager.com/ https://tagmanager.google.com/; img-src 'self' data: https://secure.gravatar.com/ https://translate.googleapis.com/ https://googletagmanager.com/ https://*.googletagmanager.com/ https://gstatic.com/ https://*.gstatic.com/ https://google-analytics.com/ https://*.google-analytics.com/ https://*.ytimg.com/ https://secure.gravatar.com/ https://translate.googleapis.com/ https://*.gstatic.com/ https://googletagmanager.com/ https://*.googletagmanager.com/ https://gstatic.com/ https://*.gstatic.com/; object-src 'self' data: https://elegantthemes.com/ https://*.elegantthemes.com/ https://makingchangecenter.org/ https://docs.google.com/ https://youtube.com/ https://*.youtube.com/ https://youtube-nocookie.com/ https://*.youtube-nocookie.com/ https://youtu.be/ https://*.vimeo.com/ https://www.google.com/ https://*.calendly.com/ https://calendly.com/; frame-src 'self' data: https://elegantthemes.com/ https://*.elegantthemes.com/ https://makingchangecenter.org/ https://docs.google.com/ https://youtube.com/ https://*.youtube.com/ https://youtube-nocookie.com/ https://*.youtube-nocookie.com/ https://youtu.be/ https://*.vimeo.com/ https://www.google.com/ https://*.calendly.com/ https://calendly.com/;">
    Plugin Author edo888

    (@edo888)

    Good, now I see you have some Nice Selector library (/wp-content/themes/consultio/assets/js/nice-select.min.js) which is modifying our dropdown. Make sure to add exception, so it doesn’t apply to .gt_selector class.

    Alternatively you can use another widget look like Float for GTranslate.

    Thanks! ??

    Thread Starter buzzquake

    (@buzzquake)

    Thank you! I switched to the Float widget and everything is working well now. I appreciate your help.

    Plugin Author edo888

    (@edo888)

    You are welcome! If you have a moment, please write a review about your support experience: https://www.ads-software.com/support/plugin/gtranslate/reviews/#new-post

    Thanks! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘GTranslate plugin not working’ is closed to new replies.