Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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).
Comment | File | Size | Author |
---|---|---|---|
#22 | conditional_fields-fix_undefined_variable_conditional_fields_form_after_build-1845634-22.patch | 993 bytes | FreekVR |
#21 | undefined_variable-1845634-21.patch | 578 bytes | k.skarlatos |
20131016_063828.jpg | 2.06 MB | mamun ahmed |
Comments
Comment #1
loze CreditAttribution: loze commentedIm getting this error also.
Comment #2
francoud CreditAttribution: francoud commentedMe 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
Comment #3
ellek CreditAttribution: ellek commentedI'm getting this error also. Unfortunately, francoud's suggestion did not work for me. Anyone else find an alternate workaround? Thank you.
Comment #4
kaizerking CreditAttribution: kaizerking commentedI have observed D7 Has some problems with Php 5.4. issues like this have been observed with some other modules as well
Comment #5
Les LimI 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.
Comment #6
A-snowboard CreditAttribution: A-snowboard commentedHello,
the patch does not work for me. I still have the same error.
Comment #7
A-snowboard CreditAttribution: A-snowboard commentedFinally no need to patch.
You must choose the option "disable" and not invisible.
Comment #8
DamienMcKennaThe patch in #5 should fix the problem with the $behavior function not being called correctly.
Comment #9
k.skarlatos CreditAttribution: k.skarlatos commentedpatch #5 works for me too, thanks a lot!
Comment #10
danon1981 CreditAttribution: danon1981 commentedPatch #5 does it's job for me, thanks!!
Comment #11
operations CreditAttribution: operations commented@Les Lim I agree with you about using dynamic variable here and confirm your patch worked for me.
Comment #12
peterpoe CreditAttribution: peterpoe commentedThis bug was fixed in this recent commit. Sorry for the lack of credit: I hadn't seen this issue before.
Comment #15
peterpoe CreditAttribution: peterpoe commentedUh?
Comment #16
DamienMcKennaI've requested the first comment be unpublished: https://drupal.org/node/2139179
Comment #17
peterpoe CreditAttribution: peterpoe commentedfunny pic though :)
Comment #19
super_romeo CreditAttribution: super_romeo commentedHi!
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.
Comment #20
super_romeo CreditAttribution: super_romeo commentedComment #21
k.skarlatos CreditAttribution: k.skarlatos commentedupdated patch for latest dev version
Comment #22
FreekVR CreditAttribution: FreekVR commentedHere's a patch for anyone running 3.0-alpha1
Comment #23
legolasboPatch #22 works like a charm for 3.0-alpha1
Comment #25
peterpoe CreditAttribution: peterpoe commentedThis was fixed in commit 99c5e68