• Resolved Pavel Mares

    (@pavelmares)


    My client found out, that translations does not work. I updated to newest version of Polylang and Polylang Pro (on multiple sites).

    But only when we have active “The language is set from different domains”, plugin does not work properly (at all).

    You can see it here – https://www.novatenerife.eu/sale/apartment-costa-del-silencio-56/. Where string “Go back to sales” should be “<<< Go back to sales” (https://ibb.co/TgV8kwD).

    When I tried same versions of plugins (Polylang 3.3, Polylang Pro 3.3, TTfP 3.3.1) and WordPress core (6.1.1) BUT with default language url modifications (/cs/, /en/, … etc.) it work fine.

    You can see error on my site from php-fpm.log:

    PHP Warning:  Undefined array key "domains" in .../wp-content/plugins/theme-translation-for-polylang/Polylang_Theme_Translation_Settings.php on line 28
    • This topic was modified 2 years, 3 months ago by Pavel Mares.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    Please check if you have necessary themes and plugins selected in tab (In admin dashboard):
    Languages -> TTfP Settings.

    Is theme name the same as “theme domain” in your example: “Go back to sales” in printer function?

    Thread Starter Pavel Mares

    (@pavelmares)

    1. I checked multiple website on my localhost and prouction
    2. Here is clients settings of TTfp https://ibb.co/7grMssQ
    3. Everything worked till now and I can see that on localhost if I have domain.test (EN) and domain-cz.test (CZ) it does not work
    4. Another localhost website, which does not have this settings but the simple one, example.test/en/ and example.test/cz/ works fine.

    Both websites have everything set up, WordPress Core + plugins the same version.

    On clients website it worked till latest version of Polylang 3.3

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    @pavelmares can you share code snippet with the function that displays this text: “Go back to sales”?

    Thread Starter Pavel Mares

    (@pavelmares)

    Oh, I see the mistake. We used 1 text-domain for both plugins, because 1 functional 1 has client edits. Since first does not have strings so it’s not displayed and can’t be loaded anymore.

    Thanks for resolving this. In future I will take not on this change.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘DOMAINS not working and PHP Warning’ is closed to new replies.