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

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

`IPDISCOVER_LINK_TAG_NETWORK` is not set

Hi i have a problem witch my ocs inventory server

im trying to install ocs server 2.8 on my ubuntu 20.04 srv

when im trying to enable administration page http://xx.xx.xx.xx/ocsreports/install.php i got a blank screen

service apache2 status show me:

apachectl[663]: ocsinventory-server: Bad setting. `IPDISCOVER_LINK_TAG_NETWORK` is not set. Default: `0`
 

and here is my apache error.log

[Fri Feb 19 07:28:06.664599 2021] [mpm_prefork:notice] [pid 15123] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Fri Feb 19 07:28:06.665564 2021] [core:notice] [pid 15123] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 07:28:09.127235 2021] [mpm_prefork:notice] [pid 15123] AH00169: caught SIGTERM, shutting down
[Fri Feb 19 07:28:09.250427 2021] [mpm_prefork:notice] [pid 15344] AH00163: Apache/2.4.41 (Ubuntu) mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Fri Feb 19 07:28:09.250497 2021] [core:notice] [pid 15344] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 07:28:21.887677 2021] [mpm_prefork:notice] [pid 15344] AH00169: caught SIGTERM, shutting down
[Fri Feb 19 07:28:31.553000 2021] [mpm_prefork:notice] [pid 16722] AH00163: Apache/2.4.41 (Ubuntu) mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Fri Feb 19 07:28:31.553083 2021] [core:notice] [pid 16722] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 07:39:57.868675 2021] [mpm_prefork:notice] [pid 16722] AH00169: caught SIGTERM, shutting down
[Fri Feb 19 07:39:58.013502 2021] [mpm_prefork:notice] [pid 37302] AH00163: Apache/2.4.41 (Ubuntu) mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Fri Feb 19 07:39:58.013563 2021] [core:notice] [pid 37302] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 08:01:02.893204 2021] [mpm_prefork:notice] [pid 37302] AH00169: caught SIGTERM, shutting down
[Fri Feb 19 08:01:25.300790 2021] [mpm_prefork:notice] [pid 711] AH00163: Apache/2.4.41 (Ubuntu) mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Fri Feb 19 08:01:25.303489 2021] [core:notice] [pid 711] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 08:12:23.862781 2021] [mpm_prefork:notice] [pid 711] AH00169: caught SIGTERM, shutting down
[Fri Feb 19 08:12:24.384198 2021] [mpm_prefork:notice] [pid 3278] AH00163: Apache/2.4.41 (Ubuntu) mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Fri Feb 19 08:12:24.384250 2021] [core:notice] [pid 3278] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 08:12:48.279234 2021] [php7:error] [pid 3279] [client 172.16.3.219:5400] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 08:13:29.356325 2021] [mpm_prefork:notice] [pid 3278] AH00169: caught SIGTERM, shutting down
[Fri Feb 19 08:13:53.429727 2021] [mpm_prefork:notice] [pid 892] AH00163: Apache/2.4.41 (Ubuntu) mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Fri Feb 19 08:13:53.431334 2021] [core:notice] [pid 892] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 08:14:24.860773 2021] [php7:error] [pid 937] [client 172.16.3.219:5447] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 08:14:40.841346 2021] [php7:error] [pid 938] [client 172.16.3.219:5466] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 08:14:51.830443 2021] [php7:error] [pid 940] [client 172.16.3.219:5465] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
 

Can anyone help me ?

in OCS Inventory NG server for Unix by (240 points)

4 Answers

0 votes
Hi,

php-mbstring module is missing. Install it and retry.

Regards

Frank
by (83.8k points)
0 votes

im install mod mb string

error witch netdiscover still exists

in apach2 error.log i have this

[Fri Feb 19 09:01:15.101600 2021] [mpm_prefork:notice] [pid 903] AH00163: Apache/2.4.41 (Ubuntu) mod_perl/2.0.11 Perl/v5.30.0 configured -- resuming normal operations
[Fri Feb 19 09:01:15.103024 2021] [core:notice] [pid 903] AH00094: Command line: '/usr/sbin/apache2'
[Fri Feb 19 09:01:42.366891 2021] [php7:error] [pid 939] [client 172.16.3.219:19264] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 09:01:45.501811 2021] [php7:error] [pid 940] [client 172.16.3.219:19265] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 09:01:46.278972 2021] [php7:error] [pid 941] [client 172.16.3.219:19268] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 09:01:46.482669 2021] [php7:error] [pid 939] [client 172.16.3.219:19270] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 09:01:46.651130 2021] [php7:error] [pid 938] [client 172.16.3.219:19272] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 09:01:46.822911 2021] [php7:error] [pid 1232] [client 172.16.3.219:19274] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 09:01:46.982963 2021] [php7:error] [pid 939] [client 172.16.3.219:19276] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
[Fri Feb 19 09:01:51.354001 2021] [php7:error] [pid 938] [client 172.16.3.219:19278] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:67\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(85): generate_secure_sql()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure()\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(346): look_config_default_values()\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header()\n#4 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67
 

by (240 points)
0 votes
ok im change php version from 7.4 to 7.2 and it works
by (240 points)
0 votes
mysqli php module is installed ?
by (83.8k points)
 
Powered by Question2Answer
...