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.
I'll attach a patch to clear the error.
Comment | File | Size | Author |
---|---|---|---|
#1 | webform-notice-undefined-index-1568002-1-d6.patch | 657 bytes | scottalan |
Comments
Comment #1
scottalan CreditAttribution: scottalan commentedFull Notice: Undefined index: in webform_component_include() (line 3318 of /mnt/apci/main/www/sites/all/modules/contrib/webform/webform.module).
patch attached.
Comment #2
quicksketchCould you describe how to reproduce this error?
This patch looks like it would totally break webform. Instead of returning an array of information into the $info variable, you're now returning boolean TRUE or FALSE.
Comment #3
scottalan CreditAttribution: scottalan commentedsorry about that... I reversed the patch and I'm still cleaning up notices in our codebase, so when I see it come across again I'll take a screen shot of what the array structure looks like.
should have been: $info = !empty($components[$component_type]) ? $components[$component_type] : array();
I'll post back when I have more info.
thanks
Comment #4
quicksketchComment #5
quicksketchClosing after lack of activity. Please reopen if you can provide more information on reproducing.