Jump to content

Upgrade PS1.6.0.9 to 1.6.0.14 : You come from the future !


Recommended Posts

Hi,

 

I created a test server locally where i restored my shop for tests before upgrading.

 

The 1-click Upgrade show me "You come from the future! You are using a more recent version than the latest available!"

and it leaves the field "Latest official version for archive channel" blank.

 

If I  try to download locally the file named "prestashop_1.6.0.14.zip" to folder "/admin/autoupgrade/download" it doesn't find the file and says "Latest official version for archive channel : N/A"

 

Any help would be appreciated.

 

Regards,
Laurent.

Link to comment
Share on other sites

  • 3 months later...

Hi !

 

I make my own answer...

 

In the php.ini file usually located on /etc/php.ini, it is mandatory to have the setting :  allow_url_fopen = Off

Then restart the service (systemctl restart httpd.service)

 

--> It should run fine !

 

If you do this then after in the BO > Advanced Parameters > Information it shows an error: Please allow PHP fopen()

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 years later...

Hello,

The "You come from the future !" issue happens when your server can't reach the Prestashop server to check the available updates.

There are three ways to fix this issue both for Prestashop 1.6 and Prestashop 1.7 :

Method 1 (not recommanded) : add this command line in your php.ini or replace it if it already exists :

allow_url_fopen = Off

Be sure that Curl is activated on your server.

Method 2 (the proper way) : turn off Fail2ban on your server with the command line

/etc/init.d/fail2ban stop

or configure it so it fail2ban won't block access to the Prestashop server.

Method 3 (last resort method) : if you have no access to your server or if method 1 & 2 are not applicable, then go to /modules/autoupgrade/classes/Tools14.php and replace the function shouldUseFopen 

public static function shouldUseFopen($url)
{
return in_array(ini_get('allow_url_fopen'), array('On', 'on', '1')) || !preg_match('/^https?:\/\//', $url);
}

by the function

public static function shouldUseFopen($url)
{
return in_array(ini_get('allow_url_fopen'), array('Off', 'off', '0')) || !preg_match('/^https?:\/\//', $url);
}

Keep in mind that method 3 is an hack and that method 2 is the proper one.

Regards,

 

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