When run the test, fatal error appears:

Test: Fatal error: Maximum function nesting level of '400' reached, aborting! in filefield.test on line 12

Comments

 

3 0.6036 34243532 call_user_func_array ( 'system_batch_page', array () )

...

5 0.6044 34328336 _batch_page( )
6 0.6055 34345924 _batch_progress_page_nojs( )
7 7.4109 50178960 _batch_process( array ('sets' => array (0 => array (...)), 'current_set' => 0, 'progressive' => TRUE, 'url' => 'batch', 'source_page' => 'admin/build/testing', 'redirect' => 'admin/build/testing/results/77', 'id' => '64', 'error_message' => 'Please continue to <a href="/batch?id=64&amp;op=finished">the error page</a>', 'running' => TRUE) )
11 11.6966 64281060 FileFieldTestCase->setUp( ) ../drupal_web_test_case.php:427
12 11.6967 64282092 call_user_func_array ( array (0 => class FileFieldDisplayTestCase { protected $admin_user = NULL; protected $url = NULL; protected $curlHandle = NULL; protected $headers = NULL; protected $content = NULL; protected $plainTextContent = NULL; protected $elements = NULL; protected $loggedInUser = FALSE; protected $cookieFile = NULL; protected $additionalCurlOptions = array (...); protected $originalUser = NULL; protected $httpauth_credentials = NULL; protected $session_name = NULL; protected $session_id = NULL; protected $testId = '77'; protected $originalPrefix = NULL; protected $originalFileDirectory = NULL; protected $timeLimit = 180; public $results = array (...); protected $assertions = array (...); protected $skipClasses = array (...) }, 1 => 'parent::setUp'), array (0 => 'content', 1 => 'filefield', 2 => 'filefield_meta', 3 => 'getid3', 4 => 'mimedetect', 5 => 'token', 6 => 'views') ) ../filefield.test:13
13 11.6967 64282552 FileFieldTestCase->setUp( 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views' ) ../filefield.test:0
14 11.6967 64284248 call_user_func_array ( array (0 => class FileFieldDisplayTestCase { protected $admin_user = NULL; protected $url = NULL; protected $curlHandle = NULL; protected $headers = NULL; protected $content = NULL; protected $plainTextContent = NULL; protected $elements = NULL; protected $loggedInUser = FALSE; protected $cookieFile = NULL; protected $additionalCurlOptions = array (...); protected $originalUser = NULL; protected $httpauth_credentials = NULL; protected $session_name = NULL; protected $session_id = NULL; protected $testId = '77'; protected $originalPrefix = NULL; protected $originalFileDirectory = NULL; protected $timeLimit = 180; public $results = array (...); protected $assertions = array (...); protected $skipClasses = array (...) }, 1 => 'parent::setUp'), array (0 => 'content', 1 => 'filefield', 2 => 'filefield_meta', 3 => 'getid3', 4 => 'mimedetect', 5 => 'token', 6 => 'views', 7 => 'content', 8 => 'filefield', 9 => 'filefield_meta', 10 => 'getid3', 11 => 'mimedetect', 12 => 'token', 13 => 'views') ) ../filefield.test:13
15 11.6967 64285076 FileFieldTestCase->setUp( 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views' ) ../filefield.test:0
16 11.6968 64287468 call_user_func_array ( array (0 => class FileFieldDisplayTestCase { protected $admin_user = NULL; protected $url = NULL; protected $curlHandle = NULL; protected $headers = NULL; protected $content = NULL; protected $plainTextContent = NULL; protected $elements = NULL; protected $loggedInUser = FALSE; protected $cookieFile = NULL; protected $additionalCurlOptions = array (...); protected $originalUser = NULL; protected $httpauth_credentials = NULL; protected $session_name = NULL; protected $session_id = NULL; protected $testId = '77'; protected $originalPrefix = NULL; protected $originalFileDirectory = NULL; protected $timeLimit = 180; public $results = array (...); protected $assertions = array (...); protected $skipClasses = array (...) }, 1 => 'parent::setUp'), array (0 => 'content', 1 => 'filefield', 2 => 'filefield_meta', 3 => 'getid3', 4 => 'mimedetect', 5 => 'token', 6 => 'views', 7 => 'content', 8 => 'filefield', 9 => 'filefield_meta', 10 => 'getid3', 11 => 'mimedetect', 12 => 'token', 13 => 'views', 14 => 'content', 15 => 'filefield', 16 => 'filefield_meta', 17 => 'getid3', 18 => 'mimedetect', 19 => 'token', 20 => 'views') ) ../filefield.test:13
17 11.6968 64288696 FileFieldTestCase->setUp( 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views' ) ../filefield.test:0
18 11.6969 64291720 call_user_func_array ( array (0 => class FileFieldDisplayTestCase { protected $admin_user = NULL; protected $url = NULL; protected $curlHandle = NULL; protected $headers = NULL; protected $content = NULL; protected $plainTextContent = NULL; protected $elements = NULL; protected $loggedInUser = FALSE; protected $cookieFile = NULL; protected $additionalCurlOptions = array (...); protected $originalUser = NULL; protected $httpauth_credentials = NULL; protected $session_name = NULL; protected $session_id = NULL; protected $testId = '77'; protected $originalPrefix = NULL; protected $originalFileDirectory = NULL; protected $timeLimit = 180; public $results = array (...); protected $assertions = array (...); protected $skipClasses = array (...) }, 1 => 'parent::setUp'), array (0 => 'content', 1 => 'filefield', 2 => 'filefield_meta', 3 => 'getid3', 4 => 'mimedetect', 5 => 'token', 6 => 'views', 7 => 'content', 8 => 'filefield', 9 => 'filefield_meta', 10 => 'getid3', 11 => 'mimedetect', 12 => 'token', 13 => 'views', 14 => 'content', 15 => 'filefield', 16 => 'filefield_meta', 17 => 'getid3', 18 => 'mimedetect', 19 => 'token', 20 => 'views', 21 => 'content', 22 => 'filefield', 23 => 'filefield_meta', 24 => 'getid3', 25 => 'mimedetect', 26 => 'token', 27 => 'views') ) ../filefield.test:13
44 11.6979 64447644 call_user_func_array ( array (0 => class FileFieldDisplayTestCase { protected $admin_user = NULL; protected $url = NULL; protected $curlHandle = NULL; protected $headers = NULL; protected $content = NULL; protected $plainTextContent = NULL; protected $elements = NULL; protected $loggedInUser = FALSE; protected $cookieFile = NULL; protected $additionalCurlOptions = array (...); protected $originalUser = NULL; protected $httpauth_credentials = NULL; protected $session_name = NULL; protected $session_id = NULL; protected $testId = '77'; protected $originalPrefix = NULL; protected $originalFileDirectory = NULL; protected $timeLimit = 180; public $results = array (...); protected $assertions = array (...); protected $skipClasses = array (...) }, 1 => 'parent::setUp'), array (0 => 'content', 1 => 'filefield', 2 => 'filefield_meta', 3 => 'getid3', 4 => 'mimedetect', 5 => 'token', 6 => 'views', 7 => 'content', 8 => 'filefield', 9 => 'filefield_meta', 10 => 'getid3', 11 => 'mimedetect', 12 => 'token', 13 => 'views', 14 => 'content', 15 => 'filefield', 16 => 'filefield_meta', 17 => 'getid3', 18 => 'mimedetect', 19 => 'token', 20 => 'views', 21 => 'content', 22 => 'filefield', 23 => 'filefield_meta', 24 => 'getid3', 25 => 'mimedetect', 26 => 'token', 27 => 'views', 28 => 'content', 29 => 'filefield', 30 => 'filefield_meta', 31 => 'getid3', 32 => 'mimedetect', 33 => 'token', 34 => 'views', 35 => 'content', 36 => 'filefield', 37 => 'filefield_meta', 38 => 'getid3', 39 => 'mimedetect', 40 => 'token', 41 => 'views', 42 => 'content', 43 => 'filefield', 44 => 'filefield_meta', 45 => 'getid3', 46 => 'mimedetect', 47 => 'token', 48 => 'views', 49 => 'content', 50 => 'filefield', 51 => 'filefield_meta', 52 => 'getid3', 53 => 'mimedetect', 54 => 'token', 55 => 'views', 56 => 'content', 57 => 'filefield', 58 => 'filefield_meta', 59 => 'getid3', 60 => 'mimedetect', 61 => 'token', 62 => 'views', 63 => 'content', 64 => 'filefield', 65 => 'filefield_meta', 66 => 'getid3', 67 => 'mimedetect', 68 => 'token', 69 => 'views', 70 => 'content', 71 => 'filefield', 72 => 'filefield_meta', 73 => 'getid3', 74 => 'mimedetect', 75 => 'token', 76 => 'views', 77 => 'content', 78 => 'filefield', 79 => 'filefield_meta', 80 => 'getid3', 81 => 'mimedetect', 82 => 'token', 83 => 'views', 84 => 'content', 85 => 'filefield', 86 => 'filefield_meta', 87 => 'getid3', 88 => 'mimedetect', 89 => 'token', 90 => 'views', 91 => 'content', 92 => 'filefield', 93 => 'filefield_meta', 94 => 'getid3', 95 => 'mimedetect', 96 => 'token', 97 => 'views', 98 => 'content', 99 => 'filefield', 100 => 'filefield_meta', 101 => 'getid3', 102 => 'mimedetect', 103 => 'token', 104 => 'views', 105 => 'content', 106 => 'filefield', 107 => 'filefield_meta', 108 => 'getid3', 109 => 'mimedetect', 110 => 'token', 111 => 'views', 112 => 'content', 113 => 'filefield', 114 => 'filefield_meta', 115 => 'getid3', 116 => 'mimedetect', 117 => 'token', 118 => 'views') ) ../filefield.test:13
45 11.6980 64453972 FileFieldTestCase->setUp( 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views' ) ../filefield.test:0
296 11.7425 75316672 call_user_func_array ( array (0 => class FileFieldDisplayTestCase { protected $admin_user = NULL; protected $url = NULL; protected $curlHandle = NULL; protected $headers = NULL; protected $content = NULL; protected $plainTextContent = NULL; protected $elements = NULL; protected $loggedInUser = FALSE; protected $cookieFile = NULL; protected $additionalCurlOptions = array (...); protected $originalUser = NULL; protected $httpauth_credentials = NULL; protected $session_name = NULL; protected $session_id = NULL; protected $testId = '77'; protected $originalPrefix = NULL; protected $originalFileDirectory = NULL; protected $timeLimit = 180; public $results = array (...); protected $assertions = array (...); protected $skipClasses = array (...) }, 1 => 'parent::setUp'), array (0 => 'content', 1 => 'filefield', 2 => 'filefield_meta', 3 => 'getid3', 4 => 'mimedetect', 5 => 'token', 6 => 'views', 7 => 'content', 8 => 'filefield', 9 => 'filefield_meta', 10 => 'getid3', 11 => 'mimedetect', 12 => 'token', 13 => 'views', 14 => 'content', 15 => 'filefield', 16 => 'filefield_meta', 17 => 'getid3', 18 => 'mimedetect', 19 => 'token', 20 => 'views', 21 => 'content', 22 => 'filefield', 23 => 'filefield_meta', 24 => 'getid3', 25 => 'mimedetect', 26 => 'token', 27 => 'views', 28 => 'content', 29 => 'filefield', 30 => 'filefield_meta', 31 => 'getid3', 32 => 'mimedetect', 33 => 'token', 34 => 'views', 35 => 'content', 36 => 'filefield', 37 => 'filefield_meta', 38 => 'getid3', 39 => 'mimedetect', 40 => 'token', 41 => 'views', 42 => 'content', 43 => 'filefield', 44 => 'filefield_meta', 45 => 'getid3', 46 => 'mimedetect', 47 => 'token', 48 => 'views', 49 => 'content', 50 => 'filefield', 51 => 'filefield_meta', 52 => 'getid3', 53 => 'mimedetect', 54 => 'token', 55 => 'views', 56 => 'content', 57 => 'filefield', 58 => 'filefield_meta', 59 => 'getid3',..., ..., ...
297 11.7426 75368908 FileFieldTestCase->setUp( 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', 'views', 'content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', ..., ..., ...

 

Status:Active» Postponed (maintainer needs more info)

I cannot reproduce these problems. Tests run fine for me. Do you have all the modules that FileField needs in order to run tests successfully ('content', 'filefield', 'filefield_meta', 'getid3', 'mimedetect', 'token', and 'views')?

Not every:
CCK Content (content) Module Enabled 6.x-2.9
CCK FileField (filefield) Module Enabled 6.x-3.9
CCK FileField Meta (filefield_meta) Module Not installed 6.x-3.9
Features Publisher views features (publisher_views_features) Module Enabled
Other MimeDetect (mimedetect) Module Enabled 6.x-1.3
Other Token (token) Module Enabled 6.x-1.13
Views Views (views) Module Enabled 6.x-3.x-dev
I don't have getid3, which I don't need.

Maybe because I'm using Pressflow.
I've Simpletest module: version = "6.x-2.10"
It happening with some modules as well:
#1107770: Mollom: Maximum function nesting level of '400' reached, aborting! in tests/mollom.test on line 83

Status:Postponed (maintainer needs more info)» Needs review
StatusFileSize
new780 bytes

See solution here:
http://drupal.org/node/1107770#comment-4425060

It happens with PHP 5.3.x.

Find attached patch.
Or there is other solution:
http://drupalcode.org/project/mollom.git/blobdiff/e44ea30d05bd1f33ccb95f...

<?php
-      call_user_func_array(array($this, 'parent::setUp'), $modules);
+     
parent::setUp($modules);
?>

Title:Test: Fatal error: Maximum function nesting level of '400' reached, aborting! in filefield.test on line 12FileField: Test: Fatal error: Maximum function nesting level of '400' reached, aborting! in filefield.test on line 12

Version:6.x-3.5» 6.x-3.x-dev
StatusFileSize
new1.16 KB

Thanks - glad to see other with the same issue - we are using PHP 5.3.10.

Fix in 4 is not quiet right. Amended patch attached which uses the correct syntax. The parent setUp() function is expecting multiple string parameters for each module required, not an array of modules.

Issue already posted for filefield_path module #1502666: FileFieldPathsUploadTestCase Simpletest fails

Error can also show up as:

Fatal error: Maximum function nesting level of '100' reached, aborting!
Fatal error: Allowed memory size of X bytes exhausted

Title:FileField: Test: Fatal error: Maximum function nesting level of '400' reached, aborting! in filefield.test on line 12FileField: Test: Fatal error: Maximum function nesting level of '400' reached, aborting! in filefield.test with PHP 5.3

Thanks @JoeMcGuire, sounds like the syntax for call_user_func_array() must have changed.

Status:Needs review» Reviewed & tested by the community

Priority:Normal» Major
Status:Reviewed & tested by the community» Patch (to be ported)

Status:Patch (to be ported)» Needs review
StatusFileSize
new546 bytes

There is as well second place in the same file.
Patch attached.

This one (ignore the previous one).

Priority:Major» Normal
Status:Needs review» Fixed

Thanks, applied patches and tests are now passing with PHP 5.3.23 (the latest version I have locally).

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.