WN

WN (https://www.wn.se/forum/index.php)
-   Serversidans teknologier (https://www.wn.se/forum/forumdisplay.php?f=4)
-   -   problem med phpbb (https://www.wn.se/forum/showthread.php?t=1046810)

Lancelot 2011-02-27 15:05

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

KarlRoos 2011-02-27 15:29

Sätt tidszon i din php.ini:

Kod:

[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[..]).

Lancelot 2011-02-27 15:37

Citat:

Ursprungligen postat av KarlRoos (Inlägg 20394939)
Sätt tidszon i din php.ini:

Kod:

[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'));

Lancelot 2011-02-27 15:47

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 2011-02-27 16:21

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


Alla tider är GMT +2. Klockan är nu 13:32.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson