Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [smarty]błąd w 400 linii Smarty_Compiler.class.php
OlgaG
post
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 8.04.2007

Ostrzeżenie: (0%)
-----


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

Ten post edytował OlgaG 1.03.2008, 22:28:22
Go to the top of the page
+Quote Post
Keenic
post
Post #2





Grupa: Zarejestrowani
Postów: 64
Pomógł: 2
Dołączył: 13.07.2007
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Blad nie po stronie smarty, lecz po Twojej. Musiales zrobic gdzies blad w pliku tpl.
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #3





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

Ostrzeżenie: (0%)
-----


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


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
OlgaG
post
Post #4





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 8.04.2007

Ostrzeżenie: (0%)
-----


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
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 05:06