I've randomly seen this happen when updating existing features with taxonomy terms and menus.
Something happens in the feature build that causes the first item to be repeated with a nested array key of "parents", and then continually rebuilds the item over and over in a more deeply nested array until the recursion depth error is hit. Locks up the feature to where it no longer can be viewed or recreated.
See the sample code below generated by Features:
$terms[] = array(
'name' => 'Site Feedback & Comments',
'description' => '',
'format' => NULL,
'weight' => 5,
'uuid' => '935512a0-0d75-4d59-a6a7-5dedd2aab5cd',
'vocabulary_machine_name' => 'forums',
'name_field' => array(
'und' => array(
0 => array(
'value' => 'Site Feedback & Comments',
'format' => NULL,
),
),
),
'parents' => array(
0 => array(
'tid' => 799,
'vid' => 14,
'name' => 'Site Feedback & Comments',
'description' => '',
'format' => NULL,
'weight' => 5,
'uuid' => '935512a0-0d75-4d59-a6a7-5dedd2aab5cd',
'vocabulary_machine_name' => 'forums',
'name_field' => array(
'und' => array(
0 => array(
'value' => 'Site Feedback & Comments',
'format' => NULL,
'safe_value' => 'Site Feedback & Comments',
),
),
),
'name_original' => 'Site Feedback & Comments',
'_drafty_revision_requested' => 'FIELD_LOAD_CURRENT',
'parents' => array(
0 => array(
'tid' => 799,
'vid' => 14,
'name' => 'Site Feedback & Comments',
'description' => '',
'format' => NULL,
'weight' => 5,
'uuid' => '935512a0-0d75-4d59-a6a7-5dedd2aab5cd',
....
And this goes on and on and on... each layer nested more deeply.
If I then edit the features code and remove all the bad nested arrays created by Features, I'm able to view and edit the feature through the UI again with no problem. Also if I re-save at this point, everything is fine with the code generated by Features.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | uuid_features-entity_uuid_load_reset_true-2999481-8.patch | 5.59 KB | sgdev |
Comments
Comment #2
sgdev commentedMoving this to UUID Features because I believe the issue is in there. We're seeing this come up more frequently.
Comment #3
sgdev commentedI should also note this error is occurring when we have made no changes to Terms settings in the Feature.
UUID Features is rebuilding the array included in the generated
features.uuid_term.incfile even though nothing has been modified.Comment #4
sgdev commentedI found the problem.
The module has many calls to
entity_uuid_load. Some of them have$reset = TRUE, and others do not. uuid_terms is one of them with$reset = FALSE. Having$reset = FALSEis causing a recursion depth error.I've reviewed the entire module and created a patch that updates each location where
entity_uuid_loadis set with$reset = FALSEto ensure$reset = TRUE. Now it is consistent throughout.Please review, this is a rather serious issue. Thanks.
Comment #6
sgdev commentedAh frustrating... it's not going to accept my patch without cleaning up pre-existing coding standards issues. Here is a new version that takes care of those too.
Comment #7
sgdev commentedComment #9
sgdev commentedOk, trying one last time. Another coding standard issue that has nothing to do with this patch. See attached.
Comment #11
sgdev commentedThis patch is fine but it keeps failing testing. Setting to needs review.
Someone needs to create a comprehensive patch that fixes all UUID Features coding standards problems so these tests stop failing. Feel free to use patch #4 if the coding standards are fixed separately.
Comment #13
das-peter commentedThanks for the patch! Comitted & pushed.