After enabling the Tracker, displaying a node (e.g. an article-node) results in the fatal error (nesting level) shown below. Tested with the most current D8.x-dev version from today!

Fatal error: Maximum function nesting level of '100' reached, aborting! in drupal8/core/lib/Drupal/Core/Database/Query/Query.php on line 126 Call Stack: 0.0001 329644 1. {main}() drupal8/index.php:0 0.0089 509092 2. drupal_handle_request() drupal8/index.php:15 0.2484 2363872 3. Drupal\Core\DrupalKernel->handle() drupal8/core/includes/bootstrap.inc:1886 0.2530 2425708 4. Drupal\Core\HttpKernel->handle() drupal8/core/lib/Drupal/Core/DrupalKernel.php:282 0.2534 2426516 5. Symfony\Component\HttpKernel\HttpKernel->handle() drupal8/core/lib/Drupal/Core/HttpKernel.php:52 0.2539 2426516 6. Symfony\Component\HttpKernel\HttpKernel->handleRaw() drupal8/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:61 2.9673 8193352 7. call_user_func_array() drupal8/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:117 2.9673 8193668 8. Drupal\Core\Controller\HtmlPageController->content() drupal8/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:0 4.1527 10047032 9. drupal_render_page() drupal8/core/lib/Drupal/Core/Controller/HtmlPageController.php:100 4.7334 12742256 10. drupal_render() drupal8/core/includes/common.inc:3634 4.7336 12744460 11. theme() drupal8/core/includes/common.inc:3842 6.7644 19385252 12. twig_render_template() drupal8/core/includes/theme.inc:737 7.1845 22889204 13. Twig_Template->render() drupal8/core/themes/engines/twig/twig.engine:54 7.1845 22930648 14. Twig_Template->display() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:249 7.1846 22930976 15. Twig_Template->displayWithErrorHandling() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:238 7.1846 22930976 16. __TwigTemplate_48e40678b5eb34eeec2544a5b3afdf6d->doDisplay() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:264 7.2543 23156168 17. twig_render_var() drupal8/sites/blooniverse.com/files/php/twig/1#48#e4#0678b5eb34eeec2544a5b3afdf6d.php/2f3a09773a63829323ea75bc51fc42f06b45092a90d43f4f5d74ac6365bd49d9.php:272 7.2543 23156168 18. render() drupal8/core/themes/engines/twig/twig.engine:130 7.2543 23156280 19. drupal_render() drupal8/core/includes/common.inc:3999 7.2544 23157380 20. drupal_render() drupal8/core/includes/common.inc:3855 7.2544 23158456 21. theme() drupal8/core/includes/common.inc:3842 7.2553 23165928 22. twig_render_template() drupal8/core/includes/theme.inc:737 7.2554 23168136 23. Twig_Template->render() drupal8/core/themes/engines/twig/twig.engine:54 7.2554 23209288 24. Twig_Template->display() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:249 7.2555 23209452 25. Twig_Template->displayWithErrorHandling() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:238 7.2555 23209452 26. __TwigTemplate_311d19b6c9dc643bb9707c55f1656b1d->doDisplay() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:264 7.2557 23212292 27. twig_render_var() drupal8/sites/blooniverse.com/files/php/twig/1#31#1d#19b6c9dc643bb9707c55f1656b1d.php/01014051e3768a37cfbbab0e36ad9dc7800953165cb9dbb43ade685c73588fd7.php:49 7.2558 23212292 28. render() drupal8/core/themes/engines/twig/twig.engine:130 7.2558 23212404 29. drupal_render() drupal8/core/includes/common.inc:3999 7.2558 23213320 30. drupal_render() drupal8/core/includes/common.inc:3855 7.2559 23215076 31. drupal_render() drupal8/core/includes/common.inc:3855 7.2561 23217388 32. theme() drupal8/core/includes/common.inc:3842 7.6559 23716384 33. twig_render_template() drupal8/core/includes/theme.inc:737 7.8013 23500488 34. Twig_Template->render() drupal8/core/themes/engines/twig/twig.engine:54 7.8014 23541640 35. Twig_Template->display() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:249 7.8014 23541804 36. Twig_Template->displayWithErrorHandling() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:238 7.8014 23541804 37. __TwigTemplate_f682df03dd2d2492f46f9b4b1dd648f0->doDisplay() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:264 7.8713 23576884 38. twig_render_var() drupal8/sites/blooniverse.com/files/php/twig/1#f6#82#df03dd2d2492f46f9b4b1dd648f0.php/460b60616fe66ad435ad2d37d204df4c310ad8aa7ff96e557244540e7344cd52.php:84 7.8714 23576884 39. render() drupal8/core/themes/engines/twig/twig.engine:130 7.8714 23576996 40. drupal_render() drupal8/core/includes/common.inc:3999 7.8760 23583888 41. drupal_render() drupal8/core/includes/common.inc:3855 7.8763 23585924 42. theme() drupal8/core/includes/common.inc:3842 7.8781 23594084 43. theme_field() drupal8/core/includes/theme.inc:671 7.8781 23594880 44. drupal_render() drupal8/core/modules/field/field.module:682 7.8783 23596148 45. theme() drupal8/core/includes/common.inc:3842 7.8825 23602604 46. twig_render_template() drupal8/core/includes/theme.inc:737 7.9736 23692784 47. Twig_Template->render() drupal8/core/themes/engines/twig/twig.engine:54 7.9736 23733936 48. Twig_Template->display() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:249 7.9736 23734100 49. Twig_Template->displayWithErrorHandling() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:238 7.9737 23734100 50. __TwigTemplate_c89e729e433357a599e190c8ada26991->doDisplay() drupal8/core/vendor/twig/twig/lib/Twig/Template.php:264 7.9785 23738576 51. twig_render_var() drupal8/sites/blooniverse.com/files/php/twig/1#c8#9e#729e433357a599e190c8ada26991.php/c15300c1d81bd08df85d587652889c9283a9fa82fed65207a7545a98c63e608e.php:58 7.9786 23738576 52. render() drupal8/core/themes/engines/twig/twig.engine:130 7.9786 23738688 53. drupal_render() drupal8/core/includes/common.inc:3999 7.9789 23740508 54. _drupal_render_process_post_render_cache() drupal8/core/includes/common.inc:3944 7.9789 23742340 55. call_user_func_array() drupal8/core/includes/common.inc:4234 7.9790 23742368 56. Drupal\comment\Plugin\Field\FieldFormatter\CommentDefaultFormatter::renderForm() drupal8/core/includes/common.inc:0 7.9795 23742412 57. comment_add() drupal8/core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php:197 8.1416 24100540 58. Drupal\Core\Entity\EntityManager->getForm() drupal8/core/modules/comment/comment.module:588 8.1460 24429036 59. drupal_build_form() drupal8/core/lib/Drupal/Core/Entity/EntityManager.php:295 8.1461 24429036 60. Drupal\Core\Form\FormBuilder->buildForm() drupal8/core/includes/form.inc:121 8.1461 24431464 61. Drupal\Core\Form\FormBuilder->retrieveForm() drupal8/core/lib/Drupal/Core/Form/FormBuilder.php:231 8.1465 24433376 62. call_user_func_array() drupal8/core/lib/Drupal/Core/Form/FormBuilder.php:556 8.1465 24433692 63. Drupal\Core\Entity\EntityFormController->buildForm() drupal8/core/lib/Drupal/Core/Form/FormBuilder.php:0 8.1764 24521048 64. Drupal\comment\CommentFormController->form() drupal8/core/lib/Drupal/Core/Entity/EntityFormController.php:96 8.2125 24579788 65. Drupal\Core\Entity\ContentEntityFormController->form() drupal8/core/modules/comment/lib/Drupal/comment/CommentFormController.php:225 8.2127 24580936 66. field_attach_form() drupal8/core/lib/Drupal/Core/Entity/ContentEntityFormController.php:55 8.2127 24581948 67. field_invoke_method() drupal8/core/modules/field/field.deprecated.inc:553 8.2941 24644928 68. call_user_func() drupal8/core/modules/field/field.attach.inc:96 8.2941 24644956 69. {closure}() drupal8/core/modules/field/field.attach.inc:0 8.2942 24644956 70. Drupal\entity\Entity\EntityFormDisplay->getRenderer() drupal8/core/modules/field/field.attach.inc:262 8.3104 24700064 71. Drupal\Core\Field\WidgetPluginManager->getInstance() drupal8/core/modules/entity/lib/Drupal/entity/Entity/EntityFormDisplay.php:59 8.3104 24700520 72. Drupal\Core\Plugin\DefaultPluginManager->getDefinition() drupal8/core/lib/Drupal/Core/Field/WidgetPluginManager.php:102 8.3105 24700520 73. Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() drupal8/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:159 8.3116 24700520 74. Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() drupal8/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:174 8.3116 24700520 75. Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() drupal8/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php:237 8.3116 24700520 76. Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery->getDefinitions() drupal8/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php:64 8.3117 24700520 77. Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery->getDefinitions() drupal8/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php:75 8.3128 24737392 78. Doctrine\Common\Annotations\SimpleAnnotationReader->getClassAnnotation() drupal8/core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php:118 8.3128 24737392 79. Doctrine\Common\Annotations\SimpleAnnotationReader->getClassAnnotations() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php:112 8.3142 24739176 80. Doctrine\Common\Annotations\DocParser->parse() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php:72 8.3149 24751736 81. Doctrine\Common\Annotations\DocParser->Annotations() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:316 8.3149 24751944 82. Doctrine\Common\Annotations\DocParser->Annotation() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:574 8.3167 24760532 83. Doctrine\Common\Annotations\DocParser->MethodCall() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:674 8.3168 24760696 84. Doctrine\Common\Annotations\DocParser->Values() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:763 8.3171 24761252 85. Doctrine\Common\Annotations\DocParser->Value() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:797 8.3171 24761252 86. Doctrine\Common\Annotations\DocParser->FieldAssignment() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:920 8.3172 24761880 87. Doctrine\Common\Annotations\DocParser->PlainValue() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:990 8.3172 24761880 88. Doctrine\Common\Annotations\DocParser->Annotation() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:938 8.3178 24762988 89. Drupal\Core\Annotation\Translation->__construct() drupal8/core/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:724 8.3179 24763316 90. t() drupal8/core/lib/Drupal/Core/Annotation/Translation.php:76 8.3179 24763316 91. Drupal\Core\StringTranslation\TranslationManager->translate() drupal8/core/includes/bootstrap.inc:1363 8.3180 24763688 92. Drupal\Core\StringTranslation\TranslationManager->getStringTranslation() drupal8/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:118 8.3180 24763732 93. Drupal\locale\LocaleTranslation->getStringTranslation() drupal8/core/lib/Drupal/Core/StringTranslation/TranslationManager.php:98 8.3181 24763776 94. Drupal\Core\Cache\CacheCollector->get() drupal8/core/modules/locale/lib/Drupal/locale/LocaleTranslation.php:98 8.3182 24763776 95. Drupal\locale\LocaleLookup->resolveCacheMiss() drupal8/core/lib/Drupal/Core/Cache/CacheCollector.php:141 8.3182 24764144 96. Drupal\locale\StringDatabaseStorage->findTranslation() drupal8/core/modules/locale/lib/Drupal/locale/LocaleLookup.php:90 8.3182 24764424 97. Drupal\locale\StringDatabaseStorage->dbStringSelect() drupal8/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php:80 8.3182 24764580 98. Drupal\Core\Database\Connection->select() drupal8/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php:358 8.3182 24766264 99. Drupal\Core\Database\Query\Select->__construct() drupal8/core/lib/Drupal/Core/Database/Connection.php:670 

