PHP error twake-core

Now that ElasticSearch is working, here is another error that occured in PHP.
Can’t login or subscribe, seems like a directory + files are missing or non-readable again

( I chmoded 777 docker-data just to be sure, though I do know it’s only a fix and that security wise it’s really bad )

Here is docker-compose logs -f --tail 100 php output after attempting to log/subscribe :

php_1            | 172.18.0.7 -  24/Jul/2020:11:41:15 +0000 "POST /app.php" 200
php_1            | 172.18.0.7 -  24/Jul/2020:11:41:15 +0000 "GET /app.php" 200
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP Warning:  require(/twake-core/cache/Doctrine/Proxies/__CG__TwakeWorkspacesEntityWorkspace.php): failed to open stream: No such file or directory in /twake-core/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 206"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP Stack trace:"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   1. {main}() /twake-core/web/app.php:0"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   2. App\App->run() /twake-core/web/app.php:26"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   3. Pecee\SimpleRouter\SimpleRouter::start() /twake-core/app/App.php:141"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   4. Pecee\SimpleRouter\Router->start() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/SimpleRouter.php:63"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   5. Pecee\SimpleRouter\Router->routeRequest() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php:331"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   6. Pecee\SimpleRouter\Route\RouteUrl->renderRoute() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php:397"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   7. Pecee\SimpleRouter\ClassLoader\ClassLoader->loadClosure() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Route/Route.php:99"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   8. Common\Routing->Common\{closure:/twake-core/app/Common/Routing.php:60-67}() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/ClassLoader/ClassLoader.php:69"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   9. Twake\Users\Bundle->Common\{closure:/twake-core/app/Common/BaseBundle.php:71-95}() /twake-core/app/Common/Routing.php:62"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  10. Twake\Users\Controller\UsersConnections->currentUser() /twake-core/app/Common/BaseBundle.php:94"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  11. Twake\Workspaces\Services\WorkspaceMembers->getWorkspaces() /twake-core/src/Twake/Users/Controller/UsersConnections.php:150"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  12. Twake\Core\Services\DoctrineAdapter\RepositoryAdapter->findBy() /twake-core/src/Twake/Workspaces/Services/WorkspaceMembers.php:652"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  13. Twake\Core\Services\DoctrineAdapter\RepositoryAdapter->findBy() /twake-core/src/Twake/Core/Services/DoctrineAdapter/RepositoryAdapter.php:247"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  14. Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:178"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  15. Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAll() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:893"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  16. Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAllData() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:153"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  17. Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateRowData() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:69"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  18. Doctrine\ORM\UnitOfWork->createEntity() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:154"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  19. Doctrine\ORM\Proxy\ProxyFactory->getProxy() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2806"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  20. Doctrine\ORM\Proxy\ProxyFactory->getProxyDefinition() /twake-core/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:116"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/twake-core/cache/Doctrine/Proxies/__CG__TwakeWorkspacesEntityWorkspace.php' (include_path='.:/usr/local/lib/php') in /twake-core/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 206"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP Stack trace:"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   1. {main}() /twake-core/web/app.php:0"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   2. App\App->run() /twake-core/web/app.php:26"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   3. Pecee\SimpleRouter\SimpleRouter::start() /twake-core/app/App.php:141"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   4. Pecee\SimpleRouter\Router->start() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/SimpleRouter.php:63"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   5. Pecee\SimpleRouter\Router->routeRequest() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php:331"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   6. Pecee\SimpleRouter\Route\RouteUrl->renderRoute() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php:397"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   7. Pecee\SimpleRouter\ClassLoader\ClassLoader->loadClosure() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Route/Route.php:99"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   8. Common\Routing->Common\{closure:/twake-core/app/Common/Routing.php:60-67}() /twake-core/vendor/pecee/simple-router/src/Pecee/SimpleRouter/ClassLoader/ClassLoader.php:69"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP   9. Twake\Users\Bundle->Common\{closure:/twake-core/app/Common/BaseBundle.php:71-95}() /twake-core/app/Common/Routing.php:62"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  10. Twake\Users\Controller\UsersConnections->currentUser() /twake-core/app/Common/BaseBundle.php:94"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  11. Twake\Workspaces\Services\WorkspaceMembers->getWorkspaces() /twake-core/src/Twake/Users/Controller/UsersConnections.php:150"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  12. Twake\Core\Services\DoctrineAdapter\RepositoryAdapter->findBy() /twake-core/src/Twake/Workspaces/Services/WorkspaceMembers.php:652"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  13. Twake\Core\Services\DoctrineAdapter\RepositoryAdapter->findBy() /twake-core/src/Twake/Core/Services/DoctrineAdapter/RepositoryAdapter.php:247"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  14. Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:178"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  15. Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAll() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:893"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  16. Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateAllData() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:153"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  17. Doctrine\ORM\Internal\Hydration\SimpleObjectHydrator->hydrateRowData() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:69"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  18. Doctrine\ORM\UnitOfWork->createEntity() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:154"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  19. Doctrine\ORM\Proxy\ProxyFactory->getProxy() /twake-core/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2806"
php_1            | [24-Jul-2020 11:41:15] WARNING: [pool www] child 99 said into stderr: "NOTICE: PHP message: PHP  20. Doctrine\ORM\Proxy\ProxyFactory->getProxyDefinition() /twake-core/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:116"
php_1            | 172.18.0.7 -  24/Jul/2020:11:41:15 +0000 "POST /app.php" 200

If you got time to look at it, would be really great. ( Sorry for the spam ) :sweat_smile:

Regards,

Valzul

Hi Valzul,

Also got this error days ago, and Romaric gave me some instructions to fix. Take a look here :

Frontend configuration seemingly ignored

Hope it will help ! :crossed_fingers:

Philippe

1 Like