Magesti Posted March 3, 2023 Share Posted March 3, 2023 Bonjour, Je viens de craquer, j'en suis a ma deuxieme tentative de mise a jour de mon site prestashop, j'en suis a plus de 10h, j'ai planté 4 fois mon site en ligne, desormais j'essaye en local mais toujours pas moyen, a chaque correction de bug, un nouveau apparait. 1.7.6.5 vers 1.7.8.8 j'ai laissé tombé car a la fin je me suis rendu compte que ça ne passerait pas avec ma version de php 1.7.6.5 vers 8.0.1 avec autoupgrade 4.15 ... j'en transpire encore j'ai du corriger toutes ces lignes dans upgrade .php, ça pointe jamais la ou il faut, une fois il faut rajouter des ../ et sur une autre ligne faut en enlever, et d'autres changer le chemin... require_once __DIR__ . '../../vendor/autoload.php'; require_once __DIR__ . '../../../../config/defines.inc.php'; require_once __DIR__ . '../../../../config/autoload.php'; Upgrade::migrateSettingsFile(); require_once __DIR__ . '../../../../install/classes/datas.php'; require_once dirname(__FILE__) . '../../../../install/init.php'; require_once _PS_CONFIG_DIR_ . 'bootstrap.php'; Je me suis servi de la procedure https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/ qui je pense est bien depassée. maintenant quand je relance mon upgrade via ce lienhttp://localhost/monsite/modules/autoupgrade/upgrade/upgrade.php j'ai ça comme erreur et je trouve pas la solution: Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "prestashop.adapter.news.circuit_breaker.settings" has a dependency on a non-existent service "prestashop.core.circuit_breaker.guzzle.cache_subscriber". in /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86 Stack trace: #0 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #1 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #2 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #3 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #4 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #5 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #6 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #7 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #8 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #9 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #10 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(94): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #11 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #12 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #13 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #14 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(47): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #15 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(40): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process() #16 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(94): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->process() #17 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(762): Symfony\Component\DependencyInjection\Compiler\Compiler->compile() #18 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(594): Symfony\Component\DependencyInjection\ContainerBuilder->compile() #19 /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(136): Symfony\Component\HttpKernel\Kernel->initializeContainer() #20 /data/vhost/dev/monsite/app/AppKernel.php(84): Symfony\Component\HttpKernel\Kernel->boot() #21 /data/vhost/dev/monsite/install/init.php(98): AppKernel->boot() #22 /data/vhost/dev/monsite/modules/autoupgrade/upgrade/upgrade.php(52): require_once('...') #23 {main} thrown in /data/vhost/dev/monsite/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line 86 Link to comment Share on other sites More sharing options...
Magesti Posted March 10, 2023 Author Share Posted March 10, 2023 (edited) 8h plus tard, j'arrive toujours à rien 😭 j'ai essayé plusieurs versions de prestashop supérieure à la mienne, plusieurs versions d'autoupgrade et rien de rien Je m'acharne à nouveau sur un upgrade 1.7.6.5 vers 8.0.1 METHODE 1: je copie le repertoire de la 8.0.1 dans le repertoire de la 1.7.6.5, en enlevant les dossier img et overide je me met en racine du dossier prestashop et je lance: php modules/autoupgrade/autoupgrade.php PHP Fatal error: Uncaught Error: Class "Module" not found in /data/vhost/dev/monsiteprestashop/modules/autoupgrade/autoupgrade.php:27 Stack trace: #0 {main} thrown in /data/vhost/dev/monsiteprestashop/modules/autoupgrade/autoupgrade.php on line 27 j'essaye sinon ça php modules/autoupgrade/upgrade/upgrade.php PHP Warning: require_once(/data/vhost/dev/monsiteprestashop/modules/autoupgrade/upgrade/../../vendor/autoload.php): Failed to open stream: No such file or directory in /data/vhost/dev/monsiteprestashop/modules/autoupgrade/upgrade/upgrade.php on line 47 PHP Fatal error: Uncaught Error: Failed opening required '/data/vhost/dev/monsiteprestashop/modules/autoupgrade/upgrade/../../vendor/autoload.php' (include_path='.:/usr/share/php') in /data/vhost/dev/monsiteprestashop/modules/autoupgrade/upgrade/upgrade.php:47 Stack trace: #0 {main} thrown in /data/vhost/dev/monsiteprestashop/modules/autoupgrade/upgrade/upgrade.php on line 47 METHODE 2: je copie juste l'autoupgrade 4.15 sur la base de mon site orginal 1.7.6.5 et je lance ça php modules/autoupgrade/cli-upgrade.php --dir=admin9362m6e98 --channel=major PHP Deprecated: AppKernel implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /data/vhost/dev/monsiteprestashop/app/AppKernel.php on line 32 Deprecated: AppKernel implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /data/vhost/dev/monsiteprestashop/app/AppKernel.php on line 32 PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /data/vhost/dev/monsiteprestashop/config/bootstrap.php on line 89 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /data/vhost/dev/monsiteprestashop/config/bootstrap.php on line 89 PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /data/vhost/dev/monsiteprestashop/config/bootstrap.php on line 89 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /data/vhost/dev/monsiteprestashop/config/bootstrap.php on line 89 PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Shop given in /data/vhost/dev/monsiteprestashop/src/Adapter/EntityMapper.php:99 Stack trace: #0 /data/vhost/dev/monsiteprestashop/src/Adapter/EntityMapper.php(99): array_key_exists() #1 /data/vhost/dev/monsiteprestashop/classes/ObjectModel.php(264): PrestaShop\PrestaShop\Adapter\EntityMapper->load() #2 /data/vhost/dev/monsiteprestashop/classes/shop/Shop.php(128): ObjectModelCore->__construct() #3 /data/vhost/dev/monsiteprestashop/classes/shop/Shop.php(393): ShopCore->__construct() #4 /data/vhost/dev/monsiteprestashop/config/config.inc.php(119): ShopCore::initialize() #5 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/classes/UpgradeContainer.php(576): require_once('...') #6 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/classes/TaskRunner/AbstractTask.php(120): PrestaShop\Module\AutoUpgrade\UpgradeContainer->initPrestaShopCore() #7 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/classes/TaskRunner/Upgrade/AllUpgradeTasks.php(109): PrestaShop\Module\AutoUpgrade\TaskRunner\AbstractTask->init() #8 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/cli-upgrade.php(38): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\AllUpgradeTasks->init() #9 {main} thrown in /data/vhost/dev/monsiteprestashop/src/Adapter/EntityMapper.php on line 99 Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Shop given in /data/vhost/dev/monsiteprestashop/src/Adapter/EntityMapper.php:99 Stack trace: #0 /data/vhost/dev/monsiteprestashop/src/Adapter/EntityMapper.php(99): array_key_exists() #1 /data/vhost/dev/monsiteprestashop/classes/ObjectModel.php(264): PrestaShop\PrestaShop\Adapter\EntityMapper->load() #2 /data/vhost/dev/monsiteprestashop/classes/shop/Shop.php(128): ObjectModelCore->__construct() #3 /data/vhost/dev/monsiteprestashop/classes/shop/Shop.php(393): ShopCore->__construct() #4 /data/vhost/dev/monsiteprestashop/config/config.inc.php(119): ShopCore::initialize() #5 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/classes/UpgradeContainer.php(576): require_once('...') #6 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/classes/TaskRunner/AbstractTask.php(120): PrestaShop\Module\AutoUpgrade\UpgradeContainer->initPrestaShopCore() #7 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/classes/TaskRunner/Upgrade/AllUpgradeTasks.php(109): PrestaShop\Module\AutoUpgrade\TaskRunner\AbstractTask->init() #8 /data/vhost/dev/monsiteprestashop/modules/autoupgrade/cli-upgrade.php(38): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\AllUpgradeTasks->init() #9 {main} thrown in /data/vhost/dev/monsiteprestashop/src/Adapter/EntityMapper.php on line 99 je trouve aussi que toutes les lignes # .... sont incomprehensibles, on sait meme si c'est une erreur si ça c'est bien passé, ... J'ai essayé pleins de bidouilles a la suite des ces différentes erreurs mais d'autres s'ajoutent et jamais je n'arrive a finaliser l'upgrade correctement. est il possible d'avoir une aide ? (pour les personnes qui me demandent en privé une copie de mon site pour m'aider , non merci ) Edited March 10, 2023 by Magesti (see edit history) Link to comment Share on other sites More sharing options...
Magesti Posted March 14, 2023 Author Share Posted March 14, 2023 personne ? 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