Mimemail returns white screen of death if your site cannot send email

SocialNicheGuru - April 6, 2009 - 20:58
Project:Mime Mail
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

issue: if you cannot send email from your site, mimemail does not return an error message to screen. Instead returns white screen
Fix: remove mimemail until you can get email working on your system
Request: can an error message be written to logs and mimemail not return a white screen but instead return an error message to screen

Notes:
It took me a day to figure out why I keep getting a white screen whenever my site tried to send out emails.

I removed all modules from the modules directory and methodically put each module back in.

I noticed that I received a sys admin message on screen about not being able to send mail (I had to remove all modules. I did not think of looking in the /var/log/mail because I did not get any php errors written to watchdog. Hmmm... I should look at syslog also).

When adding mimemail my screen went blank.

Steps:
request new password
enter email address
press send
WSOD

#1

chawl - April 9, 2009 - 15:08

Same issue with Drupal 6.10 and simplenews latest dev, subscribing.

#2

chawl - April 9, 2009 - 18:35

I tried disabling "Mime Mail CSS Combiner" module and WSOD disappeared and email worked.

Can anyone confirm?

#3

yang_yi_cn - April 17, 2009 - 20:45

exactly, it takes me hours to find out that there's something wrong in the MIME Mail CSS Combiner. It may be some PHP related, because on my WAMP (PHP 5.2.9) it works with MIME Mail CSS Combiner enabled, but the Linux server (Redhat Enterprise 5.2), which I installed PHP 5.2.8, it causes WSOD.

#4

chawl - April 18, 2009 - 14:01

Hmm, confirming WSOD for PHP 5.2.6 on Centos 5.

#5

gdaley - April 21, 2009 - 09:17

I had the same problem.

Did you check to see if you had the PHP DOM module (php-xml package) installed on your server?

#6

kenorb - May 6, 2009 - 16:20
Status:active» needs review

I get into the same problem.

Try latest dev, its working for me.

There was DIE in the code.

<?php
 
if ($mailkey) {
   
$key = check_plain($mailkey);
   
$key = str_replace(' ','-', trim($key));
   
print_r($key); die;
...
?>

 
 

Drupal is a registered trademark of Dries Buytaert.