I'm using Subscriptions and Node Relationships module alongside CCK. When subscribing to a content with a node relationship, the subscriptions_mail cron will throw the following error:

Invalid argument supplied for foreach() in /home/compal/public_html/sites/all/modules/cck/content.module on line 1829.

It complains that the $items variable on line 1829 is null. I wrapped the foreach loop with a if-statement to check the validity of $items before jumping into the loop. Everything is working so far, and I don't foresee this implicating any other aspects of CCK.

See attached patch.

CommentFileSizeAuthor
content.module.patch595 bytesliren.zhu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amstel’s picture

I had the same problem and the patch above worked for me. I just had to change the path to /profiles/openatrium/modules/contrib/cck/ since I have an Open Atrium distro.