Fehlermeldung header information
Verfasst: 22.03.2010 14:34
Hallo liebe phpbb Gemeinde,
ich bekomme ab und an eine Fehlermeldung wenn ich auf ein Profil eines Users Klicke. Dieser Fehler kommt aber nur, wenn ich den Chache leere.
Wenn ich dann diesen Fehler sehe, und ich drücke F5 um den Browser zu aktualisieren, dann geht alles.
Ich habe auch schon die Suchfunktion hier benutzt, aber leider nicht das passende gefunden außer das hier. https://www.phpbb.de/kb/headers_already_sent
Das hilft mir leider auch nicht weiter. Schade.
Hier mal der Fehler der kommt:
Warning:Cannot modify header information- headers already sent by (output started at "meine URL"/includes/funktions.php:3502)in "meine URL" /includes/funktions.php on Line 3552.
Hier habe ich mal die funktions.php von Line 3499 bis 3553.
Könnte mir bitte einer helfen, was da nicht stimmen kann?? Ich bin langsam am verzweifeln.
Danke mal im Voraus für Eure Hilfe.
Gruß Chris
ich bekomme ab und an eine Fehlermeldung wenn ich auf ein Profil eines Users Klicke. Dieser Fehler kommt aber nur, wenn ich den Chache leere.
Wenn ich dann diesen Fehler sehe, und ich drücke F5 um den Browser zu aktualisieren, dann geht alles.
Ich habe auch schon die Suchfunktion hier benutzt, aber leider nicht das passende gefunden außer das hier. https://www.phpbb.de/kb/headers_already_sent
Das hilft mir leider auch nicht weiter. Schade.
Hier mal der Fehler der kommt:
Warning:Cannot modify header information- headers already sent by (output started at "meine URL"/includes/funktions.php:3502)in "meine URL" /includes/funktions.php on Line 3552.
Hier habe ich mal die funktions.php von Line 3499 bis 3553.
Code: Alles auswählen
// remove complete path to installation, with the risk of changing backslashes meant to be there
$errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile);
$msg_text = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text);
echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";
// we are writing an image - the user won't see the debug, so let's place it in the log
if (defined('IMAGE_OUTPUT') || defined('IN_CRON'))
{
add_log('critical', 'LOG_IMAGE_GENERATION_ERROR', $errfile, $errline, $msg_text);
}
// echo '<br /><br />BACKTRACE<br />' . get_backtrace() . '<br />' . "\n";
}
return;
break;
case E_USER_ERROR:
if (!empty($user) && !empty($user->lang))
{
$msg_text = (!empty($user->lang[$msg_text])) ? $user->lang[$msg_text] : $msg_text;
$msg_title = (!isset($msg_title)) ? $user->lang['GENERAL_ERROR'] : ((!empty($user->lang[$msg_title])) ? $user->lang[$msg_title] : $msg_title);
$l_return_index = sprintf($user->lang['RETURN_INDEX'], '<a href="' . $phpbb_root_path . '">', '</a>');
$l_notify = '';
if (!empty($config['board_contact']))
{
$l_notify = '<p>' . sprintf($user->lang['NOTIFY_ADMIN_EMAIL'], $config['board_contact']) . '</p>';
}
}
else
{
$msg_title = 'General Error';
$l_return_index = '<a href="' . $phpbb_root_path . '">Return to index page</a>';
$l_notify = '';
if (!empty($config['board_contact']))
{
$l_notify = '<p>Please notify the board administrator or webmaster: <a href="mailto:' . $config['board_contact'] . '">' . $config['board_contact'] . '</a></p>';
}
}
if ((defined('DEBUG') || defined('IN_CRON') || defined('IMAGE_OUTPUT')) && isset($db))
{
// let's avoid loops
$db->sql_return_on_error(true);
add_log('critical', 'LOG_GENERAL_ERROR', $msg_title, $msg_text);
$db->sql_return_on_error(false);
}
// Do not send 200 OK, but service unavailable on errors
header('HTTP/1.1 503 Service Unavailable');
Danke mal im Voraus für Eure Hilfe.
Gruß Chris