Webform 2.2 email content is blank
vj0914 - October 6, 2008 - 14:59
| Project: | Webform |
| Version: | 6.x-2.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I just updated to webform 2.2, and I realize that the email I sent out has nothing in blank.
I rolled back to previous version, it is fine, maybe there is bug for generating email content.

#1
Did you run update.php after upgrading? The 2.2 version needs your theming cache cleared.
#2
Eh, shoot. Looks like the release got out and that can't find the "webform-mail.tpl.php" file. :/
I've fixed this in CVS and I'll get out a new release after fixing any other reports. As a work around, you can just copy webform-mail.tpl.php to your theme directory, then clear your Drupal cache at admin/settings/performance.
#3
hi quicksketch
i tried copying webform-mail.tpl.php to the theme directory and clearing the cache, but still it didn't work.
attached are some screen shots showing the output in drupal after submitting the form.
thank you.
gui
#4
Hi quicksketch
I'm also having the same problem. I copied the webform-mail.tpl.php from the previous version, cleared the cache but the email is still coming out blank.
Any more ideas?
Many thanks
Dan
#5
#6
Hi quicksketch,
I am also having this issue, I will try your work around and see what happens...
#7
And the same happened to me.
Felix
#8
Blanks emails for me too with 2.2. Rolled back to previous 2.1.3 and everything is back to normal.
Am I okay running the previous version for now? It seem to work fine, just want to check.
Im sure you'll get a fix posted shortly, good luck and thanks for keeping up this excellent module!
Thanks
#9
Here's the patch that fixes the problem. It's already been committed (so this bug is "fixed") and I'll release a new version shortly. Using the new version would be very helpful in nailing down any last bugs in this new release.
Patch: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/webform/web...
Or for those that prefer something more manual:
Change line 1733 from:
$messages[$cid] = theme(array('webform_mail_'. $node->nid, 'webform_mail'), $form_state['values'], $node, $sid, $cid);to
$messages[$cid] = theme(array('webform_mail_'. $node->nid, 'webform_mail', 'webform_mail_message'), $form_state['values'], $node, $sid, $cid);#10
Looks like it works!
#11
Hey quicksketch, big Thanks. It works for me too.
#12
Working for me too, although I had 6.x-2.1.3 version, and in there you need to do replacement in line 1704 (after some patching!).
#13
great, waiting for a 2.2.1 release to fix this.
#14
I just installed the dev version to correct the blank e-mails.
Unfortunately its sending everything except the values put in the text fields. Its even sending the fieldsets, just not the text users put in those.
#15
I have installed a slew of versions including the dev version. I even patched the latest version. I ran update.php and cleared the cache. I still am getting blank e-mails. Is anybody else having this issue?
#16
I tried the first suggested fix, which was to simply copy the webform-mail.tpl.php file into my theme. That has fixed the blank email problem for me. Haven't noticed anything else off since.
#17
Spanky,
Make sure you put the .tpl.php file in the folder of your active theme.
That fixed the issue for me on version 6.x-2.2
#18
#19
Hi everybody.
This is really strange, because I just upgraded my Webform module to version
6.x-2.x-dev (October 21, 2008 - 12:14), and I don't have any "blank mail / fields" issues. Also in my active theme folder I don't have webform .tpl.php files.I think this issue is really fixed. Or?
Cheers.
#20
I'd be willing to help test the next upgrade if necessary.
I have a Drupal 6.5 test site that I use to check all modules on prior to moving them to the production site. Just let me know if you'd like a tester.
I'm primarily interested in making sure that the Email problem is fixed. Right now I'm using your patch and it's working fine. v2.2
Techgy
#21
I guess I should have just waited for the update, being such a newby. I added the code and now I get this: "warning: Cannot modify header information - headers already sent by (output started at...".
On the bright side the emails are no longer blank so it fixed that. What did I mess up though? Pages have to be refreshed or closed and reopened or they're blank white.
#22
@darkskywv: The best thing to do (not just with webform module, but with any other Drupal module) is to update (reinstall) your Webform module to the latest development version ->
6.x-2.x-devand then check that everything is working as it should.#23
I release the 2.3 version today. Anyone experiencing this problem should upgrade to that version.
#24
I have uninstalled, deleted, reinstalled, wiped clean, installed this module several time since the 2.3 version came out and I still am getting blank e-mails. Is anybody else still having this issue or is it just me?
#25
after installing 2.3 everything is working fine for me
#26
It's working fine for me too!
@spankteal: IMHO Webform module is not affecting your blank emails, it must be something else...somewhere else. Try clean install of Drupal 6.6 and only Webform 2.3 module on same server machine where you have blank mail issue, and see what will happen.
#27
Automatically closed -- issue fixed for two weeks with no activity.