Autourdupc Posted October 4, 2016 Share Posted October 4, 2016 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 More sharing options...
Autourdupc Posted October 4, 2016 Author Share Posted October 4, 2016 (edited) 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 ! Edited October 4, 2016 by Autourdupc (see edit history) Link to comment Share on other sites More sharing options...
ArtistToonz Posted January 31, 2017 Share Posted January 31, 2017 Seems to have worked for me. Link to comment Share on other sites More sharing options...
w3bsolutions Posted February 6, 2017 Share Posted February 6, 2017 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 More sharing options...
ArtistToonz Posted February 7, 2017 Share Posted February 7, 2017 If you do this then after in the BO > Advanced Parameters > Information it shows an error: Please allow PHP fopen() Do you happen to have a solution to this? Thanks! Link to comment Share on other sites More sharing options...
w3bsolutions Posted February 15, 2017 Share Posted February 15, 2017 Adding: allow_url_fopen = Off to php.ini does indeed seem to work. All I was saying is that PS shouldn't then tell you to fix that "issue" on the informations tab. However, I believe there should be an alternate solution to adding this rule to php.ini, but I am not aware of it. Link to comment Share on other sites More sharing options...
ynocquet Posted July 13, 2019 Share Posted July 13, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now