ZenphotoCMS Forum
Locale settings being lost repeatedly - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Translating (https://forum.zenphoto.org/forum-8.html)
+--- Thread: Locale settings being lost repeatedly (/thread-11835.html)

Pages: 1 2


Locale settings being lost repeatedly - Ipstenu - 2014-06-24

Will do! What;'s an example of a GOOD dynamic_locale cookie content? I'm assuming it'd be like de_DE or something?




Locale settings being lost repeatedly - acrylian - 2014-06-24

Yep. just a locale like that.




Locale settings being lost repeatedly - sbillard - 2014-06-24

remove that cookie, it is probably the cause of all your problems.




Locale settings being lost repeatedly - Ipstenu - 2014-06-25

Update!

  1. Cookie removal didn't help

  2. glibc was weird.

So for SOME REASON /etc/localtime was set to an alias and pointed to /usr/share/zoneinfo/America/Los_Angeles (which isn't WRONG really but anyway)

I removed that and reinstalled glibc, and now it's outputting properly. Preliminary testing with Zenphoto shows this solves the issue.

So with both a fix AND a workaround, I think this just needs to be documented under "Weird stuff"




Locale settings being lost repeatedly - sbillard - 2014-06-25

As to the work-around. The best place to put the code would be in a custom "class" plugin. Those get loaded really early on.




Locale settings being lost repeatedly - Ipstenu - 2014-06-26

I wasn't sure what to hook it into. It it was WP, I'd hook it into the admin_head() function.




Locale settings being lost repeatedly - sbillard - 2014-06-26

[quote]So for SOME REASON /etc/localtime was set to an alias and pointed to /usr/share/zoneinfo/America/Los_Angeles (which isn't WRONG really but anyway)
[/quote]
I suppose that PHP is not handling the alias then. Certainly nothing wrong with the time zone. That is the one I am in after all.




Locale settings being lost repeatedly - Ipstenu - 2014-06-26

Ditto ;) It's honestly weird, I got a hold of my fav server adminy friend who sorted out the glibc stuff and she said, I quote "Weird."




Locale settings being lost repeatedly - acrylian - 2014-06-26

Thanks for the update. Where would be the fun without such "weird" issues, right? :-)