Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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.