Problem/Motivation

Since february 27th, my client's website's email sent via webforms stopped displaying the submission content. Where the email content used to be displayed, I now have no content.

When I checked the email template in the module's parameters, I noticed the tokens I used are no longer listed in the available token popin. There isn't any submission token available, so I don't have any solution to display my form's content.

I haven't done any change on this at that date that could have created the issue, and I found a post from someone else with the same issue posted a month ago. It looks like a bug to me, which is why I created this issue. EDIT: Related post link.

Steps to reproduce

  1. Create a webform.
  2. Configure it to send email.
  3. On the "Webform" / "courriels" tab, add an email address.
  4. In this address preferences, in "E-mail template", select "default template".
  5. Use the form to send an email
  6. Check the received email: It doesn't display the submission informations (date, fields content, link)
CommentFileSizeAuthor
image (2).png14.35 KBmarion_vlt
image (1).png57.19 KBmarion_vlt
image.png39.78 KBmarion_vlt

Comments

marion_vlt created an issue. See original summary.

marion_vlt’s picture

Title: Submissions token disappeared and stopped working » Submission tokens disappeared and stopped working
cilefen’s picture

You found a post from someone else with the same issue posted a month ago. Would you please share a link to that?

marion_vlt’s picture

Issue summary: View changes
marion_vlt’s picture

Hi, thank you for your comment. I edited the issue with the link to the post.

marion_vlt’s picture

Issue summary: View changes
marion_vlt’s picture

Up, anyone?

alison’s picture

Any chance you also have webform_rules and/or Commerce (and/or commerce_webform?) -- I started having issues with missing submission IDs, but I have all of these modules ^^

And, do you see anything in "Recent log messages" when you submit the form?

I recently updated webform 7.x-4.25 => 7.x-4.26, and webform_rules 7.x-1.6 => 7.x-1.7. After these updates, my rules that add products to the shopping cart don't work, *and* watchdog/dblog/"Recent log messages" shows notices and a warning that indicate that the submission ID is missing. (I have no recent updates to Commerce or Commerce Webform.)

I tried downgrading webform to 7.x-4.25, and it didn't help, my shopping cart was still broken.
I tried downgrading webform_rules to 7.x-1.6, and (after clearing cache), the problems went away, my shopping cart works again (phew).

So, I'm leaving it at that -- idk if this will help, but, sharing just in case!

-------

P.S. The dblog messages I got:

Notice: Undefined index: components in commerce_webform_get_products_from_webform_submission() (line 283 of /path/to/mysite/sites/all/modules/commerce_webform/commerce_webform.module).

Warning: Invalid argument supplied for foreach() in commerce_webform_get_products_from_webform_submission() (line 285 of /path/to/mysite/sites/all/modules/commerce_webform/commerce_webform.module).

Notice: Undefined index: sid in commerce_webform_order_create() (line 166 of /path/to/mysite/sites/all/modules/commerce_webform/commerce_webform.rules.inc).

P.P.S. I'm cross-posting this update on #3424382: Webform data tokens appear to only work on first reaction

marion_vlt’s picture

Hi,

Thank you very much for sharing your experience.

Sadly, I don't have any module related to webform, other than webform telephone, that haven't been updated since 2017. So there's no way this could be related.

Thanks anyway and glad you found a workaround in your case.

liam morland’s picture

Version: 7.x-4.26 » 7.x-4.x-dev
Status: Active » Closed (outdated)

Drupal 7 is no longer supported. If this applies to a supported version, please re-open.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.