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.

CommentFileSizeAuthor
#3 views_contact_form-2877126.diff885 byteskenchoi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

charlya created an issue. See original summary.

charlya’s picture

Title: Notice: Undefined index: emails en views_contact_form_contact_form_submit() » Notice: Undefined index: emails in views_contact_form_contact_form_submit()
Issue summary: View changes
kenchoi’s picture

Hi, 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 into drupal_get_form() (in views/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 and views/views_contact_form_style.inc) , and please can somemore with better knowledge review on this.

kenchoi’s picture

Status: Active » Needs review

I 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.

balajidharma’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » balajidharma

  • balajidharma committed 6d74c04 on 7.x-1.x
    Issue #2877126 by kenchoi, balajidharma: Notice: Undefined index: emails...
balajidharma’s picture

Version: 7.x-1.6 » 7.x-1.x-dev
Status: Needs review » Fixed
balajidharma’s picture

Assigned: balajidharma » Unassigned

Status: Fixed » Closed (fixed)

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