Jump to content

[solved] Loading time (initContent & display) in second language - Prestashop 1.7


jbornerand

Recommended Posts

Hello everyone,

Has anyone ever encountered this problem on Prestashop 1.7 :

In french language (the main one), the loading time is ok, not perfect but ok, but when I switched to english, the second language of the site, the loading time is just... incredible!
I mean... In french, it loads in 2s, in english more than 39s.

The times for initContent and display are so slow (see screenshots attached)!

Is this a module problem? Or a Core problem (I use Prestashop 1.7.5.1).

Thanks if you have any suggestion!

Capture d’écran 2019-09-25 à 18.37.27.png

Capture d’écran 2019-09-25 à 18.37.20.png

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

After seeking for a long time on forums I found this http://forge.prestashop.com/browse/BOOM-4878

I tested, and importing a new language with Prestashop's importing tool worked fine.
Is there any change to find a fix for this?

I can't remove my language, since I (and my client) worked for days on products & theme translations... 

 

Thanks,
J.

Link to comment
Share on other sites

Ok I found a solution.

For those who are experiencing the same situation.

Go to PhpMyAdmin, table : ps_lang

Delete the line with the lang that has problems, in my case ID: 2 (english / en-US).
Go to your admin > International > Localization and import the pack United States or the language that had problems (as the language isn't present anymore in the database, the import is possible).

When import is completed, the new imported language will have the ID : 3. Then go back to PhpMyAdmin, table ps_lang, and update the ID of the new language from 3 to 2 (to link all translations created before via administration or theme).

The site is workin really fast in my second language now (see screenshot), and all the translations have been kept!!

Best,
J.

Capture d’écran 2019-09-26 à 11.12.36.png

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...