vins Posted December 7, 2023 Share Posted December 7, 2023 Hello after 2 3 days on trying to update my prestashop from 1.7.7.0 to 8.1.2 I post on this forum because it seems impossible... Even with a fresh 1.7.7.0 it fails. So very simple question : is it possible ? Link to comment Share on other sites More sharing options...
ps8modules Posted December 8, 2023 Share Posted December 8, 2023 Hi. It will definitely give you some error during the upgrade. The GDPR module (deactivate, uninstall before upgrade) causes the biggest problem. It is quite possible that the upgrade may fail because other incompatible modules will also cause the error. Can you post the error you get when upgrading? Link to comment Share on other sites More sharing options...
vins Posted December 8, 2023 Author Share Posted December 8, 2023 Thks for your anwer When I upgrade cli commande I have this message error : thrown in D:\pixomaniakWebSites\modules\autoupgrade\classes\PrestashopConfiguration.php on line 90 Fatal error: Uncaught Exception: Can't find PrestaShop Version in D:\pixomaniakWebSites\modules\autoupgrade\classes\PrestashopConfiguration.php:90 Stack trace: #0 D:\pixomaniakWebSites\modules\autoupgrade\classes\UpgradeContainer.php(202): PrestaShop\Module\AutoUpgrade\PrestashopConfiguration->getPrestaShopVersion() #1 D:\pixomaniakWebSites\modules\autoupgrade\classes\UpgradeContainer.php(299): PrestaShop\Module\AutoUpgrade\UpgradeContainer->getProperty('version') #2 D:\pixomaniakWebSites\modules\autoupgrade\classes\TaskRunner\Upgrade\AllUpgradeTasks.php(64): PrestaShop\Module\AutoUpgrade\UpgradeContainer->getUpgrader() #3 D:\pixomaniakWebSites\modules\autoupgrade\cli-upgrade.php(37): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\AllUpgradeTasks->setOptions(Array) #4 {main} thrown in D:\pixomaniakWebSites\modules\autoupgrade\classes\PrestashopConfiguration.php on line 90 So it seems to be in relation with the fail of the function getPrestaShopVersion() in modules/autoupgrade/classes/PrestashopConfiguration.php public function getPrestaShopVersion() { if (defined('_PS_VERSION_')) { return _PS_VERSION_; } $files = [ $this->psRootDir . '/config/settings.inc.php', $this->psRootDir . '/config/autoload.php', $this->psRootDir . '/app/AppKernel.php', ]; foreach ($files as $file) { if (!file_exists($file)) { continue; } $version = $this->findPrestaShopVersionInFile(file_get_contents($file)); if ($version) { return $version; } } throw new \Exception('Can\'t find PrestaShop Version'); } I saw that after files upgrade AppKernel.php does'nt contain any more const VERSION = '1.7.7.0'; so perhaps it cuases the problem ? Link to comment Share on other sites More sharing options...
musicmaster Posted December 8, 2023 Share Posted December 8, 2023 In PS 8.1 the version number is in /src/Core/Version.php Link to comment Share on other sites More sharing options...
vins Posted December 8, 2023 Author Share Posted December 8, 2023 (edited) Ok ! so the Upgrade module is searching the version on the wrong files ! I can't understand why this upgrade module is so buggy ! No one is doing upgrade from 1.7 to 8.1 ? I don't understand... some one can explain ? Edited December 8, 2023 by vins (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted December 8, 2023 Share Posted December 8, 2023 This is the first time I hear about this error. Either your shops has some problems or the latest version of the autoupgrade module is defect. It might be the latter as I see two similar complaints in the Github. You can wait for the fix, try a manual upgrade or try to upgrade to 8.0 that has its version number in the old location. Link to comment Share on other sites More sharing options...
vins Posted December 8, 2023 Author Share Posted December 8, 2023 Ok thks I will try to update to 8.0 Link to comment Share on other sites More sharing options...
Aldeag Posted February 5 Share Posted February 5 And then, did you success? I`m thinking to update to the latest version from 1.7.7.0 to 8.X.X so, how was your experioence? 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