problem med phpbb

Visa första olästa
Ämnesverktyg
Visa huvudforum
Visningsalternativ
Oläst 2011-02-27, 16:05 #1
LancelotLancelot är inte uppkopplad
Har WN som tidsfördriv
Reg.datum: Nov 2007
Inlägg: 1 311
Standard problem med phpbb

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 16:14.
Lancelot är inte uppkopplad
Oläst 2011-02-27, 16:29 #2
KarlRoosKarlRoos är inte uppkopplad
Har WN som tidsfördriv
Reg.datum: Jul 2007
Inlägg: 1 416
Sätt tidszon i din php.ini:

CODE
[Date]
date.timezone = "Europe/Stockholm"


Varför åäö blir konstiga beror med största sannolikhet på att du får felmeddelandena innan headers har skickats ([..]Cannot modify header information - headers already sent by[..]).
KarlRoos är inte uppkopplad
Oläst 2011-02-27, 16:37 #3
LancelotLancelot är inte uppkopplad
Har WN som tidsfördriv
Reg.datum: Nov 2007
Inlägg: 1 311
Citat:
Ursprungligen postat av KarlRoos Visa inlägg
Sätt tidszon i din php.ini:

CODE
[Date]
date.timezone = "Europe/Stockholm"


Varför åäö blir konstiga beror med största sannolikhet på att du får felmeddelandena innan headers har skickats ([..]Cannot modify header information - headers already sent by[..]).


Vart ska den filen finnas?

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 16:44.
Lancelot är inte uppkopplad
Oläst 2011-02-27, 16:47 #4
LancelotLancelot är inte uppkopplad
Har WN som tidsfördriv
Reg.datum: Nov 2007
Inlägg: 1 311
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.
Lancelot är inte uppkopplad
Oläst 2011-02-27, 17:21 #5
LancelotLancelot är inte uppkopplad
Har WN som tidsfördriv
Reg.datum: Nov 2007
Inlägg: 1 311
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
Lancelot är inte uppkopplad
Aktiva användare som för närvarande tittar på det här ämnet: 0 (0 medlemmar och 0 gäster)