Watchdog message

aitala - May 13, 2008 - 03:05
Project:Dependent Fields
Version:5.x-1.3-beta
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

levyofi - May 14, 2008 - 18:51

Thank you for your comment.

Can you please export the cck type so I will check it myself?

Ofir.

#2

aitala - May 14, 2008 - 19:11

HI,

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

AttachmentSize
review_CCK.txt 7.98 KB

#3

levyofi - May 24, 2008 - 10:27

Hi,
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?

#4

aitala - May 24, 2008 - 15:35

Hi,

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

#5

levyofi - May 31, 2008 - 18:06

OK,

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.

 
 

Drupal is a registered trademark of Dries Buytaert.