• Hello,

    I am using Polylang. pll_language cookie does not detect the correct content language of a bilingual home page (Greek/English) resulting on displaying a booking form only in one language. This issue occurs only when loading the home page (domain name).

    On all other pages (apart from the home pages) pll_language cookie seems to correctly detect the corresponding content language of the loading page and all option strings of the booking form load the corresponding language of the content.

    Could you please look into it if it is a Polylang issue?

    I have contacted the support of the booking system and they did a server test on their side with that problem not occuring. They don’t use Polylang.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter pickme

    (@pickme)

    I found what is causing the problem. Autoptimize plugin is making cookie pll_language not switching according to language. I will contant their support.

    AO does not know about cookies, only about JavaScript (and CSS), so you’ll probably need to exclude polylang’s JS from JavaScript optimization @pickme. Have a look at the AO FAQ for more info on troubleshooting and how to exclude.

    hope this helps,
    frank

    Thread Starter pickme

    (@pickme)

    Thank you for the advice. I will exclude Polylang’s JS.

    I am trying to trouble shoot Polylang automatic language detection, but with little success. It seems as if there is no cookie set, but a session variable? I am not using autoptimize.

    My site is hosted on WPEngine and apparently the language cookie got cached. Their stellar support added the cookie as an exclusion and at least now the browser remembers the last language used. Still no automatic redirect to the proper language the first time on the site though.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘pll_language cookie does not change when loading home pages’ is closed to new replies.