FAQ |
Kalender |
![]() |
#1 | ||
|
|||
Har WN som tidsfördriv
|
Hejsan.
Flyttade över en sajt från en server till en annan och nu får jag upp det här: [phpBB Debug] PHP Notice: in file /index.php on line 86: 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 86: 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 4183: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493) Vad kan det bero på? Sedan är öäå väldigt konstiga också... Edit: Äsch, ska sluta lata mig och googla lite, så kommer jag finna problemet :P Senast redigerad av Lancelot den 2011-02-27 klockan 15:14 |
||
![]() |
![]() |
![]() |
#2 | ||
|
|||
Har WN som tidsfördriv
|
Sätt tidszon i din php.ini:
Kod:
[Date] date.timezone = "Europe/Stockholm" |
||
![]() |
![]() |
![]() |
#3 | ||
|
|||
Har WN som tidsfördriv
|
Citat:
hehe Det står ju var den ska finnas. Dum fråga.. Det här står på line 86: $now = getdate(time() + $user->timezone + $user->dst - date('Z')); Senast redigerad av Lancelot den 2011-02-27 klockan 15:44 |
||
![]() |
![]() |
![]() |
#4 | ||
|
|||
Har WN som tidsfördriv
|
Tog bort de 4 raderna :
header('Content-type: text/html; charset=UTF-8'); header('Cache-Control: private, no-cache="set-cookie"'); header('Expires: 0'); header('Pragma: no-cache'); Så gick iaf debug bort. |
||
![]() |
![]() |
![]() |
#5 | ||
|
|||
Har WN som tidsfördriv
|
Nu verkar det som om allting är löst genom att sätta error reporting på 0.
Min host har nämligen en senare php version än den som är kompatibel med min version av php |
||
![]() |
![]() |
Svara |
|
|