Page 1 of 1
Ошибка SYSTEM WARNING:
Posted: 26 Sep 2012, 06:37
by Koseva
SYSTEM 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/var/www/html/mantisbt/core/logging_api.php' line 53
Собственно не пойму в чём дело.
в файле php.ini
Code: Select all
[Date]
; Defines the default timezone used by the date functions
;http://php.net/date.timezone
;date.timezone =
;http://php.net/date.default-latitude
;date.default_latitude = 31.7667
;http://php.net/date.default-longitude
;date.default_longitude = 35.2333
;http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333
в config_defaults_inc.php
Пробовал указывать так
Code: Select all
<------>$g_default_timezone = 'UTC+4';
или так, но результат не изменен.
<------>$g_default_timezone = 'Europe/Moscow';
Результат не изменен.
Может кто подскажет как это исправить?
Re: Ошибка SYSTEM WARNING:
Posted: 26 Sep 2012, 08:37
by Kirill
Вас просят указать настройки в php.ini
Code: Select all
[Date]
; Defines the default timezone used by the date functions
;http://php.net/date.timezone
date.timezone = Europe/Moscow
Re: Ошибка SYSTEM WARNING:
Posted: 26 Sep 2012, 09:42
by Koseva
Пробовал и так. но в таком варианте страница Mantis перестаёт отображать приветствие для ввода имени и пароля. просто выдаёт следующее сообщение.
Воспользуйтесь кнопкой "Назад" своего браузера для возврата на предыдущую страницу. Там вы сможете исправить проблемы, показанные в этом сообщении об ошибке, или выбрать другое действие. Можно также перейти сразу в другой раздел, напрямую выбрав пункт меню.
Copyright © 2000 - 2012 MantisBT Group
Re: Ошибка SYSTEM WARNING:
Posted: 26 Sep 2012, 10:28
by Koseva
Так пробовал. Но в данном случае манис
http://ip/mantisbt/login_page.php выдаёт сообщение
Воспользуйтесь кнопкой "Назад" своего браузера для возврата на предыдущую страницу. Там вы сможете исправить проблемы, показанные в этом сообщении об ошибке, или выбрать другое действие. Можно также перейти сразу в другой раздел, напрямую выбрав пункт меню.
Copyright © 2000 - 2012 MantisBT Group
Вместо полей с вводом имени и пароля.
Re: Ошибка SYSTEM WARNING:
Posted: 26 Sep 2012, 10:40
by Kirill
какая версия Мантис и желательно phpinfo().
Re: Ошибка SYSTEM WARNING:
Posted: 26 Sep 2012, 11:15
by Koseva
Версия Mantis 1.2.11
PHP 5.4.6
-------------
Code: Select all
System Linux Info 3.3.4-5.fc17.i686.PAE #1 SMP Mon May 7 17:37:39 UTC 2012 i686
Build Date Aug 20 2012 11:31:38
Configure Command './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--with-apxs2=/usr/sbin/apxs' '--libdir=/usr/lib/php' '--enable-pdo=shared' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib/mysql/mysql_config' '--with-pdo-mysql=shared,/usr/lib/mysql/mysql_config' '--with-pdo-sqlite=shared,/usr' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
Additional .ini files parsed /etc/php.d/apc.ini, /etc/php.d/curl.ini, /etc/php.d/dom.ini, /etc/php.d/fileinfo.ini, /etc/php.d/gd.ini, /etc/php.d/igbinary.ini, /etc/php.d/json.ini, /etc/php.d/mbstring.ini, /etc/php.d/mcrypt.ini, /etc/php.d/memcache.ini, /etc/php.d/memcached.ini, /etc/php.d/mongo.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_pgsql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/pgsql.ini, /etc/php.d/phar.ini, /etc/php.d/sqlite3.ini, /etc/php.d/wddx.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini, /etc/php.d/zip.ini
PHP API 20100412
PHP Extension 20100525
Zend Extension 220100525
Zend Extension Build API220100525,NTS
PHP Extension Build API20100525,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*
Re: Ошибка SYSTEM WARNING:
Posted: 27 Sep 2012, 06:30
by Kirill
Попробуйте в config_inc.php прописать следующий код
Code: Select all
$g_default_timezone = 'Europe/Moscow';
Что у Вас получится?
Re: Ошибка SYSTEM WARNING:
Posted: 27 Sep 2012, 08:38
by Koseva
Давайте на перейдём "Ты"?
Попробовал как сказали результат тот же, что описан в предыдущем моём посте.
Указывал ещё такие варианты, но делу это не помогло.
Code: Select all
$g_default_timezone = 'Europe/Moscow'
$g_default_timezone = UTC+4
$g_default_timezone = 'UTC+4'
$g_default_timezone = 'UTC+4';
Может быть это связано с php? Думаю поставить более раннюю версию, как вариант. Пока идей больше в голову не идёт.
Re: Ошибка SYSTEM WARNING:
Posted: 28 Sep 2012, 07:58
by dregad
Sorry I don't speak Russian, Kirill dragged me into here
The error message you get, normally is triggered when there is no default timezone set in the system. Based on what you wrote this is not the case, and one of the first things Mantis does (in core.php), is to call date_default_timezone_set() in order to avoid the very warning you get.
Furthermore, if Goggle translated the page correctly, I understand that you get this message in the login page, which does not even call the log_event() function, so I'm a bit surprised that you get this message.
What settings do you have for $g_display_errors ? It may help to temporarily set everything to 'halt', and $g_show_detailed_errors = ON; that will give you a call stack trace which may help in understanding what is happening.
You also mention using PHP 5.4 - it's wouldn't be the first time we face errors on functions that were previously working fine, due to PHP issues, so if you have the chance to test with a 5.2 or 5.3 version, it may be useful as well.
Re: Ошибка SYSTEM WARNING:
Posted: 28 Sep 2012, 09:42
by Kirill
Koseva, Вы поняли, что попросил Damien сделать?
Необходимо поставить останавливаться при ошибках и выводить сообщение об ошибке.
Re: Ошибка SYSTEM WARNING:
Posted: 28 Sep 2012, 10:47
by Koseva
Багтрекер поднимаю на Fedore 17 с этого наверное стоило начать первую тему.
В итоге удалось решить проблему так, дело оказалось в SeLinux.
Пришлось выполнить команду
Code: Select all
setsebool -P httpd_can_network_connect 1
информацию дали добрые люди, дальше читал интернет.
http://fedoraproject.org/wiki/SELinux/apache
После этих действий ошибка ушла.
сейчас в php.ini такая запись
Code: Select all
; Defines the default timezone used by the date functions
;http://php.net/date.timezone
date.timezone = Europe/Moscow
Спасибо за помощь.