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 am seeing the following message in watchdog...
Invalid argument supplied for foreach() in sites/all/modules/dependent/dependent.module on line 262.
This occurs on the add page - http://www.example.com/main/node/add/reviews - where my CCK node type is reviews.
Using Drupal 5.7 with latest version of CCK.
Thanks,
Eric
Comment | File | Size | Author |
---|---|---|---|
#2 | review_CCK.txt | 7.98 KB | aitala |
Comments
Comment #1
Tamar Badichi-Levy CreditAttribution: Tamar Badichi-Levy commentedThank you for your comment.
Can you please export the cck type so I will check it myself?
Ofir.
Comment #2
aitala CreditAttribution: aitala commentedHI,
Here is the export of the CCK in a text file.
I get the message when I go to Home » Administer » Content management » Content types » Reviews
Thanks,
Eric
Comment #3
Tamar Badichi-Levy CreditAttribution: Tamar Badichi-Levy commentedHi,
Sorry for not being around for a while. I successfully imported your content type. However, I did not manage to reproduce your watchdog warning. Can you please specify what are the dependent fields?
Comment #4
aitala CreditAttribution: aitala commentedHi,
Review Type / field_review_type is the the field is the 'parent' field with choices Product, Event, Online Resource, & Other . Any field with event or product in the field name is a dependent field of the obvious parent - field_event_type goes with Event, field_product_type goes with Product, etc....
Note - I did not finish setting up the content type so...
Also I have had issues using the CCK link module as well.... It always appeared on the form not matter which parent was chosen and it caused another dependent field to not appear.
Eric
Comment #5
Tamar Badichi-Levy CreditAttribution: Tamar Badichi-Levy commentedOK,
I have uploaded a new release with fixes for your issues. Now you can also choose a selection field as the parent field (I saw you have several of this type).
Best regards,
Ofir.