Studio1one Posted March 26, 2017 Share Posted March 26, 2017 Hi fellow´s, if a Prestashop 1.6.1.11 runs on a PHP 5.6 and I want it to run on a PHP 7.0 server, what do I need to change in files to make it work on 7.0? I´m gonna move a site to a new hosting and the new one run´s on 7.0. Anyone who have the answer for me? //Patrik Link to comment Share on other sites More sharing options...
bellini13 Posted March 26, 2017 Share Posted March 26, 2017 I run PS v1.6.1.10+ on PHP 7.0.x and it works fine Link to comment Share on other sites More sharing options...
Studio1one Posted March 26, 2017 Author Share Posted March 26, 2017 I run PS v1.6.1.10+ on PHP 7.0.x and it works fine Yes I know it will run great on PHP 7.0, but the issue are that I´m moving the site from a server that use 5.6 and move to another hosting that run PHP 7.0 and it´s not working, so I need to know what and where I need to make the changes in files at the site to make it work on the new PHP 7.0 server. Any tips? Link to comment Share on other sites More sharing options...
Norwegian Rat Posted March 26, 2017 Share Posted March 26, 2017 Sure it's PHP7.0? PS 1.6.1.11 will not run on 7.1 unless you manually apply the 7.1 fix Link to comment Share on other sites More sharing options...
Studio1one Posted March 26, 2017 Author Share Posted March 26, 2017 Sure it's PHP7.0? PS 1.6.1.11 will not run on 7.1 unless you manually apply the 7.1 fix The server that I move to is for 100% running on PHP 7.0 not 7.1. And PS will run on PHP 7.0 since the 1.6.1.4 version. But that is not the thing here, the thing is that the person who installed the store for us on the server it´s installed on now is running on PHP 5.6 so I need to know where and in which files I need to fix to let it run on 7.0 ;-) Link to comment Share on other sites More sharing options...
Norwegian Rat Posted March 27, 2017 Share Posted March 27, 2017 I've never modified any file solely for the PHP-version. At least not if it is supposed to be working, which in your case it should since it's PHP 7.0 and PS 1.6.1.11. You sure all the other settings for your store is up to date? Link to comment Share on other sites More sharing options...
bellini13 Posted March 28, 2017 Share Posted March 28, 2017 you should contact your hosting provider with this question. this has nothing to do with Prestashop Link to comment Share on other sites More sharing options...
jetway Posted March 29, 2017 Share Posted March 29, 2017 If you're moving your website to a new host and the domain name does not change this shouldn't be a problem at all. Prestashop is built to run on PHP 7.0. So if you're running a new version of prestashop 1.6.1.x and up there is no code modification needed. Link to comment Share on other sites More sharing options...
Studio1one Posted March 29, 2017 Author Share Posted March 29, 2017 Hi fellow´s, if a Prestashop 1.6.1.11 runs on a PHP 5.6 and I want it to run on a PHP 7.0 server, what do I need to change in files to make it work on 7.0? I´m gonna move a site to a new hosting and the new one run´s on 7.0. Anyone who have the answer for me? //Patrik okey, we manage to solve some part of it, but was in need to still run on PHP 5.6, anyone know about any kind of issues at PS or made LEO Theme templates/modules that needs to fix? When we run on 7.0 the front crash but not BO. Link to comment Share on other sites More sharing options...
Norwegian Rat Posted March 29, 2017 Share Posted March 29, 2017 Can't hurt applying the PHP fix. At least you can rule it out if the issue remains Link to comment Share on other sites More sharing options...
Studio1one Posted March 29, 2017 Author Share Posted March 29, 2017 Can't hurt applying the PHP fix. At least you can rule it out if the issue remains What PHP fix? Link to comment Share on other sites More sharing options...
Norwegian Rat Posted March 29, 2017 Share Posted March 29, 2017 https://github.com/PrestaShop/PrestaShop/pull/7392 Link to comment Share on other sites More sharing options...
bellini13 Posted March 30, 2017 Share Posted March 30, 2017 You likely have a module installed that is not compatible. you need to review your servers php error log to help determine what the issue in the front office is Link to comment Share on other sites More sharing options...
katicziv Posted May 4, 2018 Share Posted May 4, 2018 If you are not sure which module is compatible with PHP 7.0, before you migrate turn off third party modules (in order to avoid possible problems when starting installation) If some of the installed modules are not the cause of the problem in your case, for proper functioning of PrestaShop under new PHP, You just need to update "htaccess" & "php.ini" in root folder of prestashop (here's how: just rename to htaccess_backup, php_backup.ini)Then go to "SEO & URLs" in "Preferences" in BO of your PRESTA and change "Friendly URL" and press "SAVE" generate new "htaccess" & "php.ini", than set to back "Friendly URL" and SAVE again. 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