Some of our users get error 500 when going to the OCSreports URL:
and the apache logs gives out this error:
[Mon Dec 05 11:55:14.235822 2022] [php7:error] [pid 730059] [client 10.194.16.218:53667] PHP Fatal error: Uncaught TypeError: Argument 1 passed to XMLUrlsSerializer::serialize() must be an instance of Urls, bool given, called in /usr/share/ocsinventory-reports/ocsreports/require/config/include.php on line 57 and defined in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLUrlsSerializer.php:29\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/config/include.php(57): XMLUrlsSerializer->serialize()\n#1 /usr/share/ocsinventory-reports/ocsreports/require/config/include.php(46): migrate_urls_2_2()\n#2 /usr/share/ocsinventory-reports/ocsreports/backend/identity/methode/local.php(48): migrate_config_2_2()\n#3 /usr/share/ocsinventory-reports/ocsreports/backend/identity/identity.php(32): require_once('/usr/share/ocsi...')\n#4 /usr/share/ocsinventory-reports/ocsreports/require/header.php(330): require_once('/usr/share/ocsi...')\n#5 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#6 {main}\n thrown in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLUrlsSerializer.php on line 29
We cant figure out why it works for some but not for others.