Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [smarty]błąd w 400 linii Smarty_Compiler.class.php
Forum PHP.pl > Forum > Przedszkole
OlgaG
Tworzę aplikację z użyciem Smarty. Częst, ale nie zawsze po przeładowaniu strony dostaje następujący komunikat:

Wystąpił błąd w skrypcie 'C:\Program Files\VertrigoServ\www\aplikacja2\libs\Smarty_Compiler.class.php', wierszu 400
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/Paris' for '1.0/no DST' instead
Data/godzina zdarzenia:3-1-2008 20:24:22

400 linia kodu w Smarty_Compiler.class.php :

$template_header = "<?php /* Smarty version ".$this->_version.", created on ".date("%Y-%m-%d %H:%M:%S")."\n";

Nie bardzo wiem co z tym fantem zrobić. worriedsmiley.gif
Keenic
Blad nie po stronie smarty, lecz po Twojej. Musiales zrobic gdzies blad w pliku tpl.
dr_bonzo
Ludzie - czytac sie nauczcie.


Cytat
t 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.


Jak nie wiesz co zrobic, to wrzuc to do googla i poszukaj
OlgaG
Na wypadek gdyby ktoś miał taki problem:

w linii 400 pliku Smarty_Compiler.class.php zamiast funkcji date() wstawiam funkcję date_default_timezone_set('Europe/Warsaw').

Jak na razie wszystko hula smile.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.