Skip to content

[BUG] All computers page is empty #1063

@KazimierzSyncron

Description

@KazimierzSyncron

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:

  1. Upgrade OCS server from 2.7 to 2.8, using setup.sh installation
  2. Go to 'All computers'
  3. Click on 'All computers' OR 'Active computers' OR 'Archived computers'
  4. See empty computer list

Expected behavior
All computers page should show all computers

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions