Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to update 1.7.8.8 to 8.0.1 #30761

Closed
2 tasks done
Stephane1874 opened this issue Jan 7, 2023 · 25 comments
Closed
2 tasks done

Failed to update 1.7.8.8 to 8.0.1 #30761

Stephane1874 opened this issue Jan 7, 2023 · 25 comments
Labels
1.7.8.8 Affects versions Autoupgrade Module: autoupgrade BO Category: Back Office Bug Type: Bug Fixed Resolution: issue closed because fixed Module Module Topwatchers Backlog prioritization: issue reported & followed by +6 people Verified The issue has been reproduced

Comments

@Stephane1874
Copy link

Stephane1874 commented Jan 7, 2023

Prerequisites

Describe the bug and add attachments

Hello,

I tried to update my version 1.7.8.8 to 8.0.1 with the 1-Click Upgrade module version 4.15.0 by choosing the major version option.

On my first try, I got this error:

[INTERNAL] /htdocs/vendor/composer/autoload_real.php line 59 - require(): Failed opening required '/htdocs/vendor/composer/../react/promise/src/functions_include.php' (include_path='/htdocs/vendor/pear/pear_exception:/htdocs/vendor/pear/console_getopt:/htdocs/vendor/pear/pear-core-minimal/src:/htdocs/vendor/pear/archive_tar:.:/usr/share/php')

Capture

So I added manually on a version 8.0.1 available on my desktop the folder (react), I compressed the archive and deposited in the folder /admin/autoupgrade/download/, I tried again to update update from the 1-Click Upgrade module by choosing the local archive option.

I got this error:

[INTERNAL] /htdocs/vendor/composer/autoload_real.php line 59 - require(): Failed opening required '/htdocs/vendor/composer/../markbaker/complex/classes/src/functions/abs.php' (include_path='/htdocs/vendor/pear/pear_exception:/htdocs/vendor/pear/console_getopt:/htdocs/vendor/pear/pear-core-minimal/src:/htdocs/vendor/pear/archive_tar:.:/usr/share/php')

add-dossier-react

Same manipulation by adding the missing folder.

I got this error:

[INTERNAL] /htdocs/vendor/composer/autoload_real.php line 59 - require(): Failed opening required '/htdocs/vendor/composer/../markbaker/matrix/classes/src/Functions/adjoint.php' (include_path='/htdocs/vendor/pear/pear_exception:/htdocs/vendor/pear/console_getopt:/htdocs/vendor/pear/pear-core-minimal/src:/htdocs/vendor/pear/archive_tar:.:/usr/share/php')

I added the missing folder and finally managed to complete the process with this error :

adde

The BO seemed to work correctly, but the FO was in error 500.

I didn't keep looking for the solution for the 500 error, I reinstalled my BDD backups and files before I went crazy :)

Maybe it is not possible to do this update yet 1.7.8.8 to 8.0.1?

Expected behavior

No response

Steps to reproduce

Update 1.7.8.8 to 8.0.1

PrestaShop version(s) where the bug happened

1.7.8.8 to 8.0.1

PHP version(s) where the bug happened

7.4

If your bug is related to a module, specify its name and its version

No response

@Stephane1874 Stephane1874 added Bug Type: Bug New New issue not yet processed by QA labels Jan 7, 2023
@Hlavtox
Copy link
Contributor

Hlavtox commented Jan 7, 2023

Hi @Stephane1874, I have experienced errors like this before, when capital letter changed in some of the packages. There is a simmilar issue here - #15187.

I just tested upgrade from 1.7.8.8 to 8.0.1 and everything went fine, so I think you intially installed Prestashop on some older version and this is an upgraded install right?

Could you please ZIP your vendor folder of 1.7.8.8 and send it to me somehow? I will compare it to 1.7.8.8 clean.


Regarding the error in FO after upgrade, it will be some minor module issue. If you enable debug mode in BO or you change _PS_MODE_DEV_ to true in config/defines.inc.php, you will see what is causing it. 👍

@Hlavtox Hlavtox added NMI Status: issue needs more information Autoupgrade Module: autoupgrade and removed New New issue not yet processed by QA labels Jan 7, 2023
@Stephane1874
Copy link
Author

Stephane1874 commented Jan 7, 2023

Hi @Hlavtox, thank you for the answer.

Yes, it's an old version 1.7.5 or 1.7.6 I can't remember. I followed the updates every time.

My vendor.zip file by following this link
http://www.hebergeurfichier.com/download/924e531b9e249dd3aed906c9583977d5.html

@Hlavtox
Copy link
Contributor

Hlavtox commented Jan 7, 2023

Your vendor folder is correct, that's not the problem. I suggest disabling every non-native module and trying again. Let me know. 👍

@deepindersingh83
Copy link

deepindersingh83 commented Jan 8, 2023

Same Issue

We faced we installed the 1.7.8.4 and updated with the patches and updates till 1.7.8.8

but when updated it to 8.0.1 we got the same error

