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.

upgrade to 2.5 some info from Activity no list

I have done the upgrade from OCS server 2.4.1 to OCS 2.5 and now Machines contacted today , Machines Inventoried today from activity menu  and also Machines having a software deployment pending and Machines having a package error from other menu doesn't display the machine list.

I have installed ocs server 2.5 on a centos6 server with php 5.6.

On apache error log i have 

PHP Warning:  vsprintf(): Too few arguments in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 74


PHP Warning:  mysqli_query(): Empty query in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 103 

when i sign in to ocs and if i click on Machines Inventoried today from activity menu i have 

PHP Warning:  mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in /usr/share/ocsinventory-reports/ocsreports/require/function_search.php on line 617, referer: https://xxx.com/ocsreports/index.php?function=visu_search&fields=HARDWARE-LASTDATE&comp=tall&values=08/01/2018%2010:57&values2=&type_field=

Is this a bug ? How can i fix it?

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

4 Answers

0 votes

I had the same issue.
Please check. Thanks

by (140 points)
0 votes

I had the same issue too!!!

the problem occurs in two different linux installations, based on centos 7,

Log apache initial page:

[Thu Aug 09 11:44:29.436810 2018] [:error] [pid 17417] [client] PHP Warning:  vsprintf(): Too few arguments in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 74
[Thu Aug 09 11:44:29.436886 2018] [:error] [pid 17417] [client] PHP Warning:  mysqli_query(): Empty query in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 103

Log apache on click: "Machines not seen in more than 30 day(s)"

[Thu Aug 09 11:45:32.751417 2018] [:error] [pid 16922] [client] PHP Fatal error:  Can't use method return value in write context in /usr/share/ocsinventory-reports/ocsreports/require/search/TranslationSearch.php on line 224, referer: https://ocsinventory-ng.xxxxx.com.br/ocsreports/

by (220 points)
edited by
0 votes

Same issue on my side.

I've more than 600 snmp devices, but the home page still shows 0 machines
by (930 points)
0 votes
I have downgraded to version 2.4.1 to be able to fix the problem and i will wait for the next release.
by (730 points)
Powered by Question2Answer