Prestashop: Cannot download language pack "en"

Created on 27 Aug 2018  Â·  23Comments  Â·  Source: PrestaShop/PrestaShop

Pestashop on localhost showing this error. Kindly help to resolve it.

IN No change required

Most helpful comment

@khouloudbelguith This is becoming frustrating!!! Come on, it took almost 15 minutes to barely start the progress for the installation and at 23% the stupid language pack cannot be installed. Why there is no fallback plan for this stupid language pack component ? At least default to English and try afterwords to install a language pack. The entire setup cannot continue due to this elefantic proportion idiotic bullshit...

All 23 comments

Hi @bensnjo,

Could you please provide us with more info? We need more details to understand how we can reproduce your issue:

  • host
  • server setup and configuration
  • PrestaShop version (source)
  • debug mode report
  • PHP error logs
  • apache error log
  • javascript console log
  • screenshots

Don't you know how to get this information? Please read the following article:
[http://build.prestashop.com/howtos/misc/how-to-create-bug-report/]

Thanks!

Best regards, Khouloud

I was able to work around it. Now am getting a list of errors on loggin in to the admin
capture

what are this errors and how do I resolve
1
2
capture

them?

Try to remove ./app/Resources/translations/en-US/en-US.zip and retry. Look like something goes wrong during download :)

Hi @khouloudbelguith,
I also have the same issue when installing PrestaShop version 1.7.4.2
screen shot 2018-08-31 at 11 58 51 am

Hi @antruongnguyen,

We need to retrieve the PHP error log and the debug mode report in order to find out what's wrong.
Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/

Thanks!

Best regards, Khouloud

@khouloudbelguith This is becoming frustrating!!! Come on, it took almost 15 minutes to barely start the progress for the installation and at 23% the stupid language pack cannot be installed. Why there is no fallback plan for this stupid language pack component ? At least default to English and try afterwords to install a language pack. The entire setup cannot continue due to this elefantic proportion idiotic bullshit...

Hi @alexmano,

I'm sorry to hear that you're disappointed about the installation, but could you please provide us with more info? We need more details to understand how we can reproduce your issue:

  • host
  • server setup and configuration
  • PrestaShop version (source)
  • debug mode report
  • PHP error logs
  • apache error log
  • javascript console log

    • The issue occurs only with the language pack "en"?; did you tried to import another language?

Don't you know how to get this information? Please read the following article:
http://build.prestashop.com/howtos/misc/how-to-create-bug-report/

Thanks!

Best regards, Khouloud

Hello @khouloudbelguith , sorry for the frustration...

I have found out that we are behind a proxy server and the download is somehow stopped by the proxy filters.

I have investigated the issue further and in order for the installation to work I have updated the file prestashop_1.7.4.2srcPrestaShopBundleInstallInstall.php and commented from line 604, check my code below:

