sabhanukrish Posted August 2, 2018 Share Posted August 2, 2018 I am trying to upgrade the prestashop version from 1.7.2.3 to 1.7.4.2 version. I am using one click upgrade latest version 3.0.5 and have changed the permissions of the folder as recommended at both locations autoupgrade in admin and modules. Post permission change it gives me the list of files to be updated and changed files from previous version. All options selected are as per recommendation. Upgrade files are downloaded, uncompressed backup also happens. But upgrade process errors out and error comes. After this whole site goes down, even I can't rollback to previous version. After this I get server 500 error. I have to manually restore the backup to get site online to previous version. I want to update the PS version, anyone please let me know what I am missing here. Below is the error I see during upgrade. Backup files in progress. 1263 files left Backup files in progress. 863 files left Backup files in progress. 463 files left All files saved. Now backing up database Database backup done in filename V1.7.2.3_20180803-004530-3345c1d2. Now upgrading files... 19738 files will be upgraded. 19138 files left to upgrade. [Ajax / Server Error for action upgradeFiles] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " " Link to comment Share on other sites More sharing options...
ksaan Posted August 3, 2018 Share Posted August 3, 2018 Hi, Your issue looks like this solved github issue: https://github.com/PrestaShop/autoupgrade/issues/120 Maybe his solution will work for you too Link to comment Share on other sites More sharing options...
sabhanukrish Posted August 4, 2018 Author Share Posted August 4, 2018 Thanks Ksaan, I tried the version 4.0 for autoupgrade but it failed installation. Below are the logs. [2018-08-05 04:32:37] security.DEBUG: User was reloaded from a user provider. {"username":"[email protected]","provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider"} [] [2018-08-05 04:32:39] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'" at /home4/gosabhyata/public_html/modules/autoupgrade/classes/UpgradeTools/Translator.php line 41 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' at /home4/gosabhyata/public_html/modules/autoupgrade/classes/UpgradeTools/Translator.php:41)"} [] [2018-08-05 04:32:39] security.DEBUG: Stored the security token in the session. {"key":"_security_main"} [] Link to comment Share on other sites More sharing options...
ksaan Posted August 7, 2018 Share Posted August 7, 2018 What is your php version ? The error "Parse Error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE)" ... happens when you have a php older than 5.5. I think your php version is too old, you need to upgrade. You need at least php 5.5 to run prestashop, and in fact it is recommended to use either php 5.6 or php 7.1 Link to comment Share on other sites More sharing options...
sabhanukrish Posted August 7, 2018 Author Share Posted August 7, 2018 My PHP version is updated. I have PHP version 7.1. Link to comment Share on other sites More sharing options...
selectshop.at Posted August 7, 2018 Share Posted August 7, 2018 If you already changed the autoupgrade module to version 4.0.0. and are still having problems, than try to change permissions of your folder and ALL SUB-FOLDERS THERE in /youradmin/autoupgrade to 755. All FILES in these folders should have chmod 0644 only Link to comment Share on other sites More sharing options...
aixos Posted August 7, 2018 Share Posted August 7, 2018 Hi this is solved!!! in spanish forum instalation with prestashop 1.7.4.2 and 1 - Click Upgrade versión 4.0.0 stable and php 7.1 Important step by step : https://www.prestashop.com/forums/topic/873841-actualización-con-1-click-upgrade-desde-17-a-1742/ regards Link to comment Share on other sites More sharing options...
selectshop.at Posted August 7, 2018 Share Posted August 7, 2018 @alxos - seems not be solved. User already tried with 1-click module 4.0.0 and still having problems. On 5.8.2018 at 1:08 AM, sabhanukrish said: Thanks Ksaan, I tried the version 4.0 for autoupgrade but it failed installation. 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