Warning: date() [function.date]: /libraries/joomla/utilities/date.php hatası ve ÇÖZÜMÜ
Php 5.2 versiyonundan 5.3 e upgrade işlemi gerçekleştirildiğinde joomla/wordpress benzeri uygulamalarda aşağıdaki hata alınmaktadır.
Warning: 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/Helsinki’ for ‘EET/2.0/no DST’ instead in siteadi/libraries/joomla/utilities/date.php on line 245
Çözümü : php.ini dosyasına aşağıdaki satır eklenir.
date.timezone = “Europe/Istanbul”
veya (domain bazlı ayar yapmak isteniyorsa) /var/www/vhosts/siteadi/conf dizini içerisine vhost.conf dosyası oluşturup içerisine aşağıdaki satır eklenir ve Apache (service httpd reload komutu ile) reload edilir.
php_value date.timezone Europe/Istanbul
Bir cevap yazın
Yorum yapabilmek için giriş yapmalısınız.