Quote removed by @Hlavtox

@Stephane1874
Copy link
Author

Hello @Hlavtox,

I did some tests with non-native modules disabled and the default theme. I get the same result with different errors depending on the scenario.

[INTERNAL] /htdocs/vendor/composer/autoload_real.php line 59 - require(): Failed opening required '/htdocs/vendor/composer/../react/promise/src/functions_include.php' (include_path='/htdocs/vendor/pear/pear_exception:/htdocs/vendor/pear/console_getopt:/htdocs/vendor/pear/pear-core-minimal/src:/htdocs/vendor/pear/archive_tar:.:/usr/share/php')

I also got this error

[INTERNAL] /htdocs/src/Adapter/Module/Repository/ModuleRepository.php line 41 - Error: Class 'PrestaShop\PrestaShop\Adapter\AbstractObjectModelRepository' not found #0 /htdocs/modules/autoupgrade/vendor/composer/ClassLoader.php(444): include() #1 /htdocs/modules/autoupgrade/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/htdocs/vendor/...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('PrestaShop\\Pres...') #3 /htdocs/app/AppKernel.php(215): spl_autoload_call('PrestaShop\\Pres...') #4 /htdocs/app/AppKernel.php(68): AppKernel->getActiveModules() #5 /htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(446): AppKernel->registerBundles() #6 /htdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(133): Symfony\Component\HttpKernel\Kernel->initializeBundles() #7 /htdocs/app/AppKernel.php(84): Symfony\Component\HttpKernel\Kernel->boot() #8 /htdocs/modules/autoupgrade/classes/UpgradeTools/SymfonyAdapter.php(76): AppKernel->boot() #9 /htdocs/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader80.php(44): PrestaShop\Module\AutoUpgrade\UpgradeTools\SymfonyAdapter->initAppKernel() #10 /htdocs/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(87): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader80->initConstants() #11 /htdocs/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(42): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->doUpgrade() #12 /htdocs/admin???/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->run() #13 {main}

I will see this update for later, for now 1.7.8.8 works well, thank you.

@Hlavtox
Copy link
Contributor

Hlavtox commented Jan 8, 2023

@atomiix @kpodemski We need some investigation guys. 😄

@hibatallahAouadni hibatallahAouadni added 1.7.8.8 Affects versions Module Module BO Category: Back Office TBR Status: issue to be reproduced Waiting for dev Status: action required, waiting for tech feedback and removed NMI Status: issue needs more information labels Jan 9, 2023
@dreanmer
Copy link

dreanmer commented Jan 20, 2023

I'm facing the same problem... First upgraded from 1.7.8.7 direct to 8.0.1, as I got these errors I made the manual upgrade to 1.7.8.8 them upgraded to 8.0.1 (with 1 click) also had the same errors... so I managed to fix it by copying the /react/promise/src/functions_include.php from another module (maybe from ps_accounts, I don't remember, but there is many modules that have this) but... after this I found more problems:

  • can't run database upgrade manually (lot of errors on dependencies trying to load from wrong dir);
  • perhaps the store opens, the admin side wont, there is error with an PrestaShopBundle trying to load @prestashop.core.circuit_breaker.guzzle.cache_subscriber on news.php but it cant be found, and gives error;

I also managed to fix it removing this subscriber (idk what can be the consequences...) the admin login page loads, but dont login (only refreshes... maybe this is an consequence lol)

I also tried to upgrade manually, some things that helped with some errors was:

  • deleting var/cache/prod and var/cache/dev
  • disabling all non native modules
    but had the same problems as above...

I'm giving up... as I can't change to another system on this project, I'll freeze it to 1.7.8.8 and make changes to the core by myself.

@sebastian-marinescu
Copy link

I'm trying for the last hours to upgrade to PS8.
I am encountering the exact same problems like @dreanmer.

Because 1clickupgrade always had connection timeouts, I did the manual upgrade, like described in the docs, and also from 1.7.8.8. After that nothing worked. I started debugging and fixed the php-errors inside my override-classes.
I also updated many modules. But now I encountered this error:

PHP 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 /ps_shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86

The blog posts to this release sounded promising, but the experience while upgrading is not.

I will have to revert and freeze too, until these issues are resolved.

@prestashop-issue-bot prestashop-issue-bot bot added the Topwatchers Backlog prioritization: issue reported & followed by +6 people label Feb 3, 2023
@Imunal
Copy link

Imunal commented Feb 6, 2023

I'm trying for the last hours to upgrade to PS8.

I am encountering the exact same problems like @dreanmer.

Because 1clickupgrade always had connection timeouts, I did the manual upgrade, like described in the docs, and also from 1.7.8.8. After that nothing worked. I started debugging and fixed the php-errors inside my override-classes.

I also updated many modules. But now I encountered this error:

PHP 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 /ps_shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86

The blog posts to this release sounded promising, but the experience while upgrading is not.

I will have to revert and freeze too, until these issues are resolved.

