Needs review
Project:
Content Construction Kit (CCK)
Version:
6.x-2.7
Component:
content.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2010 at 15:14 UTC
Updated:
6 Aug 2013 at 12:07 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| content.module.patch | 595 bytes | liren.zhu |
Comments
Comment #1
amstel commentedI 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.