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

RKC’s picture

I too am facing the problem, could you solve the warnings??

mrtoner’s picture

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.

eric.chenchao’s picture

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

mrtoner’s picture

Or if you've got lots of memory allocated to PHP you can bump up the recursion limit. :-)

rimma’s picture

I have the same issue. Could you tell us how do you fix it? Thanks.

mrtoner’s picture

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.

junro’s picture

Status: Active » Closed (fixed)

since, $_contemplate_fids = drupal_map_assoc(array_unique($_contemplate_fids)); has been added.