MP-STC Posted February 7, 2023 Share Posted February 7, 2023 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. 2. then i couldnt start the autoupgrade because of an error. i didnt got a check for the php session part: So i spend some time on guthub and found a solution, implementing some code in my modules > autoupgrade > classes > upgradeselfcheck.php 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 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