Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

OCS Inventory 2.1.2. Mysql_connect and Timezone

Hi! I have installed gentoo and OCS Inventory 2.1.2. When I go to  http://ip-address/ocsreports, I still receive the following message:

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 10

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 /usr/share/ocsinventory-reports/ocsreports/require/function_files.php on line 20

Of course, I could disable them in php, maybe it's dangerous?

in Administrative console by (280 points)

2 Answers

+1 vote
Hi

First message concerns php functions used for connecting to mysql. This has been corrected in the next version.

Second message : edit your php.ini file, locate date.timezone field, set it to your zone, save and restart apache.

Regards

Frank
by (90.4k points)
0 votes
thanks for your quick response
by (280 points)
 
Powered by Question2Answer
...