Jump to content

Cannot connect to prestashop.com - 1.5.6.2 and also 1.6.0.6


Recommended Posts

hello,

i have a very big problem whit the installation or configuration of Prestashop.

A long time i used Prestashop 1.5.5.0 on my hostserver an everything was okay. last week i want to make a update for 1.6.0.6, the newest version.

 

i can install all i need, but to change the country i want to use the localization packs to change to switzerland, but i get only the error "cannot connect to prestashop.com" an can not choose any pack to import. i tried the same with the 1.5.6.2 but i get the same error.

 

is this a problem with my server or with the installation? i install prestashop 3 or 4 times, but i would not be better.

 

my hoster can o will not help me, he said the serverconfiguration must be OK, because the have an autoinstaller for prestashop. but where is now the problem?

 

also i installed both prestashops whit a localhost on my notebook, and it work without any problems, if i copy the files from localhost to the real internet host, the error is still the same...

 

please help me. thanks.

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

go to localization > localization and try to import some localiation pack

if you will not able, it mean that you've got real connection to prestashop problem

 

i bet on hosting, perhaps they blocked possibility to use cURL and get_file_contents functions due to the security purposes

Link to comment
Share on other sites

  On 5/10/2014 at 11:43 AM, vekia said:

go to localization > localization and try to import some localiation pack

if you will not able, it mean that you've got real connection to prestashop problem

 

hi and thanks for your answer, this is thr problem, i can't import localization pack, because the menu to import is not there. it's onle the error cannot connect....

 

cURL is enabled, get_file_contents i can't find.

i've you want, you can look to my phpinfo.php file i've created.

-> www.apfelreparaturen.ch/phpinfo.php

 

my hoster said everything with the server is ok....

Link to comment
Share on other sites

have you got an access to server console? ssh account?

if so you can try to ping prestashop.com host.

 

if you haven't got an access to ssh, try with php script like:
 

<?
system("ping prestashop.com");
?>

Link to comment
Share on other sites

hi vekia, thanks for your mail.

i created a test.php file with your details and i get this answer if i try to open my file

 

Warning: system() has been disabled for security reasons in /home/"username"/public_html/testping.php on line 2

 

i think this means that perstashop is blocked by the server, right?

can i handle this by my self, or can this only the host admin?

 

thanks for your help anyway..

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

I found the same issue on prestashop website. Please have a look this may help you http://forge.prestashop.com/browse/PSCFV-11046

 

If you are using PS1.6 then

 

file: /controllers/admin/AdminTranslationsController.php
line: 182
$array_stream_context = @stream_context_create(array('http' => array('method' => 'GET', 'timeout' => 8)));

 

line: 809

 

$array_stream_context = @stream_context_create(array('http' => array('method' => 'GET', 'timeout' => 10)));
$content = Tools::file_get_contents('http://www.prestashop.com/download/lang_packs/gzip/'.$arr_import_lang[1].'/'.Tools::strtolower($arr_import_lang[0]).'.gzip', false, $array_stream_context);
          

increase the timeout.

 

Please try it once.

 

Thanks

Alok

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