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.11.1 available

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

PHP Deprecated: htmlspecialchars():

Hi. 
I see many errors in /var/log/php-fpm/www-error.log.

PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/share/ocsinventory-reports/ocsreports/require/function_table_html.php on line 1621

and a few errors:

PHP Deprecated:  mysqli_real_connect(): Passing null to parameter #8 ($flags) of type int is deprecated in /usr/share/ocsinventory-reports/ocsreports/backend/require/connexion.php on line 45

The server is working corectly. I haven't noticed any operation or performance problems in OCS Inventory server so far. 

My server configuration is:
//--------------------------------------------------- 

OS Name :          Linux x86_64
Version :          5.15.0-8.91.4.1.el9uek.x86_64
RAM installed :    3460 MB
Free RAM :         761 MB
CPU :              Intel(R) Xeon(R) Gold 6246R CPU @ 3.40GHz
Distribution :     Oracle Linux Server 9.1
PHP Version : 8.2.2
Web Server :        Apache/2.4.53 (Oracle Linux Server) OpenSSL/3.0.1 mod_perl/2.0.12 Perl/v5.32.1
Database Server :   MariaDB Server version 10.5.16-MariaDB
Version OCSReports: 2.11.1

Installed plugins: 
//-----------------------------------------------------
Event Logs
GPResult
Office Pack
Services Windows
Shared Folders
Machine Uptime
Winusers

Growth of /var/log/php-fpm/www-error.log file is about 230MB for 4 days (almost 800 computers inventoried).
Why errors show in log file? Or if it must be as is how to disable log this information to file?

I'd be grateful for any information.
Sincerely, Dominik

in OCS Inventory NG server for Unix by (160 points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...