Hello, i get this notice. I use php 5.4 and latest drupal core and conditional_fields-dev

Notice: Undefined variable: 3 in conditional_fields_form_after_build() (line 595 of /srv/http/epik/sites/all/modules/conditional_fields/conditional_fields.module).

Files: 

Comments

Im getting this error also.

Me too right now. Happens when I defined 2 fields in a profile, and using dependencies to show these fields only in certain conditions. When these fields are not present and are not viewable by the user (due to "field_permissions" settings), I receive the error.

Seems that I've been able to solve:
- UNchecking "reset the dependent to its default values when the form is submitted if the dependency is not triggered." for all these fields
- CHECKing "Hide the dependent if the dependee is not viewable by the user and the dependency is not triggered"
- and also making these fields NOT viewable by the user (using field_permissions module)

Hope this help

I'm getting this error also. Unfortunately, francoud's suggestion did not work for me. Anyone else find an alternate workaround? Thank you.

I have observed D7 Has some problems with Php 5.4. issues like this have been observed with some other modules as well

Status:Active» Needs review
StatusFileSize
new636 bytes

I can't see any reason why the behavior there would be a dynamic variable name. Here's a patch, but the module author should probably weigh in to clarify what the intention was there.

Hello,

the patch does not work for me. I still have the same error.

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

Status:Needs review» Reviewed & tested by the community

The patch in #5 should fix the problem with the $behavior function not being called correctly.

patch #5 works for me too, thanks a lot!

Patch #5 does it's job for me, thanks!!

@Les Lim I agree with you about using dynamic variable here and confirm your patch worked for me.

Issue summary:View changes
Status:Reviewed & tested by the community» Fixed

This bug was fixed in this recent commit. Sorry for the lack of credit: I hadn't seen this issue before.

Status:Active» Fixed

Uh?

I've requested the first comment be unpublished: https://drupal.org/node/2139179

funny pic though :)

Status:Fixed» Closed (fixed)

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

Hi!
When I go to edit node I got error:
Fatal error: Call to undefined function 3() in conditional_fields.module on line 581

I have same things in my website: field_permissions and field_collection.

When I set in field_permissions "can edit" to TRUE - all is OK.

Status:Closed (fixed)» Active

StatusFileSize
new578 bytes

updated patch for latest dev version