Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin panel content edit fails (FatalErrorException) #404

Open
drdokk opened this issue Feb 27, 2018 · 3 comments
Open

Admin panel content edit fails (FatalErrorException) #404

drdokk opened this issue Feb 27, 2018 · 3 comments

Comments

@drdokk
Copy link

drdokk commented Feb 27, 2018

image

I get error when I try to edit any content,

image

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
`
@dbu
Copy link
Member

dbu commented Feb 27, 2018

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?

@drdokk
Copy link
Author

drdokk commented Feb 28, 2018

Looks like it's infinite loop, it reaches 1000. I lso tried with higher value (2000) which makes apache crash and keeps restarting.

@dbu
Copy link
Member

dbu commented Feb 28, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants