Posted by Andreas Schmidt on August 11, 2008 at 2:40pm
Jump to:
| Project: | SMTP Authentication Support |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
I'm currently working with the new latest -dev version of the SMTP module for Drupal 6. While testing the form I always get a blank page after submission, but if I activate debugging this page is filled with a connection log. Is there a problem with the redirect to the frontpage (like in the old version for 6 without phpmailer) when debugging is inactive?
Will there be a fix in the stable version or is it only me who get this error? As this is the only problem with this module while everything else is doing well.
Comments
#1
Is there anything after the debugging content, like the rest of the normal page? If there is only debugging content, follow the suggestions below.
To the best of my knowledge, there has never been a version of this module that did not utilize PHPMailer. The difference is that before the code was included in the .module file. Also, as far as I know, there is no problem with the redirect.
Try working through the items on the Blank Pages and Missing Content Troubleshooting FAQ page.
#2
Many thanks for your fast reply.
I followed the FAQ but there are only solutions which include increasing the memory limit. I have a memory limit of 128M at the moment which should be enough. Additionally the old smtp and the new one are used on the same server. Accordingly the memory should not be the problem. In addition I'm afraid I was not clear in my description. I get this blank screen when I submit the contact form. The mail itself was successfully sended (and of course also received) and the path "/index.php?q=contact" is also a valid target of the form. It really looks like the final redirect to the frontpage doesn't work.
No there's nothing else than the debugging output and when I disable it I get a completely blank screen and if I look in the markup there is nothing but the "html", "head", "body" without any content.
#3
At this point, I would try a process of elimination with contributed and/or custom modules and/or themes. Either try disabling them one at a time, or try disabling all of them and then re-enabling them one at a time, to see if one of them might be causing (or helping cause) the problem. Of course, you'll have to send a message each time until you find the source or eliminate all the options.
#4
I had this issue as well which was caused by not having the phpmailer files in the right place.
#5
this was also my issue and solution was to copy phpmailer (downloaded from link off main project page) to modules/smtp/phpmailer/
then had to change line 245 of smtp.module to read...
require_once(drupal_get_path('module', 'smtp') .'phpmailer/class.phpmailer.php');
line 252 to
$mail->SetLanguage($language->language, drupal_get_path('module', 'smtp') .'phpmailer/language/');
#6
Before I posted this issue I had copied the phpmailer to the smtp module directory. I've just tested the new smpt-module on an English system -> no problem. On a localised German system -> blank page after submission. I don't have a pathprefix so there shouldn't be a problem.
Is there a translatable string which is used internal? This is the only option I see so far...
#7
After some research I found the php error: Cannot modify header information - headers already sent. I compared the phpmailer.lang-en.php file with the German: phpmailer.lang-de.php. The blank page occured because of some extra whitespace after the closing php tag.
Is there a way to inform the phpmailer authors of this mistake in the German localization?
#8
Hi i also use the SMTP/phpmailer on drupal 6.4 GERMAN and all i had to do is make sure that all php files within the smtp directory (including ALL subdirectories) are saved as UTF-8 WITHOUT BOM and in
smtp/phpmailer/language/phpmailer.lang-xx.php
delete the last ?> at the bottom of the language files you use due to the drupal coding standards http://drupal.org/coding-standards
That solved my white screen problem. Hope this helps.
Torsten Zenk
Open-Consult.NET
#9
The problem for me was caused by the file "phpmailer.lang-de.php" as well.
Deleting the extra whitespace after the closing php - tag in the phpmailer.lang-de.php solved the problem.
I wrote to the phpmailer - team and informed them about the issue.
#10
phpmailer issue.
If it's not fixed on newer releases, somebody could include removing the ?> in the patch.