//if (InstallSession::getInstance()->safe_mode) {
EntityLanguage::checkAndAddLanguage($iso, false, true, $params_lang);
/*} else {
if (file_exists(_PS_TRANSLATIONS_DIR_.(string)$iso.'.gzip') == false) {
$language = EntityLanguage::downloadLanguagePack($iso, _PS_INSTALL_VERSION_);

                if ($language == false) {
                    throw new PrestashopInstallerException($this->translator->trans('Cannot download language pack "%iso%"', array('%iso%' => $iso), 'Install'));
                }
            }

            $errors = array();
            EntityLanguage::installLanguagePack($iso, $params_lang, $errors);
        }*/`

<

Looks like I have successfully installed Prestashop with English language and now I have to check for other issues that might appear due to my change in the code.
Have a nice day.

Hi @alexmano,

Thanks for your feedback, so your issue is related to your server.
@bensnjo any news about your issue?

Best regards, Khouloud

Hi , So far so good. I was able to install and its running smoothly. Though
am getting a 'Your website is not mobile friendly' on Google. seems some
javascript files are not loading properly. My website is www.riftmall.co.ke
Best Regards
Benson Njoroge Kamau

On Wed, Sep 5, 2018 at 12:25 PM khouloudbelguith notifications@github.com
wrote:

Hi @alexmano https://github.com/alexmano,

Thanks for your feedback, so your issue is related to your server.
@bensnjo https://github.com/bensnjo any news about your issue?

Best regards, Khouloud

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PrestaShop/PrestaShop/issues/10161#issuecomment-418662800,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aoxb0X1GISN9c3cAFfNSKJABHLPdbt9Jks5uX5h5gaJpZM4WOfna
.

Hi @bensnjo,

Since it is fixed, I will close the ticket.
About the second issue, it is a different one, you need to create a new ticket with specific details.

Best regards, Khouloud

2
you have problem in install prestashop , you can try my step
6
you edit in root C:\xampp\htdocs\prestashop\src\PrestaShopBundle\Install and edit use sublime text
find line 619
5
change this same for my picture and use "//" in front of and change "false value" to "true value" and save
next step you back to prestashop installation and "clicking here" waiting for prossing.

thx.

I think that issue should be reopen, because problem is really exist at least if use docker containers, that are provided in repo, and solutions above are tricky

Hi @AlexanderKosianchuk,

In my case here's what I followed & I installed the PS1.7.5.0 successfully with docker containers, that are provided in the repository.

  1. Download the stable version PS1.7.5.0 from this link: https://www.prestashop.com/fr/versions-precedentes
  2. Unzip the folder downloaded
  3. Into the Project folder, I run docker-compose up

=> Two containers are successfully created

  1. foldername_mysql_1 container from the image mysql:5
  2. prestashop-git container from the image prestashop/prestashop-git:7
  3. Give the write and read access is to use the same user the container image.
$ chown -hR www-data:www-data ./Project_Folder_name
  1. I tried to access to http://localhost:8001/install-dev
  2. I am resigned to install composer
  3. I created a file composer.json into the Project folder similar to this https://github.com/PrestaShop/PrestaShop/blob/1.7.5.0/composer.json
  4. I installed the composer from this link: https://getcomposer.org/download/
  5. Then I run this command: php composer.phar install => OK
  6. I tried to access to http://localhost:8001/install-dev=> OK ( MYSQL_ROOT_PASSWORD = password )
  7. Installation complete => access to BO via this link: http://localhost:8001/admin-dev

Heres' my server information
image

Heres' my volume for the prestashop-git container
image

Thanks!

@khouloudbelguith, оh, sorry, i have found i've used unstable 1.7.6.0

@AlexanderKosianchuk, thanks for your feedback

pay attention to your icu version in your system,this may be the problem

2
you have problem in install prestashop , you can try my step
6
you edit in root C:\xampp\htdocs\prestashop\src\PrestaShopBundle\Install and edit use sublime text
find line 619
5
change this same for my picture and use "//" in front of and change "false value" to "true value" and save
next step you back to prestashop installation and "clicking here" waiting for prossing.

thx.
Excellent Thanks @agunk31 to * 25 Oct 2019 * I can solvent with it. Is Awesome that it fail
It is surprising that at this date a follow this failure.
It has given me in different environments. and I have been able to solve it by commenting. This facment as illustrated by the images.

The solution from julio899 worked for me, with prestashop 1.7.6.1 on a raspberry pi (with raspbian)
Thanks julio899

Hi All,
The solution from julio899 Work for me also,
Many Thanks :)

Best Regards
Akram

2
you have problem in install prestashop , you can try my step
6
you edit in root C:\xampp\htdocs\prestashop\src\PrestaShopBundle\Install and edit use sublime text
find line 619
5
change this same for my picture and use "//" in front of and change "false value" to "true value" and save
next step you back to prestashop installation and "clicking here" waiting for prossing.
thx.
Excellent Thanks @agunk31 to * 25 Oct 2019 * I can solvent with it. Is Awesome that it fail
It is surprising that at this date a follow this failure.
It has given me in different environments. and I have been able to solve it by commenting. This facment as illustrated by the images.

thank's dude, solved

If I install Prestashop this way, how do I add the language later?

Was this page helpful?
0 / 5 - 0 ratings