Quote from: sottwell at Mar 12, 2015, 02:27 PMHm. I just installed Lingua 2.1.0beta4, and there is no plugin. 
Ok, uninstalled and removed everything, installed it again and now everything seems to be there.
One very strange thing... I keep getting logged out from the Manager, but only when Lingua is installed.
Hi Susan,
I'm also getting logged out of the manager when using lingua.selector in the front end. For me it seems to happen only when Friendly URLs are enabled and I'm on the resource that is set to site_start.
I submitted an issue here:
https://github.com/goldsky/Lingua/issues/41
Still playing with it!
I think I worked it out. I specified the fix in the Github issue. Fingers crossed it doesn't cause any other bugs
-
☆ A M B ☆
- 24,524 Posts
As far as I can tell, this only occurs on a subdir installation. I happened to me only on my localhost subdirectory installations, but not on the MODX Cloud. I suspect that this fix would break things in root installations.
I've also installed it as a root installation on my remote server. The fix doesn't seem to be causing any problems as yet(!)... although yes you're right it seemed to work without the fix as a root installation.
Hopefully Goldsky can have a look at it soon.
Something else I've noticed when installed in a subdir...
When switching from the default language to another in the manager, all the fields on the resource show up blank. (haven't tested with TVs yet)
You can enter values and save and the front-end will work fine, but next time you come back all the fields are blank again.
It seems to be just having trouble loading the values.
Again, if it's a root installation, everything works fine.
I've managed to replicate both these issues on a root installation now too. Something else must be the cause. No idea why it's happening (or what I did differently). The front end path issue is an easy fix but not the blank fields in the manager.
I can see the new data appearing in the lingua database tables...
Edit: The blank fields seem to be a problem when using a language that has the same language code as another. For example zh-cn and zh-hk both have the language code of zh and it seemed to be putting the data into the other record.
Rather than create a new language I just modified the one that comes default with the installation and working ok now.
[ed. note: muzzstick last edited this post 11 years, 6 months ago.]
probably allready possible with pdoTools and joins or an extented pdoFetch - class, especially the addTVs - method.