Page 1 of 1

[fix] Blank page after 'Forwarding the message with subject'

PostPosted: 5:57pm, Tue 30 Dec, 2008
by Guest
If I select the "Forward a Message to Someone this link" and enter a valid email address and press Continue, I get a blank page.

My settings for this function:
define("KEEPFORWARDERATTRIBUTES",0);
define("FORWARD_EMAIL_COUNT",1);
define("FORWARD_PERSONAL_NOTE_SIZE",0);
define("FORWARD_ALTERNATIVE_CONTENT",0);
#define('FORWARD_FRIEND_COUNT_ATTRIBUTE', 'FriendCount');

PostPosted: 3:54am, Tue 06 Jan, 2009
by H2B2
Might be related to this bug report: http://mantis.phplist.com/view.php?id=15201

PostPosted: 11:40am, Fri 06 Feb, 2009
by spiro
Hi all,

I'm also getting this problem with a blank page after completing the forward to a friend page.

The eventlog suggests that the mail has been sent, however, no mail is being received.

I've checked the sendemaillib.php file in relation to the above mantis report but the current version of this file no longer has this bug.

Any more ideas, I've also tried changing the debug option in the config file from 63 to E_PARSE but am not getting anything in the error_log file.

Kind regards
Spiro

PostPosted: 10:32am, Mon 09 Feb, 2009
by spiro
Hi all,

I found that the version of PHPMailer that I was using had caused this problem. I have tried all of the 2.x versions of PHPMailer and found that they all prevented attachments from working. Once I reinstated v1.73 that came with PHPList then the attachments started working and message forwarding now works.


Kind regards
Spiro

PostPosted: 5:21pm, Mon 09 Feb, 2009
by H2B2
Thanks for finding that. This may help others in troubleshooting similar issues.

I'll move this thread to the 'Answers' section.

PostPosted: 5:42pm, Mon 09 Feb, 2009
by spiro
No probs H2B2.

Still a slight problem with attachments in the text version of a message, if you attach more than one and have given them descriptions it causes a malformed u r l on all but the last one due to placement of descriptions. Reported in Mantis (issue# 15229), I think you're probably ok if only attaching one item or not adding any descriptions.


ATB
Spiro

v2.10.10 - Blank page after Forwarding message

PostPosted: 12:18pm, Thu 25 Jun, 2009
by bdario
I'm having the same problem.
My PHPList version is 2.10.10
PHPMailer class is 1.73

I get a blank page after forwarding the message. Moreover, no one gets that forwarded message.
Thanks

Re: v2.10.10 - Blank page after Forwarding message

PostPosted: 4:20pm, Thu 25 Jun, 2009
by bdario
after putting error_reporting(E_ALL) inside the forwardPage() function i got this error:

Fatal error: Call to undefined function: htmlspecialchars_decode() in /var/www/vhosts/rsync/unitec/lists/index.php on line 817
phplist version 2.10.10

The "htmlspecialchars_decode" function exists only on PHP 5 >= 5.1.0 while my server PHP Version is 4.3.10-22.

So I found a replacement of that function for PHP4 and I added the code just before the calling of forwardPage function, on line # 745 of the file index.php

Code: Select all
if (!function_exists("htmlspecialchars_decode")) {
   function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) {
       return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)));
   }
}


and now it works

Re: v2.10.10 - Blank page after Forwarding message

PostPosted: 10:43pm, Sun 28 Jun, 2009
by H2B2
bdario wrote:The "htmlspecialchars_decode" function exists only on PHP 5 >= 5.1.0
Thanks for reporting this, and for the fix!

Filed this bug report on the issue: http://mantis.phplist.com/view.php?id=15307

Re: [fix] Blank page after 'Forwarding the message with subject'

PostPosted: 7:57pm, Wed 24 Mar, 2010
by mrabsinthe
The solution doesn't work for me I'm afraid. Blank page after forward, no message forwarded.
phplist version 2.10.10
PHP Version: 5.2.9

Re: [fix] Blank page after 'Forwarding the message with subj

PostPosted: 3:33am, Thu 12 Apr, 2012
by KazO
In my case, I see the following error:

Fatal error: Call to undefined method PHPlistMailer::addTimeStamp() in /home/xxxxx/public_html/lists/admin/class.phplistmailer.php on line 84
phplist version 2.10.18

PHP version is: 5.2.17

Re: [fix] Blank page after 'Forwarding the message with subj

PostPosted: 5:45am, Fri 13 Apr, 2012
by KazO
I replaced my phpmailer library and that caused the error. I just added the addTimeStamp function to the file and worked.

KazO wrote:In my case, I see the following error:

Fatal error: Call to undefined method PHPlistMailer::addTimeStamp() in /home/xxxxx/public_html/lists/admin/class.phplistmailer.php on line 84
phplist version 2.10.18

PHP version is: 5.2.17