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.
conditional_fields.module contains the following lines of code which may cause PHP to issue notices about undefined indexes:
Undefined index: __ in conditional_fields_item_in_form() (line 858 of conditional_fields.module).
Undefined index: __ in conditional_fields_item_in_form() (line 866 of conditional_fields.module).
Undefined index: __ in conditional_fields_node_editing_form_validate() (line 927 of conditional_fields.module).
Undefined index: __ in conditional_fields_node_editing_form_validate() (line 955 of conditional_fields.module).
Comments
Comment #1
pdrake CreditAttribution: pdrake commentedFix for all 4 undefined index notices.
Comment #2
pdrake CreditAttribution: pdrake commentedThe above patch (for 6.x-2.x-dev) does not apply cleanly to 6.x-2.0. This patch is for anyone running 6.x-2.0 and may otherwise be ignored.
Comment #3
pdrake CreditAttribution: pdrake commentedComment #4
emair CreditAttribution: emair commentedI've also experienced this issue and applied the patch from #2 to version 6.x-2.0 which fixed most of the errors. However, not all of them were gone. I've attached another patch which fixes undefined index notices from lines 216, 229 and 230.
Comment #5
flacoman91 CreditAttribution: flacoman91 commentedAny way we can get this rolled into the dev or release version?
Comment #6
peterpoe CreditAttribution: peterpoe as a volunteer commented