Jump to content

PS1.5 Multistore/Multilanguage problems


Recommended Posts

I have prestashop 1.5 installed and problems with multilanguage in multistore.

I have made 2 stores in multistore:
1) www.domain.nl
2) www.domain.de

I setup localization as following:
1) default language and default country: (Dutch) NL 
2) default language and default country: (German) DE
 

Store #1 all is fine.

Store #2 is acting weird its mixed up with English/Dutch/German
Some modules are Dutch, Some English, Some German
Categories and SEO are in German, Products and URL's are in Dutch.

 

Smarty Cache Compile is turned off

 

I hope someone can help me with this problem.

Edited by jsonjuri (see edit history)
Link to comment
Share on other sites

do you have some sort of hack to modify url's? there is no language portion of the url for .de

 

did you build the de from .nl, they share everything? theme/module etc?

 

maybe best to also supply .nl domain as well

 

and exact ps version

 

Thank you for the reply El Patron,

 

There is no language portion because from the 2 webshops each just use one language.

The 2 stores share everything on modules, products, categories but not the theme.

 

The version of my prestashop is PrestaShop™ 1.5.6.0.

 

After a bit digging today i found out following:

 

I download classes folder from Prestashop 1.5 GIT and replaced it with my classes folder on the webserver.

Then i removed class_index.php and after removing this file i set back the old classes folder again.

Weird enough now all the website is like it should be, and everything of store #2 is in German.

 

I am not sure now if the bug is somewhere in classes folder or in the class_index.php

I have done this action before and after hours it changes back to the mixed up languages problem again.

 

I hope everything now stays like it should be, anyway i am very curious what can cause this problem.

 

Edited by jsonjuri (see edit history)
Link to comment
Share on other sites

Thank you for the reply El Patron,

 

There is no language portion because from the 2 webshops each just use one language.

The 2 stores share everything on modules, products, categories but not the theme.

 

The version of my prestashop is PrestaShop™ 1.5.6.0.

My other store is: www.e-smoker.nl

 

After a bit digging today i found out following:

 

I download classes folder from Prestashop 1.5 GIT and replaced it with my classes folder on the webserver.

Then i removed class_index.php and after removing this file i set back the old classes folder again.

Weird enough now all the website is like it should be, and everything of store #2 is in German.

 

I am not sure now if the bug is somewhere in classes folder or in the class_index.php

I have done this action before and after hours it changes back to the mixed up languages problem again.

 

I hope everything now stays like it should be, anyway i am very curious what can cause this problem.

 

 

yes, I keep my fingers crossed for you...thanks for sharing what you did

  • Like 1
Link to comment
Share on other sites

yes, I keep my fingers crossed for you...thanks for sharing what you did

 

Now several hours later the problem is back again, weird or what?

I did not make any changes in between, cache still turned off but still it looks like some cache issue?

Do you have any ideas or guesses what can cause this problem or where i should looking for?

Edited by jsonjuri (see edit history)
Link to comment
Share on other sites

sometimes when we make module translations we do so with 'theme' selected and not 'core' no-theme.  this put the module translations in themes/yourtheme/modules/module_name/translations.  So xlations for a module in one theme would not carry across to another even when module shared across shops...

 

but this could not be only possible issue because this would not affect products or other non-theme xlations.

 

under performance tab in back office, scroll to bottom, any cache? mem/apc/file?

 

if you could also screen shot and remark on what is incorrect that might help for non-german/dutch speakers because it's difficult to tell the two apart looking at shop.

  • Like 1
Link to comment
Share on other sites

sometimes when we make module translations we do so with 'theme' selected and not 'core' no-theme.  this put the module translations in themes/yourtheme/modules/module_name/translations.  So xlations for a module in one theme would not carry across to another even when module shared across shops...

 

but this could not be only possible issue because this would not affect products or other non-theme xlations.

 

under performance tab in back office, scroll to bottom, any cache? mem/apc/file?

 

if you could also screen shot and remark on what is incorrect that might help for non-german/dutch speakers because it's difficult to tell the two apart looking at shop.

Thank again for your response!

 

I think you might be right, i turned off xcache now (that was what i were using)

It seems steady now for many hours, i think its wait and see.

I hope this fixed the issue, but you never know what time will do with prestashop :P

 

Link to comment
Share on other sites

I prefer solutions that are directly related to PrestaShop rather than underlying cache unless one 1) has understanding of cache and 2) can control cache by page.

 

 

when we can upgrade to latest php, then that built in cache will work better for everyone.

 

 

Yes you are right, it's not really a solution.

Anyway, the problem is back again... It looks like at day everything is fine but at night it reset to dutch language.

 

I want to hire professional help of prestashop support team to fix the issue and when it's fixed see if we can post the solution here because i am totally lost in solutions.

Do you think that is possible?

Link to comment
Share on other sites

yes, sometimes to  return to productivity having paid solution can save our sanity.

 

I discovered something, in the database i found products with id_lang=7 and id_lang=3

My language id's are 1 for Dutch and 2 for German. I noticed prestashop default id_lang for Dutch is 7 and German is 3, same like i found products in the database so this might be the problem, now i have to see how i will change all these language id's because there are many  :blink:

Link to comment
Share on other sites

I discovered something, in the database i found products with id_lang=7 and id_lang=3

My language id's are 1 for Dutch and 2 for German. I noticed prestashop default id_lang for Dutch is 7 and German is 3, same like i found products in the database so this might be the problem, now i have to see how i will change all these language id's because there are many  :blink:

 

holy moly, yes, that is loco!

 

make sure to back up...

 

I think you got it!

Link to comment
Share on other sites

yes this is very worrisome.  if you do a new xlate does it assign the id's in the db ok?

 

Yes also we have customers so i can't let the website too long in wrong language.

 

I changed all ID's manually by SQL queries in phpmyadmin, but still same issue.

Also i found out in most modules $params['cookie']->id_lang has the wrong language ID. but smarty {$lang_id} is good.

Also when i remove all cookies or do private browsing with google incognito it's not working properly.

Im sure its a bug somewhere but its a needle in a haystack.

 

Anyway now my problem solved by a workaround, anway thank you for helping :)

Link to comment
Share on other sites

×
×
  • Create New...