• Resolved fetchjudofrayed

    (@fetchjudofrayed)


    Hi everyone,

    I want to share a problem that I ecountered when I installed GPTranslate. On the test website without cloudflare it worked like a charm. On the main website with cloudflare there were several problems:

    • language button disappeared
    • switching to another language didn’t work
    • translation loading bar stayed, although it should disappear

    Even when removing the “rewrite URL” option in the settings (like to add /en /fr /it etc.) the problems stayed.

    Did anyone have similar experiences with cloudflare and GPTranslate and knows how to solve them?

    Best regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support johndagelmorejextensions

    (@johndagelmorejextensions)

    Hi,

    this could be caused by Cloudflare optimizations.

    Try disabling:

    • Auto Minify (JS/CSS)
    • Rocket Loader

    Then clear the cache. These features can break GPTranslate scripts and cause exactly the issues you described.

    Also check if any plugin are installed doing this.

    Best regards

    Thread Starter fetchjudofrayed

    (@fetchjudofrayed)

    Hi John,

    thanks a lot for your answer! I checked the “Rocket Loader” and it was already disabled and I found out that Auto Minify is deprecated since 2024: https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2024-08-05 and I couldn’t find any setting where one can do some fine tunings…

    So I’m not sure what else to try.

    Best regards

    Plugin Support johndagelmorejextensions

    (@johndagelmorejextensions)

    Hi,

    if you can share website link details i will have a look at any error or conflict.

    Best regards

    John

    Thread Starter fetchjudofrayed

    (@fetchjudofrayed)

    Hi John,

    is there a way how I can contact you personally via e-mail, Matrix or Signal?
    That would be good.

    Or you can simply send me a mail to: [email redacted by moderators]

    Kind regards

    Plugin Support johndagelmorejextensions

    (@johndagelmorejextensions)

    Hi,

    yes i will directly email you.

    Kind regards

    Thread Starter fetchjudofrayed

    (@fetchjudofrayed)

    Well, what can I say?

    Thank you very very much John for helping to solve the issue. That is highly appreciated and with the integration of Deepl, the translations look very well on the website!

    For others who come across this, you can do can do following to solve this:

    1. Login to your Cloudflare-Dashboard
    2. Go to your Domain -> Security -> Safety Rules
    3. Create a new rule and give it a name
    4. Set “If incoming requests match…” in “Field” to “URI path”
      Set “operator” to “contains”
      Set “Value” to “/wp-json/gptranslate/”
    5. Print review should look like this: (http.request.uri.path contains “/wp-json/gptranslate/”)
    6. Set in “Then proceed as follows…” in “action” as “Skip”
    7. Enable “Document matching requirements” and select in “WAF components to be skipped” two options:
      1. All managed rules and
      2. All the rules of the “Super Bot Fight” mode
    8. Set in “Place at” “First”

    Then delete all translations and regenerate those.

    Cheers

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

You must be logged in to reply to this topic.