Your software
My Mautic version is: 5.1.1
My PHP version is: 8.2
My Database type and version is: MariaDB 10.11
Your problem
My problem is:
I can’t pass step 2.
These errors are showing in the log:
==> var/logs/mautic_prod-2024-11-06.php <==
[2024-11-06T15:43:25.646203+00:00] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\EntityNotFoundException: “Entity of type ‘Mautic\UserBundle\Entity\R
ole’ for IDs id(1) was not found” at /var/www/clients/client3/web136/web/vendor/doctrine/orm/src/EntityNotFoundException.php line 33 {“exception”:"[object]
(Doctrine\ORM\EntityNotFoundException(code: 0): Entity of type ‘Mautic\UserBundle\Entity\Role’ for IDs id(1) was not found at /var/www/clients/client3/
web136/web/vendor/doctrine/orm/src/EntityNotFoundException.php:33)
[stacktrace]
#0 /var/www/clients/client3/web136/web/vendor/doctrine/orm/src/Proxy/ProxyFactory.php(347): Doctrine\ORM\EntityNotFoundException::fromClassNameAndIdentifi
er()
#1 /var/www/clients/client3/web136/web/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php(214): Doctrine\ORM\Proxy\ProxyFactory->Do
ctrine\ORM\Proxy\{closure}()
#2 /var/www/clients/client3/web136/web/var/cache/prod/doctrine/orm/Proxies/__CG__MauticUserBundleEntityRole.php(214): Closure->__invoke()
#3 /var/www/clients/client3/web136/web/docroot/app/bundles/UserBundle/Entity/User.php(311): Proxies\CG\Mautic\UserBundle\Entity\Role->getName()
#4 /var/www/clients/client3/web136/web/docroot/app/bundles/UserBundle/Entity/User.php(567): Mautic\UserBundle\Entity\User->isChanged()
#5 /var/www/clients/client3/web136/web/docroot/app/bundles/InstallBundle/Install/InstallService.php(456): Mautic\UserBundle\Entity\User->setRole()
#6 /var/www/clients/client3/web136/web/docroot/app/bundles/InstallBundle/Controller/InstallController.php(126): Mautic\InstallBundle\Install\InstallServi
ce->createAdminUserStep()
#7 /var/www/clients/client3/web136/web/vendor/symfony/http-kernel/HttpKernel.php(163): Mautic\InstallBundle\Controller\InstallController->stepAction()
#8 /var/www/clients/client3/web136/web/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#9 /var/www/clients/client3/web136/web/vendor/symfony/http-kernel/Kernel.php(202): Symfony\Component\HttpKernel\HttpKernel->handle()
#10 /var/www/clients/client3/web136/web/docroot/app/AppKernel.php(109): Symfony\Component\HttpKernel\Kernel->handle()
#11 /var/www/clients/client3/web136/web/docroot/app/middlewares/CORSMiddleware.php(76): AppKernel->handle()
#12 /var/www/clients/client3/web136/web/docroot/app/middlewares/HSTSMiddleware.php(39): Mautic\Middleware\CORSMiddleware->handle()
#13 /var/www/clients/client3/web136/web/docroot/app/middlewares/CatchExceptionMiddleware.php(28): Mautic\Middleware\HSTSMiddleware->handle()
#14 /var/www/clients/client3/web136/web/docroot/app/middlewares/VersionCheckMiddleware.php(58): Mautic\Middleware\CatchExceptionMiddleware->handle()
#15 /var/www/clients/client3/web136/web/docroot/app/middlewares/TrustMiddleware.php(42): Mautic\Middleware\VersionCheckMiddleware->handle()
#16 /var/www/clients/client3/web136/web/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Mautic\Middleware\TrustMiddleware->handle()
#17 /var/www/clients/client3/web136/web/docroot/index.php(19): Stack\StackedHttpKernel->handle()
#18 {main}
"} {“hostname”:“olivia2.okay.com.mx”,“pid”:1118481}
Steps I have tried to fix the problem:
- deleting all that is in var/log directory
- PHP Settings:
memory_limit=512M
max_execution_time=3000 - all files belong to the PHP user