TmArKy_ Posted May 20 Share Posted May 20 Hi, after using 1-Click upgrade module to update prestashop, everything seemed going smoothly, at some point it gave me an error in updating some modules so i started updating them manually. At some point, i have no idea which update caused the issue, the server came back with error 500. Looking into the log i found this: [Mon May 20 15:13:04.044342 2024]: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'Swift' not found in /var/www/vhosts/example.it/httpdocs/vendor/swiftmailer/swiftmailer/lib/swift_required.php:13\nStack trace:\n#0 /var/www/vhosts/example.it/httpdocs/vendor/composer/autoload_real.php(82): require()\n#1 /var/www/vhosts/example.it/httpdocs/vendor/composer/autoload_real.php(65): composerRequire76d956951c849c2438d490527afb2467('2c102faa651ef8e...', '/var/www/vhosts...')\n#2 /var/www/vhosts/example.it/httpdocs/vendor/autoload.php(7): ComposerAutoloaderInit76d956951c849c2438d490527afb2467::getLoader()\n#3 /var/www/vhosts/example.it/httpdocs/config/autoload.php(26): require_once('/var/www/vhosts...')\n#4 /var/www/vhosts/example.it/httpdocs/config/config.inc.php(38): require_once('/var/www/vhosts...')\n#5 /var/www/vhosts/example.it/httpdocs/index.php(27): require('/var/www/vhosts...')\n#6 {main}\n thrown in /var/www/vhosts/example.it/httpdocs/vendor/swiftmailer/swiftmailer/lib/swift_required.php on line 13' At the moment i'm rolling back to a backup previous the update, but still i have to solve this issue to be able to make the website up to date. Any suggestion on how to solve this? If you need anything else let me know. Link to comment Share on other sites More sharing options...
TmArKy_ Posted May 20 Author Share Posted May 20 Also exploring the log more, it is a mess, i found also these errors: [Mon May 20 02:08:04.052130 2024] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Symfony\\Component\\Filesystem\\Exception\\IOException: Failed to write file "/var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/getMetaControllerService.php". in /var/www/vhosts/example.it/httpdocs/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:688\nStack trace:\n#0 /var/www/vhosts/example.it/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(868): Symfony\\Component\\Filesystem\\Filesystem->dumpFile('/var/www/vhosts...', '<?php\\n\\nuse Symf...')\n#1 /var/www/vhosts/example.it/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(665): Symfony\\Component\\HttpKernel\\Kernel->dumpContainer(Object(Symfony\\Component\\Config\\ConfigCache), Object(Symfony\\Component\\DependencyInjection\\ContainerBuilder), 'appProdProjectC...', 'Container')\n#2 /var/www/vhosts/example.it/httpdocs/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(135): Symfony\\Component\\HttpKernel\\Kernel->...', referer: https://www.example.it/admin721rb2chh/index.php/improve/modules/updates?_token=5S6-pkUqR2Ydrz0xbSlZBOQHkDIb3UKzV2fdWq_2L9U [Mon May 20 02:08:53.179698 2024] AH01071: Got error 'PHP message: PHP Warning: require(/var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/removed-ids.php): failed to open stream: No such file or directory in /var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/appProdProjectContainer.php on line 3316PHP message: PHP Warning: require(/var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/removed-ids.php): failed to open stream: No such file or directory in /var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/appProdProjectContainer.php on line 3316PHP message: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/removed-ids.php' (include_path='/var/www/vhosts/example.it/httpdocs/vendor/pear/pear_exception:/var/www/vhosts/example.it/httpdocs/vendor/pear/console_getopt:/var/www/vhosts/example.it/httpdocs/vendor/pear/pear-core-minimal/src:/var/www/vhosts/example.it/httpdocs/vendor/pear/archive_tar:.:/opt/plesk/php/7.3/share/pear') in /var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/appProdProjectContainer.php on line 3316', referer: https://www.example.it/admin721rb2chh/index.php/improve/modules/updates?_token=5S6-pkUqR2Ydrz0xbSlZBOQHkDIb3UKzV2fdWq_2L9U [Mon May 20 02:08:53.368269 2024] AH01071: Got error 'PHP message: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/removed-ids.php' (include_path='/var/www/vhosts/example.it/httpdocs/vendor/pear/pear_exception:/var/www/vhosts/example.it/httpdocs/vendor/pear/console_getopt:/var/www/vhosts/example.it/httpdocs/vendor/pear/pear-core-minimal/src:/var/www/vhosts/example.it/httpdocs/vendor/pear/archive_tar:.:/opt/plesk/php/7.3/share/pear') in /var/www/vhosts/example.it/httpdocs/var/cache/prod/ContainerKls6g0p/appProdProjectContainer.php on line 3316', referer: https://www.example.it/admin721rb2chh/index.php/improve/modules/updates?_token=5S6-pkUqR2Ydrz0xbSlZBOQHkDIb3UKzV2fdWq_2L9U [Mon May 20 02:31:24.550107 2024] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant _PS_ALLOW_MULTI_STATEMENTS_QUERIES_ - assumed '_PS_ALLOW_MULTI_STATEMENTS_QUERIES_' (this will throw an Error in a future version of PHP) in /var/www/vhosts/example.it/httpdocs/classes/db/DbPDO.php on line 92PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/vhosts/example.it/httpdocs/classes/shop/Shop.php on line 350' [Mon May 20 03:08:04.302253 2024] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class 'ComposerAutoloaderInit76d956951c849c2438d490527afb2467' not found in /var/www/vhosts/example.it/httpdocs/vendor/autoload.php:7\nStack trace:\n#0 /var/www/vhosts/example.it/httpdocs/config/autoload.php(26): require_once()\n#1 /var/www/vhosts/example.it/httpdocs/config/config.inc.php(38): require_once('/var/www/vhosts...')\n#2 /var/www/vhosts/example.it/httpdocs/index.php(27): require('/var/www/vhosts...')\n#3 {main}\n thrown in /var/www/vhosts/example.it/httpdocs/vendor/autoload.php on line 7', referer: http://www.example.it/content/7-registrazione-b2b 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