Hi
just for your Information:
function headerRedirect() is defined in general.inc.php -
and is used serval times
Code: Select all
function headerRedirect($target='') {
header('Location: '.$target);
if(isset($_SESSION)) {
session_write_close();
}
exit();
}
have also sometimes on one Server !? a Warning after sending from (new) Contact Form
Warning: Header may not contain more than a single header, new line detected. in /home/chs/efectored.com/home/html/include/inc_lib/general.inc.php on line 1164
this are the two Points in cnt23.article.inc.php
Code: Select all
if($cnt_form["onerror_redirect"]) {
headerRedirect(str_replace('{SITE}', PHPWCMS_URL, $cnt_form["onerror"]));
or
Code: Select all
if(!$mail->Send()) {
$CNT_TMP .= '<p>'.html_specialchars($mail->ErrorInfo).'</p>';
} elseif($cnt_form["onsuccess_redirect"]) {
// redirect on success
headerRedirect(str_replace('{SITE}', PHPWCMS_URL, $cnt_form["onsuccess"]));
} elseif($cnt_form["onsuccess"]) {
have tried to reproduce this, but as I said - it not happen at every Server (they are almost with the same Configuration Apache, PHP, mySQL) and at the one where it happens, I cannot run a Debugger.
The Mail is send anyway.