Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
6.x-0.13
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2008 at 21:05 UTC
Updated:
26 Apr 2010 at 05:29 UTC
I'm getting this error on a first-time install of contemplate:
* While traversing node variables your recursion limit of 10 was hit 117 times
* warning: array_unique() [function.array-unique]: The argument should be an array in /path_to/sites/all/modules/contemplate/contemplate.module on line 407.
* warning: Invalid argument supplied for foreach() in /path_to/includes/common.inc on line 1489.
I'm now familiar with the issue in #230885: CCK activates triggers Fatal error; my concern is the two warnings. Shouldn't line 407 read:
$_contemplate_fids = drupal_map_assoc(array_unique($_contemplate_fids));
Making it so removes the warnings (although not the error). If it makes any difference, I've got 2 CCK fields, an ImageField and a text field, and I'm not using the body. D6.3, CCK 6.x-2.0-rc4, Content Template 6.x-0.13.
Comments
Comment #1
RKC commentedI too am facing the problem, could you solve the warnings??
Comment #2
mrtoner commentedAs I showed above, making that change removed the warnings, but the "While traversing node variables your recursion limit of 10 was hit 117 times" remains.
Comment #3
eric.chenchao commentedThank you for your hint and I have resolved warnings:)
As for recursion problem, you can check option 'Remove $node->content from variable list.' in the admin/settings/contemplate page
Comment #4
mrtoner commentedOr if you've got lots of memory allocated to PHP you can bump up the recursion limit. :-)
Comment #5
rimma commentedI have the same issue. Could you tell us how do you fix it? Thanks.
Comment #6
mrtoner commentedIf you folks will simply read the messages above, you'll have all the information you need to fix the errors/notices. Of course, disabling and uninstalling the module works, too.
Comment #7
junro commentedsince, $_contemplate_fids = drupal_map_assoc(array_unique($_contemplate_fids)); has been added.