-
Notifications
You must be signed in to change notification settings - Fork 156
Description
OCS Inventory version
Version : 2.8 (setup.sh installation)
Ubuntu 20.04
Apache 2.4.46
PHP 7.4
Perl 5.30
MariaDB 10.3.25
Describe the bug
After upgrading 2.7 to 2.8 the "All computers" page shows 0 entries - in "All computers", "Active computers" and "Archived computers".
On dashboard I see all 424 computers, I can find them also using "Search with various criteria" page. So there's something wrong with "All computers".
Tested on different browser, with no extensions that might interfere with any scripts. Same results.
The agent version also does not affect this case - tested versions 2.4.2, 2.6, 2.7 and 2.8
To Reproduce
Steps to reproduce the behavior:
- Upgrade OCS server from 2.7 to 2.8, using setup.sh installation
- Go to 'All computers'
- Click on 'All computers' OR 'Active computers' OR 'Archived computers'
- See empty computer list
Expected behavior
All computers page should show all computers
Screenshots
If applicable, add screenshots to help explain your problem.


Log file (optional)
The only errors I get in apache error.log are:
[perl:error] [pid 26086:tid 140683255932672] [client 192.168.12.14:55170] Not a HASH reference at /usr/local/share/perl/5.30.0/Apache/Ocsinventory/Server/Capacities/Ipdiscover.pm line 156.\
[proxy_fcgi:error] [pid 26086:tid 140683500136192] [client 192.168.12.13:51085] AH01071: Got error 'PHP message: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/search/Search.php on line 1127', referer: https://ocs.syncron.team/ocsreports/index.php?first
First error is already reported in UnixAgent project.