Problem z common.php on line 98

And123

Avatar: And123

2014-10-29 20:00

Witam, po przeniesieniu strony na inny serwer pojawia mi się taki błąd w panelu administratora.

"Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 in /home/filceeu/public_html/core/common.php on line 98"

Jak to naprawić?

openzibi

Avatar: openzibi

2014-10-29 20:18

Sprawdź jedną z tych 3 opcji:

1. W .htaccess dodaj
php_value date.timezone "Europe/Warsaw"

lub
2. w general.php w pierwszej linii za <?php
dodaj
date_default_timezone_set( 'Europe/Warsaw' );

lub
3. w plikach index.php i admin.php
Przed session_start( );
wstaw
date_default_timezone_set("Europe/Warsaw");

Pierwszy wariant powinien wystarczyć ale niektóre serwery mają nietypowe ustawienia.

And123

Avatar: And123

2014-10-29 20:29

Drugi wariat pomógł :) Dzięki za pomoc!

kulikos

Avatar: kulikos

2014-11-17 20:40

Dzięki Serdeczne !
U mnie też 2 sposób pomógł :)

Pozdrowienia dla forumowiczów

Kulikos

Do góry
o nas | kontakt