Comments

tim.plunkett’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I cannot reproduce. Can you provide step by step instructions?

Blooniverse’s picture

Tim, the error happens straight after enabling the module. But -- as I have found out in the meantime -- not only after enabling this particular module.
It happens too after changing a node type and wanting to display an old/existing content of this [changed] node type. E.g. this was the case after deleting a taxonomy reference field and adding a new one. My intuition is telling me, vaguely, that this has something to do with content translation, since I've had a lot of errors in the last days in relation to it.

tim.plunkett’s picture

You didn't mention content_translation before.
Without step-by-step instructions, starting with a fresh install, this will be impossible to reproduce.

Blooniverse’s picture

Aye, it is a very rudimentary issue explanation, I admit.

Well, in the meantime I get the error as well after flushing the caches (all). Let me perform some tests with a fresh D8 installation, maybe I can narrow down or even identify the cause of this nasty, nasty, nasty thing.

Blooniverse’s picture

Okäy: I've tested all imaginable possibilities with a new D8 installation, but I couldn't reproduce the error either! However, as soon as I translate a field the horrors start in uncountable ways (various errors, complete site crash).

I am quite sure that this error is actually one of the component Language System, but I cannot directly proof it yet.

Blooniverse’s picture

Issue tags: +language-config

Tagging with language-config.

