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

Discuss, research, share, find, and solve bugs

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

Postby Guest » 5:57pm, Tue 30 Dec, 2008

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');
Guest
 

Postby H2B2 » 3:54am, Tue 06 Jan, 2009

Might be related to this bug report: http://mantis.phplist.com/view.php?id=15201
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Postby spiro » 11:40am, Fri 06 Feb, 2009

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
As of July 2011
using the following on a shared Linux host:


PHPList: v2.10.14,FCKeditor: 2.6.3 (as distributed with phpList),PHP: 5.2.14,PHPMailer: ??,Apache: 2.2.11with OpenSSL enabled.
spiro
PL Geek
 
Posts: 50
Joined: 7:37pm, Thu 29 Jan, 2009

Postby spiro » 10:32am, Mon 09 Feb, 2009

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
As of July 2011
using the following on a shared Linux host:


PHPList: v2.10.14,FCKeditor: 2.6.3 (as distributed with phpList),PHP: 5.2.14,PHPMailer: ??,Apache: 2.2.11with OpenSSL enabled.
spiro
PL Geek
 
Posts: 50
Joined: 7:37pm, Thu 29 Jan, 2009

Postby H2B2 » 5:21pm, Mon 09 Feb, 2009

Thanks for finding that. This may help others in troubleshooting similar issues.

I'll move this thread to the 'Answers' section.
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Postby spiro » 5:42pm, Mon 09 Feb, 2009

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
As of July 2011
using the following on a shared Linux host:


PHPList: v2.10.14,FCKeditor: 2.6.3 (as distributed with phpList),PHP: 5.2.14,PHPMailer: ??,Apache: 2.2.11with OpenSSL enabled.
spiro
PL Geek
 
Posts: 50
Joined: 7:37pm, Thu 29 Jan, 2009

v2.10.10 - Blank page after Forwarding message

Postby bdario » 12:18pm, Thu 25 Jun, 2009

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
bdario
phpList newbie
 
Posts: 2
Joined: 12:14pm, Thu 25 Jun, 2009

Re: v2.10.10 - Blank page after Forwarding message

Postby bdario » 4:20pm, Thu 25 Jun, 2009

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
bdario
phpList newbie
 
Posts: 2
Joined: 12:14pm, Thu 25 Jun, 2009

Re: v2.10.10 - Blank page after Forwarding message

Postby H2B2 » 10:43pm, Sun 28 Jun, 2009

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
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

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

Postby mrabsinthe » 7:57pm, Wed 24 Mar, 2010

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
mrabsinthe
phpLister
 
Posts: 7
Joined: 3:06pm, Tue 24 Nov, 2009

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

Postby KazO » 3:33am, Thu 12 Apr, 2012

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
KazO
phpList newbie
 
Posts: 2
Joined: 3:30am, Thu 12 Apr, 2012

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

Postby KazO » 5:45am, Fri 13 Apr, 2012

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
KazO
phpList newbie
 
Posts: 2
Joined: 3:30am, Thu 12 Apr, 2012


Return to Bug Discussion

Who is online

Users browsing this forum: No registered users and 2 guests