I have a simple webform with a sender e-mail field and a recipient e-mail (as an hidden field): mails are sent, but tokens are translated to empty values... for example %email_values report nothing at all (online archive shows that fields are filled correctly) while something like %email[Name] is left untouched (appears as a normal text).

What can I check/debug? Thankx.

(note: I can dig into code, if needed, but I'd like an advise before: I'm thinking of embedding some drupal_set_message somewhere to check what's happening...)

Here's the template:

Submitted on %date

%email_values

Here's the mail (form has many text fields!)

Submitted on Tue, 26/03/2013 - 13:49

Here's the view online:

Name (some_text_here)
Surname (some_text_here)
e-mail [hidden]@[hidden]
Address ...
ZIP ...
City ...
Phone ...
Country ...
Message (msg)
Personal data management No
recipient [hidden]@[hidden]

...don't know if useful... there are many warnings like:

Notice: Trying to get property of non-object in webform_results_submissions() (line 47 of /...../sites/all/modules/(content)/webform/includes/webform.report.inc).
Notice: Trying to get property of non-object in webform_results_submissions() (line 48 of /...../sites/all/modules/(content)/webform/includes/webform.report.inc).
Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in format_date() (line 2006 of /...../includes/common.inc).
Warning: date_format() expects parameter 1 to be DateTime, boolean given in format_date() (line 2016 of /...../includes/common.inc).

Comments

Elementica’s picture

Issue summary: View changes

Example of mail templates and contents added.

donbuche’s picture

Maybe you're using a subtheme... I got the same isue.

In you subtheme .INFO, ensure that the line talking about 'base theme = XXXX' is commented with a ";" this solves the problem, but generates others secondary effects I'm still trying to solve...

Regards,

quicksketch’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I can't reproduce this issue in 3.x and we haven't had any confirming reports of this problem. Are you still experiencing it? We recently released Webform 3.20, could you try upgrading and post if this is still a problem?

DanChadwick’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closed for lack of activity and information to reproduce.

RowboTony’s picture

I had this issue due to my theme. I've been using Webform on a site for many years. Upgrading to the latest 7.x-4.x version of Webform caused issues with my old custom themes/my_theme/templates/webform-mail.tpl.php. Removing the old incompatible webform-mail.tpl.php file fixed the problem for me. Something to consider if anyone else is having a similar issue where mail is sending, but the token values are empty, or aren't being translated.