Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

andrejcremoznik on "[Plugin: Polylang] Language choose not storing session or cookie?"

$
0
0

I'd like to elaborate a bit on this.

The site I've developed with polylang works perfectly on my dev and staging environment (ubuntu, php 5.4.17(dev) 5.3.6(test), nginx) but on my client's (cent os, php 5.3.3, apache) it doesn't.

By visiting the site without cookies, the cookie is always set to the default language like so (default lang = sl):

domain.tld             <-- redirects to /domov/ - cookie = sl
domain.tld/domov/      <-- cookie = sl
domain.tld/home/       <-- (english tl of /domov/) - cookie = sl
domain.tld/startseite/ <-- (german tl of /domov/) -cookie = sl

On subsequent visit, the cookie value is never touched and stays at sl. Because of that, event though /home/ shows the english content, the menus, widgets and gettext translated template strings don't change.

I know the cookie isn't touched because I can manually edit its value. E.g. I change the cookie value to en and I get menus, widgets and template strings in english as expected.

I don't have access to my client's server right now and can't look at the logs to debug this. Any idea what might be going on?

I've tried versions 1.1.3 and 1.1.4. Both work on my dev environment, none on my client's.

Polylang's settings:

Default lang: Slovenian
Language set from content
Remove /language/

Everything else unchecked except for a few synchronization items and 1 custom taxonomy.

Thanks


Viewing all articles
Browse latest Browse all 11471

Trending Articles