Ответить
а после этого apache перезапускали?
1
Ошибка с TIMEZONE
Отправлено: 12 Авг 2012#1
Проблема.
После установки сайта выводится:
"Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 174 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 175 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 176 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 177 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/helpers.lib.php on line 97 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 174 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 175 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 176 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 177 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 174 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 175 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 176 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 177 ..."
Админка работает, но вверху похожая фигня:
"Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../admin/index.php on line 65 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../admin/index.php on line 66 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../admin/index.php on line 69"
Вписывал в php.ini date_default_timezone_set('Europe/Moscow') и date.timezone = "Europe/Moscow" ... не помогло.
Сервер VDS CentOS
После установки сайта выводится:
"Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 174 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 175 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 176 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 177 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/helpers.lib.php on line 97 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 174 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 175 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 176 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 177 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 174 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 175 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 176 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../sys/inc/document_parser.class.php on line 177 ..."
Админка работает, но вверху похожая фигня:
"Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../admin/index.php on line 65 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../admin/index.php on line 66 Warning: 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/Moscow' for 'MSK/4.0/no DST' instead in .../admin/index.php on line 69"
Вписывал в php.ini date_default_timezone_set('Europe/Moscow') и date.timezone = "Europe/Moscow" ... не помогло.
Сервер VDS CentOS
Отправлено: 12 Авг 2012#2
AdvoCat пишет:
Вписывал в php.ini date_default_timezone_set('Europe/Moscow') и date.timezone = "Europe/Moscow" ... не помогло.
Отправлено: 13 Авг 2012#3
Да, перезапускал весь сервер (Апач, ессессно тоже с ним). Единственное, что изменилось - записи разбились по абзацам.
Отправлено: 13 Авг 2012#4
пишите в тот php.ini, который в папке с движком, или в тот, который /etc/php5/apache2/php.ini (по крайней мере это путь в дебиане)?
запись в первый мне не помогла, а вот во второй решила проблему.
если это не помогает то проверьте какой выставлен часовой пояс и дата-время.
пишут, что это вроде тоже влияет
запись в первый мне не помогла, а вот во второй решила проблему.
если это не помогает то проверьте какой выставлен часовой пояс и дата-время.
пишут, что это вроде тоже влияет
Отправлено: 13 Авг 2012#5
я даже до конца дочитал эту поэму))) на это у меня ушло банка ягуара.... температура головного мозга повысилась до 0.2 градуса..... челюсть падала об стол 3 раза, глаза чуть не послали друг друга подальше... но я все равно дочитал это все... и естественно ничего не понял))))
Отправлено: 13 Авг 2012#6
<шутка>
дурная голова глазам покоя не даёт
</шутка>
зачем же читать это всё? там же одно и то же повторяется
дурная голова глазам покоя не даёт
</шутка>
зачем же читать это всё? там же одно и то же повторяется
Отправлено: 14 Авг 2012#7
Пишу в тот php.ini, который в /etc , как повелел сему <?php phpinfo(); ?>
Напоминаю - CentOS
Напоминаю - CentOS
Отправлено: 14 Авг 2012#8
а часовой пояс там нормально выставлен?
если да то извините, ничем помочь не могу, работаю только на дебиане, попробуйте написать на форумы по центоси
если да то извините, ничем помочь не могу, работаю только на дебиане, попробуйте написать на форумы по центоси
1
Зарегистрируйтесь или авторизуйтесь что бы писать
Сейчас online: 59. Зарегистрированных: 0. Гостей: 59.