Admin panel content edit fails (FatalErrorException)
drdokk opened this issue · 3 comments
I get error when I try to edit any content,
PHP Error stack trace :
`[27-Feb-2018 15:46:06 UTC] PHP Fatal error: Maximum function nesting level of '256' reached, aborting! in C:\wamp64\www\symfony-cmf-sandbox\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php on line 369
[27-Feb-2018 15:46:06 UTC] PHP Stack trace:
[27-Feb-2018 15:46:06 UTC] PHP 1. {main}() C:\wamp64\www\symfony-cmf-sandbox\web\app_dev.php:0
[27-Feb-2018 15:46:06 UTC] PHP 2. AppKernel->handle() C:\wamp64\www\symfony-cmf-sandbox\web\app_dev.php:39
[27-Feb-2018 15:46:06 UTC] PHP 3. Symfony\Component\HttpKernel\HttpKernel->handle() C:\wamp64\www\symfony-cmf-sandbox\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php:169
[27-Feb-2018 15:46:06 UTC] PHP 4. Symfony\Component\HttpKernel\HttpKernel->handleRaw() C:\wamp64\www\symfony-cmf-sandbox\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:68
[27-Feb-2018 15:46:06 UTC] PHP 5. call_user_func_array:{C:\wamp64\www\symfony-cmf-sandbox\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:153}() C:\wamp64\www\symfony-cmf-sandbox\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:153
[27-Feb-2018 15:46:06 UTC] PHP 6. Sonata\AdminBundle\Controller\CRUDController->editAction() C:\wamp64\www\symfony-cmf-sandbox\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php:153
[27-Feb-2018 15:46:06 UTC] PHP 7. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->getObject() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\admin-bundle\src\Controller\CRUDController.php:303
[27-Feb-2018 15:46:06 UTC] PHP 8. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->getClass() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\admin-bundle\src\Admin\AbstractAdmin.php:1336
[27-Feb-2018 15:46:06 UTC] PHP 9. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->hasSubject() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\admin-bundle\src\Admin\AbstractAdmin.php:988
[27-Feb-2018 15:46:06 UTC] PHP 10. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->getSubject() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\admin-bundle\src\Admin\AbstractAdmin.php:1711
[27-Feb-2018 15:46:06 UTC] PHP 11. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->getClass() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\doctrine-phpcr-admin-bundle\src\Admin\Admin.php:101
[...]
[27-Feb-2018 15:46:07 UTC] PHP 251. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->getClass() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\doctrine-phpcr-admin-bundle\src\Admin\Admin.php:101
[27-Feb-2018 15:46:07 UTC] PHP 252. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->hasSubject() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\admin-bundle\src\Admin\AbstractAdmin.php:988
[27-Feb-2018 15:46:07 UTC] PHP 253. Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Admin\Content\StaticContentAdmin->getSubject() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\admin-bundle\src\Admin\AbstractAdmin.php:1711
[27-Feb-2018 15:46:07 UTC] PHP 254. PHPCR\Util\PathHelper::absolutizePath() C:\wamp64\www\symfony-cmf-sandbox\vendor\sonata-project\doctrine-phpcr-admin-bundle\src\Admin\Admin.php:99
[27-Feb-2018 15:46:07 UTC] PHP 255. PHPCR\Util\PathHelper::normalizePath() C:\wamp64\www\symfony-cmf-sandbox\vendor\phpcr\phpcr-utils\src\PHPCR\Util\PathHelper.php:210
[27-Feb-2018 15:46:07 UTC] PHP 256. PHPCR\Util\PathHelper::assertValidAbsolutePath() C:\wamp64\www\symfony-cmf-sandbox\vendor\phpcr\phpcr-utils\src\PHPCR\Util\PathHelper.php:170
`
are you sure this is an actual endless loop and not a too strict setting of xdebug? can you try allowing a nesting level of 1000 or so to see if it goes away?
Looks like it's infinite loop, it reaches 1000. I lso tried with higher value (2000) which makes apache crash and keeps restarting.
alright, that sounds like infinity :-(
looking at the line numbers and https://github.com/phpcr/phpcr-utils/blob/master/src/PHPCR/Util/PathHelper.php i guess you do not have the exact same version of phpcr-utils. can you check in that file at the lines indicated if you can spot what is looping here? assertValidAbsolutePath
looks to me like it would not call anything else, so i wonder where the loop happens.