php Drupal 中达到最大函数嵌套级别错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5103182/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 16:49:18  来源:igfitidea点击:

Maximum function nesting level reached error in Drupal

phpdrupaldrupal-6civicrm

提问by DEVOPS

I am working with Civicrm with Drupal. I created one custom import section. Whenever I submit mapped form it shows this kind of an error:

我正在使用 Drupal 与 Civicrm 合作。我创建了一个自定义导入部分。每当我提交映射表单时,它都会显示这种错误:

Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\wamp\www\crmdev\includes\common.inc on line 290

致命错误:达到“100”的最大函数嵌套级别,正在中止!在 C:\wamp\www\crmdev\includes\common.inc 中的第 290 行

How can I fix this, and how to reset the nesting level?

我该如何解决这个问题,以及如何重置嵌套级别?

回答by azat

If you are using xdebug extension
You can do this ini_set('xdebug.max_nesting_level', 200)

如果您使用的是 xdebug 扩展,
您可以这样做ini_set('xdebug.max_nesting_level', 200)

xdebug.max_nesting_level

xdebug.max_nesting_level

回答by TML

Your code almost certainly has a bottomless recursion, but it's difficult to be sure without seeing the code.

您的代码几乎可以肯定具有无底递归,但是如果不查看代码就很难确定。

回答by yent

Max nesting level is typically set by zend/xDebug, if infinite recursion occurs without those you will get a segfault instead, you should focus on fixing that infinite recursion instead ...

最大嵌套级别通常由 zend/xDebug 设置,如果在没有这些的情况下发生无限递归,您将获得段错误,您应该专注于修复该无限递归......