larowlan’s picture

I don't see a repeating pattern in that trace can you disable xdebug and see if the page renders fine. If it does, you need to update your xdebug settings

Blooniverse’s picture

Title: After enabling the Tracker, displaying a node results in fatal error (nesting level) » Fatal error (maximum nesting level of '100' reached): After flushing caches or enabling tracker.module

Changing the title.
Still get the error. Will provide more in-depth insight from testing later.

berdir’s picture

This is a xdebug specific setting, which defaults to 100. This can be too low, also on big 7.x sites. I don't think there's anything we can do.

jhedstrom’s picture

I've been seeing this a lot on osx. Usually an apache restart fixes it. Bumping the xdebug nesting level to 200 definitely fixes it. In xdebug.ini:

[xdebug]
xdebug.max_nesting_level=200
elijah lynn’s picture

sutharsan’s picture

I ran into this with a clean install (standard install profile) when adding a node (/node/add/article).
I can confirm Berdir's (#9) and jhedstrom's (#10) comments that it is due to an xdebug setting. Raising 'xdebug.max_nesting_level ' to 250 and restarting apache fixed it for me.

sutharsan’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I take the liberty to close the issue, as the solutions all point in the same direction.
@the_phi, if you feel this issue is not closed to you, feel free to re-open.

Mark_L6n’s picture

Thanks for the info. I corrected this using the .htaccess file. In the section:

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
   ....
   ....
</IfModule>

add:
php_value xdebug.max_nesting_level 200