Hi every body,
Following my previous problems, I now face to a new issue.
When I try to access to the main page of our application, I get the following error :
<b>Fatal error</b>: Uncaught Error: Class "DoctrineORMModule\Proxy\__CG__\Application\Entity\Login" not found in [...]/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:111
Stack trace:
#0 [...]/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(2873): Doctrine\Common\Proxy\AbstractProxyFactory->getProxy()
#1 [...]/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(156): Doctrine\ORM\UnitOfWork->createEntity()
#2 [...]/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php(63): Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateRowData()
#3 [...]/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php(270): Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAllData()
#4 [...]/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php(757): Doctrine\ORM\Internal\Hydration\AbstractHydrator->hydrateAll()
#5 [...]/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php(243): Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load()
#6 [...]/module/Application/src/Repository/BaseRepository.php(52): Doctrine\ORM\EntityRepository->findOneBy()
#7 [...]/module/Application/src/Repository/SettingRepository.php(190): Application\Repository\BaseRepository->findOneBy()
#8 [...]/module/Application/src/View/Helper/LogoHelper.php(40): Application\Repository\SettingRepository->getHomeLogoStyle()
#9 [...]/module/Application/view/layout/layout.phtml(73): Application\View\Helper\LogoHelper->getHomeLogoStyle()
#10 [...]/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('...')
#11 [...]/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render()
#12 [...]/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render()
#13 [...]/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#14 [...]/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#15 [...]/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(116): Laminas\EventManager\EventManager->triggerEvent()
#16 [...]/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#17 [...]/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#18 [...]/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent()
#19 [...]/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest()
#20 [...]/public/index.php(41): Laminas\Mvc\Application->run()
#21 {main}
thrown in <b>[...]/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php</b> on line <b>111</b>
It looks like if the “events” weren’t correctly initialized (or something like that), into the run method (Laminas\Mvc\Application).
I don’t know why is exactly the problem…
- Problem the initializing the events ?
- Proxy issue ?
- Router issue ?
On my localhost, I don’t have this issue. I guess it’s probably a configuration issue (I hope )
I don’t know how on which point focus my research