Server gewechselt, wo eine aktuelle PHP-Version läuft (5.3.6).
Im aktuellen Forum gibt es keine Probleme, wir haben aber noch das Archivforum, das geschlossen ist und nur noch zum Stöbern von
alten Beiträgen da ist. Dieses läuft mit Version phpBB 3.0.2 und gibt einige Fehlermeldungen aus:
Ich habe mich zuerst mit der "headers already sent"-Fehlermeldung befasst, in der functions.php steht ab Zeile 3672:[phpBB Debug] PHP Notice: in file /index.php on line 83: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead
[phpBB Debug] PHP Notice: in file /index.php on line 83: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3513: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3673: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3010)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3675: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3010)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3676: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3010)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3677: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3010)
Code: Alles auswählen
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');
header('Cache-Control: private, no-cache="set-cookie"');
header('Expires: 0');
header('Pragma: no-cache');
if ($user->data['user_accept_rules'] == 0 && $user->data['is_registered'] && !$user->data['is_bot'] && (request_var('mode', '') != 'terms'))
{
if (confirm_box(true))
{
$sql = 'UPDATE ' . USERS_TABLE . "
SET user_accept_rules = '1'
WHERE user_id = " . $user->data['user_id'];
$db->sql_query($sql);
}
else
{
confirm_box(false, sprintf($user->lang['NEW_RULES'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms') . '">', '</a>'));
header("Location: " . append_sid("{$phpbb_root_path}ucp.$phpEx?mode=logout&sid=" . $user->session_id));
}
}
return;
}
Zur zweiten Fehlermeldung habe ich dieses Thema gefunden: viewtopic.php?f=73&t=201475
Als Lösung steht dort: Set the required setting (date.timezone) in php.ini and these messages will go away.
Wo und wie kann ich das denn einstellen?
Ach, und hier noch der Link zum betroffenen Forum: http://short4u.de/526f8794c6955