Jump to content

Shop switches to default language on every click


Recommended Posts

Hi community,

 

I try to make a new prestashop installation usable (still a newbie) and encounter the following strange behaviour:

 

I have two languages in the frontend so far, German and French. French is default frontend language (which also makes my backoffice speak french but that's a different topic and not really an issue).

 

Now whenever I want to browse the shop in German, and I choose a link in the shop, or even type the URL manually, I see the result in the default language French and have to select German language again to see the page as desired. As if the shop can't remember the langauge I want.

 

Example:

page cms 2 is legal notices page, and cms 3 that's the terms and conditions. They are all filled with content in the respective language.

Language 2 is German, language 3 is French, default is language 3.

 

I look at cms2 in language 2.

 

index.php?id_cms=2&controller=cms&id_lang=2

 

Now manually in the browser I change the URL to see cms 3. I type:

 

index.php?id_cms=3&controller=cms&id_lang=2

 

Magically, the shop takes me to lang=3. I see this URL now in the broswer:

 

index.php?id_cms=3&controller=cms&id_lang=3

 

I didn't want or select that. Now, when I click on german language, or change the URL to lang=2 as it was before, I do see the page in German.

 

 

What am I doing wrong?

 

Thanks for any hints....

 

Link to comment
Share on other sites

along with rocky's observation please also try this:

 

I've seen some have issue with this setting for some shop managers.

 

back office-->localization-->localization-->find 'Set default country from browser language' and  disable it.

 

Re-test 

Link to comment
Share on other sites

@ rocky,

@ el patron,

 

thank you for your hints!

 

Both are disabled already. I tried to eliminate this kind of "intelligence" already when I was struggling with taxes not properly displayed in the shop.

 

Any further potential sources of trouble?

Link to comment
Share on other sites

@ rocky,

@ el patron,

 

thank you for your hints!

 

Both are disabled already. I tried to eliminate this kind of "intelligence" already when I was struggling with taxes not properly displayed in the shop.

 

Any further potential sources of trouble?

 

 

good job on breaking the internet, lol.

 

You will need someone to get a hands on look at this, it could be any number of 'other' things.

 

You can PM me with back office and ftp access and i can take a look at it closer time available.

 

Because now we would just come up with 'things' to check,  i.e. playing 20 questions. 

 

happy day, el

Link to comment
Share on other sites

Hi el,

 

thanks for your offer. Before I bother you with a pm and passwords etc, I will try to kill and reinstall the whole shop. Maybe that will magically eliminate the issue. Once that is done I will post or message. If I don't give up on the whole project, which is also kinda possible.

 

cheerio

  • Like 1
Link to comment
Share on other sites

Solved.

 

This behaviour is apparently caused by a bug in one-click installations available through web server admin interfaces like Plesk.

 

In the config folder, locate the file settings.inc.php, and remove or comment out the line "define('APS', 'ON');"

 

Problem is gone.

 

Had not been able to locate this solution before. Found in google when I was looking for something else. Solution located here:

http://stackoverflow.com/questions/32925898/prestashop-help-language-keeps-changing-back-to-default

 

Thought I would add the solution here for searchability.

 

Cheers

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...