When the contact_cc module is enabled and a personal contact form is sent I get the following error:
Error: Call to a member function getOriginalId() on null in contact_cc_mail_alter()......
Notice: Undefined index: contact_form in contact_cc_mail_alter()......

In contact_cc.module the $formid is fetched from $message['params']['contact_form']->getOriginalId().
But apparently there is not 'contact_form' key in the $message['param's] for the personal contact form.

Comments

Floris Vedder created an issue. See original summary.

floris vedder’s picture

Attached a small patch as a quickfix for the issue.

floris vedder’s picture

Because the 'Send Yourself A Copy' is a standard functionality for the personal form i changed the fix so that also the contact_user_copy form is excluded.

  • arbee committed 5cdff38 on 8.x-1.x
    Issue #3023611 by floris-vedder: Floris' patch to check for personal...
arbee’s picture

Floris, thank you for pointing this out.
I have applied your patch to the 8.x-1.x dev branch. If you have an opportunity to try out the dev branch and see if it works for you please do so and let me know. I will roll this into a new release soon.

arbee’s picture

Status: Active » Fixed

Created a new release, your patch is included in 8.x-1.4. Thanks again.

arbee’s picture

Status: Fixed » Closed (fixed)
floris vedder’s picture

@Arbee,

Thank you for applying the patch !