goldsky / Lingua

MODX's Lexicon switcher for front-end interface
18 stars 11 forks source link

lingua.selector #51

Open Marabar opened 8 years ago

Marabar commented 8 years ago

Hello. Moved the site to a server version of PHP 5.4, get on the main page error when switching languages. On other pages all is well. kazam_screenshot_00074 This is due to double-slash (address line). If the snippet to replace this line on $pageURL = $parseUrl['scheme'] . '://' . $parseUrl['host']. $parseUrl['path']; error disappears. By the way, on my server php 5.5, this error was not.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/31870175-lingua-selector?utm_campaign=plugin&utm_content=tracker%2F1919378&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1919378&utm_medium=issues&utm_source=github).
goldsky commented 8 years ago

Modx version?

Marabar commented 8 years ago

On both servers 2.4.3-pl

goldsky commented 8 years ago

I'm not sure if this related with Lingua, since the problem is on context's checkPolicy(). How do you set your context's settings?

goldsky commented 8 years ago

Is this an upgrade?

Marabar commented 8 years ago

Hello. Context one - Web. This new site was originally set MODX 2.4.2 - in this version, after the transfer to the customer site, getting the same error. Still, I think this is due to host configuration, which is why it is not on my VPS these problems.

Marabar commented 8 years ago

Most interestingly, an error only on the main page. Others - all is well.

kundius commented 7 years ago

@Marabar Problem occurs when different aliases in translations?