warning: Invalid argument supplied for foreach() in conditional_fields.module on line 166.

Displayed on nodes where non-mandatory conditional fields are left blank.

CommentFileSizeAuthor
#5 conditional_fields_bug290801.patch948 bytespeterpoe

Comments

neruda001’s picture

if this is a bug, in the meanwhile we wait for a fix, how can we exclude this error?

dear ulfk, can you explain more deeply wich is the cause of the error, please?

thanks

n.

kulfi’s picture

This error is displayed if I leave a conditional field (which is not mandatory) blank.

neruda001’s picture

Ok, then, If I check those fields as "required" it will not catch the error?

ianchan’s picture

Also receiving this error... subscribing.

peterpoe’s picture

Version: 5.x-2.x-dev » 5.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new948 bytes

Was a problem with empty text fields not having values. Patch attached. Please test, thanks.

peterpoe’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

A-snowboard’s picture

Bonjour,

(sorry I'm french and google translate is my friend)

Some years later, on drupal 7 the problem is still there.
I have two fields that appear based on the previous value.
If they are not met, I can still make the comment but I have the following error message:

Notice : Undefined property: stdClass::$field_image_url dans _linkchecker_parse_fields() (ligne 1541 dans /srv/data/web/vhosts/c505f38e7f.url-de-test.ws/htdocs/sites/all/modules/linkchecker/linkchecker.module).

By cons, if the previous field is not one of the values ​​desired, the two fields do not appear. In fact the error is twofold.

At the moment this module is for required fields. Pending a patch or update module.

A-snowboard’s picture

Finally no need to patch.
You must choose the option "disable" and not invisible.