Your software
My Mautic version is: Not sure anymore - some 5.0 or similar
My PHP version is: Official Mautic docker 5 image
My Database type and version is: Same - Official Mautic docker
Your problem
My problem is:
I believe I’ve upgraded my docker container the docker way.
My docker-compose.yaml contains (a few months old and working for a few months as well):
mautic_web:
image: mautic/mautic:5-apache
Then I’ve done (I believe):
docker compose stop
docker compose pull
docker compose up
Now, I should have a new Mautic version with an old DB?
I get a 500 error message in the browser and see this one in the logs:
[2025-07-13T05:45:01.317212+00:00] mautic.ERROR: Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'c0_.deleted' in 'SELECT' (uncaught exception) at /var/www/html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 67 while running console command `mautic:campaigns:rebuild` [stack trace] #0 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1938): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(Object(Doctrine\DBAL\Driver\PDO\Exception), Object(Doctrine\DBAL\Query)) #1 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1880): Doctrine\DBAL\Connection->handleDriverException(Object(Doctrine\DBAL\Driver\PDO\Exception), Object(Doctrine\DBAL\Query)) #2 /var/www/html/vendor/doctrine/dbal/src/Connection.php(1105): Doctrine\DBAL\Connection->convertExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDO\Exception), 'SELECT c0_.is_p...', Array, Array) #3 /var/www/html/vendor/doctrine/orm/src/Query/Exec/FinalizedSelectExecutor.php(31): Doctrine\DBAL\Connection->executeQuery('SELECT c0_.is_p...', Array, Array, NULL) #4 /var/www/html/vendor/doctrine/orm/src/Query.php(330): Doctrine\ORM\Query\Exec\FinalizedSelectExecutor->execute(Object(Mautic\CoreBundle\Doctrine\Connection\ConnectionWrapper), Array, Array) #5 /var/www/html/vendor/doctrine/orm/src/AbstractQuery.php(1151): Doctrine\ORM\Query->_doExecute() #6 /var/www/html/vendor/doctrine/orm/src/Query.php(748): Doctrine\ORM\AbstractQuery->toIterable(Array, 1) #7 /var/www/html/docroot/app/bundles/CoreBundle/Entity/CommonRepository.php(380): Doctrine\ORM\Query->toIterable(Array, 1) #8 /var/www/html/docroot/app/bundles/CampaignBundle/Entity/CampaignRepository.php(37): Mautic\CoreBundle\Entity\CommonRepository->getEntities(Array) #9 /var/www/html/docroot/app/bundles/CampaignBundle/Command/UpdateLeadCampaignsCommand.php(162): Mautic\CampaignBundle\Entity\CampaignRepository->getEntities(Array) #10 /var/www/html/vendor/symfony/console/Command/Command.php(298): Mautic\CampaignBundle\Command\UpdateLeadCampaignsCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 /var/www/html/vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /var/www/html/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application->doRunCommand(Object(Mautic\CampaignBundle\Command\UpdateLeadCampaignsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /var/www/html/vendor/symfony/console/Application.php(301): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand(Object(Mautic\CampaignBundle\Command\UpdateLeadCampaignsCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #14 /var/www/html/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #15 /var/www/html/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #16 /var/www/html/bin/console(16): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #17 {main} [] {"hostname":"b872de7f00b9","pid":443}
Not sure, whether it is related?
Any idea on how to solve this?