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.
Hi there, I have this problem with this module when click send.
Notice: Undefined index: emails in views_contact_form_contact_form_submit() (line 105 of /home/domain_example.com/public_html/sites/all/modules/views_contact_form/views_contact_form.form.inc).
Warning: Invalid argument supplied for foreach() in views_contact_form_contact_form_submit() (line 105 of /home/domain_example.com/public_html/sites/all/modules/views_contact_form/views_contact_form.form.inc).
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#3 | views_contact_form-2877126.diff | 885 bytes | kenchoi |
Comments
Comment #2
charlya CreditAttribution: charlya commentedComment #3
kenchoi CreditAttribution: kenchoi commentedHi, I can confirm I have this problem too, and because of this bug, the contact form email was actually not triggered.
I have checked the difference between version 7.x-1.5, and 7.x-1.6, and spotted that the structure of
$data
being passed intodrupal_get_form()
(inviews/views_contact_form_handler.inc
) are different.As I am not an experienced drupal projects contributer, I am not sure what the proper fix should be; I've attached the diff file in my local patch (derived from similar sections in
views_contact_form.module
andviews/views_contact_form_style.inc
) , and please can somemore with better knowledge review on this.Comment #4
kenchoi CreditAttribution: kenchoi commentedI believe the bug priority should be changed to Major, as the it doesn't do what was intended (i.e. send the contact email out).
But I will leave it for the others to confirm if they are affected in the same way, and if so, please change the priority accordingly.
Comment #5
balajidharmaComment #7
balajidharmaComment #8
balajidharma