Details
-
Bug
-
Status: Closed (View Workflow)
-
Resolution: Fixed
-
3.0.x
-
None
-
None
-
PHP Environment:
Database:
Description
When sending a mass mail with usage of the mail queue, the contents of cache/queue.php gets echoed instead of being written on the confirmation page. queue.php only contains
<?php
|
$this->queue_data = ;
|
?
|
whereas the confirmation page looks like this:
array (
'email' =>
array (
'package_size' => '50',
'data' =>
array (
0 =>
array (
'to' => '"=?UTF-8?B?TmlrbGFz?=" <xy@gmx.de>',
'addresses' =>
array (
'to' =>
array (
0 =>
array (
'email' => 'xy@gmx.de',
'name' => 'Niklas',
),
),
'im' =>
array (
0 =>
array (
'uid' => '',
'name' => 'Niklas',
),
),
),
'subject' => '█',
'msg' => '
Die folgende Nachricht wurde dir von einem Administrator von „yourdomain.com“ gesendet. Wenn diese Nachricht Werbung, Beleidigungen oder anderen anstößigen Inhalt enthält, kannst du die Board-Administration unter folgender Adresse erreichen:[and so on...]<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/niklas/svn/stabil/includes/functions_messenger.php:727) in <b>/home/niklas/svn/stabil/adm/index.php</b> on line <b>158</b><br /><br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/niklas/svn/stabil/includes/functions_messenger.php:727) in <b>/home/niklas/svn/stabil/adm/index.php</b> on line <b>160</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/niklas/svn/stabil/includes/functions_messenger.php:727) in <b>/home/niklas/svn/stabil/adm/index.php</b> on line <b>161</b><br />
<br /><b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/niklas/svn/stabil/includes/functions_messenger.php:727) in <b>/home/niklas/svn/stabil/adm/index.php</b> on line <b>162</b><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="de" xml:lang="de">
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="de" />
<meta http-equiv="imagetoolbar" content="no" />
<title>Information</title><link href="style/admin.css" rel="stylesheet" type="text/css" media="screen" />
[rest of code as expected]
Changing
fwrite($fp, "<?php\n\$this->queue_data = " . var_export($this->data) . ";\n?>");
|
to
fwrite($fp, "<?php\n\$this->queue_data = " . var_export($this->data, true) . ";\n?>");
|
solves the problem for me.