Not an array
mrtoner - August 1, 2008 - 21:05
| Project: | Content Templates (Contemplate) |
| Version: | 6.x-0.13 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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.

#1
I too am facing the problem, could you solve the warnings??
#2
As 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.
#3
Thank 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
#4
Or if you've got lots of memory allocated to PHP you can bump up the recursion limit. :-)
#5
I have the same issue. Could you tell us how do you fix it? Thanks.
#6
If 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.