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

quicksketch - October 6, 2008 - 15:20

Did you run update.php after upgrading? The 2.2 version needs your theming cache cleared.

#2

quicksketch - October 6, 2008 - 15:36
Status:active» fixed

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

cmgui - October 6, 2008 - 20:26

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

AttachmentSize
webf1.jpg 31.72 KB
webf2.jpg 26.53 KB
webf3.jpg 31.73 KB

#4

danmurf - October 7, 2008 - 13:34

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

jrglasgow - October 7, 2008 - 16:43
Status:fixed» active

#6

whitelaw - October 7, 2008 - 19:11

Hi quicksketch,

I am also having this issue, I will try your work around and see what happens...

#7

daddydo - October 7, 2008 - 19:22

And the same happened to me.
Felix

#8

matty15 - October 7, 2008 - 20:49

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

quicksketch - October 7, 2008 - 21:37
Status:active» fixed

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

esskay - October 7, 2008 - 22:25

Looks like it works!

#11

ozon - October 9, 2008 - 00:04

Hey quicksketch, big Thanks. It works for me too.

#12

mariomaric - October 9, 2008 - 12: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

rares - October 11, 2008 - 15:52

great, waiting for a 2.2.1 release to fix this.

#14

hankpalan.com - October 16, 2008 - 02:03

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

hankpalan.com - October 18, 2008 - 17:01

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

ChrisOPeterson - October 19, 2008 - 03:42

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

suydam - October 20, 2008 - 19:49

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

Chris Herberte - October 21, 2008 - 22:19
Status:fixed» active

#19

mariomaric - October 22, 2008 - 12:54

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

techgy - October 22, 2008 - 15:36
Category:bug report» support request

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

darkskywv - October 22, 2008 - 16:43
Category:support request» bug report

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

mariomaric - October 22, 2008 - 17:03

@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-dev and then check that everything is working as it should.

#23

quicksketch - October 22, 2008 - 20:06
Status:active» fixed

I release the 2.3 version today. Anyone experiencing this problem should upgrade to that version.

#24

hankpalan.com - October 24, 2008 - 04:28

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

jrglasgow - October 24, 2008 - 05:33

after installing 2.3 everything is working fine for me

#26

mariomaric - October 24, 2008 - 07:10

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

Anonymous (not verified) - November 7, 2008 - 07:11
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.