Facing the same issue, any update on that?

@dreanmer
Copy link

dreanmer commented Feb 6, 2023

Nope... I made some tryouts but I gave up. I didn't have much time to spend on it, and seems no one cares about :/

@AureRita
Copy link
Contributor

AureRita commented Feb 8, 2023

Friendly reminder @PrestaShop/prestashop-core-developers

@mateuszdraco
Copy link

I faced the same issue, what I did was to remove old src/PrestaShopBundle and to copy the new version, so there are no old files in this directory anymore.

@pixelpusher
Copy link

this is also completely broken for me, the steps above didn't help. I followed the upgrade instructions on https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/upgrade/ and they simply don't work, also the link to the update.php doesn't work (should that be relative to the admin folder)? These instructions are very sparse, they were not very helpful unfortunately.

@kpodemski
Copy link
Contributor

Improved documentation for the autoupgrade module is now in the works. You can see refreshed upgrade guide here PrestaShop/docs#1611

@HanaRebaiQA
Copy link

Hello everyone,

Could we close this issue as it's a duplicate of this one #31679 ?

@RosaBenouamer
Copy link

@kpodemski do you agree with Hana ?

@sebastian-marinescu
Copy link

@HanaRebaiQA How is this a duplicate? This was posted in January, and the other one in March.
The other one is the duplicate 😉

@RosaBenouamer
Copy link

@paulnoelcholot because Hana doesn't work yet for Presta :-)

@seederp2p
Copy link

seederp2p commented Jul 8, 2023

I'm trying for the last hours to upgrade to PS8. I am encountering the exact same problems like @dreanmer.

Because 1clickupgrade always had connection timeouts, I did the manual upgrade, like described in the docs, and also from 1.7.8.8. After that nothing worked. I started debugging and fixed the php-errors inside my override-classes. I also updated many modules. But now I encountered this error:

PHP 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 /ps_shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86

The blog posts to this release sounded promising, but the experience while upgrading is not.

I will have to revert and freeze too, until these issues are resolved.

I also have this exact problem when tried to upgrade our testing environment.

INFO - === Step upgradeDb PHP 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 /var/www/MYFOLDER/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86 Stack trace: #0 /var/www/MYFOLDER/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() #1 /var/www/MYFOLDER/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php(49): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue() #2 /var/www/MYFOLDER/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Compon in /var/www/MYFOLDER/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line 86

@tiollo-eu
Copy link

I could fix this issue by removing the dependency:

  • ['setClientOptions', [{'method': 'GET', 'subscribers': ['@prestashop.core.circuit_breaker.guzzle.cache_subscriber']}]]
    within: src/PrestaShopBundle/Resources/config/services/adapter/news.yml

Just remove (safe) this line and you should be good to go: I try to restore that line after the upgrade within the file but it broke the functionality. Therefor I would avoid or replace it with the right dependency if necessary. So far no disadvantage occurred.

@Ramesh-Chouhan
Copy link

I'm trying for the last hours to upgrade to PS8. I am encountering the exact same problems like @dreanmer.

Because 1clickupgrade always had connection timeouts, I did the manual upgrade, like described in the docs, and also from 1.7.8.8. After that nothing worked. I started debugging and fixed the php-errors inside my override-classes. I also updated many modules. But now I encountered this error:

PHP 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 /ps_shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:86

The blog posts to this release sounded promising, but the experience while upgrading is not.

I will have to revert and freeze too, until these issues are resolved.

Hi
I have solved this issue by deleting one service file manual and then upgrade.
Service file /src/PrestaShopBundle/Resources/config/services/adapter/news.yml

@WahbiPS WahbiPS added Waiting for QA Status: action required, waiting for test feedback and removed Waiting for dev Status: action required, waiting for tech feedback labels Aug 2, 2023
@WahbiPS
Copy link

WahbiPS commented Aug 2, 2023

May be linked PrestaShop/autoupgrade#609

@kpodemski
Copy link
Contributor

@WahbiPS it is linked, yes

@WahbiPS WahbiPS removed the Waiting for QA Status: action required, waiting for test feedback label Aug 2, 2023
@tleon
Copy link
Contributor

tleon commented Aug 2, 2023

Hello, we did a fix in this PR that should also fix this problem.
This will be shipped in the next version of the autoupgrade module that should be out by next week. I'll post again on this issue when the module is released so you can test the fix.

@hibatallahAouadni
Copy link
Contributor

Fixed by PrestaShop/autoupgrade#609

@hibatallahAouadni hibatallahAouadni added Fixed Resolution: issue closed because fixed Verified The issue has been reproduced and removed TBR Status: issue to be reproduced labels Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.8.8 Affects versions Autoupgrade Module: autoupgrade BO Category: Back Office Bug Type: Bug Fixed Resolution: issue closed because fixed Module Module Topwatchers Backlog prioritization: issue reported & followed by +6 people Verified The issue has been reproduced
Projects
None yet
Development

No branches or pull requests