Jump to content

Update from 1.7.7.1 to 8.0.1.


Recommended Posts

Dear Prestashop,

my provider (Strato) is changing its default PHP Version from 7.4 to PHP 8. When i tried to update the php version for my sites via strato i realised, my prestashop version 1.7.7.1 side is not supported for php 8 and it was blank. so i rolled back the php version to find a solution.

1. i wanted to update prestashop to version 8, cause this version seemed to be supported for php 8. i tried it via the 1 click update addon but i couldnt see the prestashop version 8.0. i found out, if i am changing the channel in expert mode to main releases, i could see it.

471977821_Bildschirmfoto2023-02-07um13_17_25.thumb.png.28e0eba2106aa0195a59c7e534a0aa84.png

2. then i couldnt start the autoupgrade because of an error.

i didnt got a check for the php session part:

16210093_Bildschirmfoto2023-02-07um13_18_49.thumb.png.4a3180fd95bea3f8da1d36295d7b69d5.png

So i spend some time on guthub and found a solution, implementing some code in my modules > autoupgrade > classes > upgradeselfcheck.php

138256292_Bildschirmfoto2023-02-07um13_20_51.thumb.png.55db8e050419c3895200c55ec3c98f40.png

i could fix the bug with the autoupdate module and startet it.

The update wasnt succesfully and stopped when it was updating the database. i am seeing the following error:

[INTERNAL] /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/vendor/doctrine/doctrine-bundle/ConnectionFactory.php line 142 - Doctrine\DBAL\Exception: An exception occurred while establishing a connection to figure out your platform version. You can circumvent this by setting a 'server_version' configuration value For further information have a look at: https://github.com/doctrine/DoctrineBundle/issues/673 #0 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/vendor/doctrine/doctrine-bundle/ConnectionFactory.php(119): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->getDatabasePlatform() #1 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/var/cache/prod/ContainerEV0wi3z/appAppKernelProdContainer.php(2230): Doctrine\Bundle\DoctrineBundle\ConnectionFactory->createConnection() #2 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/var/cache/prod/ContainerEV0wi3z/appAppKernelProdContainer.php(2274): ContainerEV0wi3z\appAppKernelProdContainer->getDoctrine_Dbal_DefaultConnectionService() #3 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/var/cache/prod/ContainerEV0wi3z/appAppKernelProdContainer.php(2243): ContainerEV0wi3z\appAppKernelProdContainer->getDoctrine_Orm_DefaultEntityManagerService() #4 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/var/cache/prod/ContainerEV0wi3z/EntityManager_9a5be93.php(167): ContainerEV0wi3z\appAppKernelProdContainer->ContainerEV0wi3z\{closure}() #5 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/var/cache/prod/ContainerEV0wi3z/EntityManager_9a5be93.php(167): Closure->__invoke() #6 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php(51): EntityManager_9a5be93->getConfiguration() #7 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php(97): Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer->warmUp() #8 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(631): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() #9 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(136): Symfony\Component\HttpKernel\Kernel->initializeContainer() #10 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/app/AppKernel.php(84): Symfony\Component\HttpKernel\Kernel->boot() #11 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/modules/autoupgrade/classes/UpgradeTools/SymfonyAdapter.php(76): AppKernel->boot() #12 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader80.php(44): PrestaShop\Module\AutoUpgrade\UpgradeTools\SymfonyAdapter->initAppKernel() #13 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/modules/autoupgrade/classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php(87): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader80->initConstants() #14 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(42): PrestaShop\Module\AutoUpgrade\UpgradeTools\CoreUpgrader\CoreUpgrader->doUpgrade() #15 /mnt/web404/b1/75/58092775/htdocs/soltany-shop.com/admin107htcvce/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->run() #16 {main}

I already searched on github and tried to implement some code in app > config >doctrine.yml to set a fix server version number. but this didnt solved the error (maybe i wrote the code in a wrong way). so now i am clueless what i can do. Do you have any ideas what to try?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...