ocsinventoryng icon indicating copy to clipboard operation
ocsinventoryng copied to clipboard

HP Warning: Undefined array key "link_with_user"

Open thenamelessthing opened this issue 2 years ago • 1 comments

Hi, we have checked our log and we see this warning message:

PHP Warning: Undefined array key "link_with_user" in /var/www/html/glpi/plugins/ocsinventoryng/inc/hardware.class.php on line 103 .PHP Warning: Undefined array key "link_with_user" in /var/www/html/glpi/plugins/ocsinventoryng/inc/hardware.class.php on line 103 PHP Warning: Undefined array key "link_with_user" in /var/www/html/glpi/plugins/ocsinventoryng/inc/hardware.class.php on line 216 PHP Warning: Undefined array key "link_with_user" in /var/www/html/glpi/plugins/ocsinventoryng/inc/hardware.class.php on line 416

  • OCS Inventory NG plugin version 2.0.4
  • GLPI version 10.0.7

How can we fix these warning?

Thank you for your help.

thenamelessthing avatar Nov 13 '23 15:11 thenamelessthing

@tsmr, désolé de t'avoir tagué. Mais tu semble être la dernière personne à voir été active sur ce plugin.

Nos journaux sont innondé de ce message d'erreur.

==> ocsng_fullsync.log <== PHP Warning: Undefined array key "link_with_user" in /var/www/html/glpi/plugins/ocsinventoryng/inc/hardware.class.php on line 103 . ==> php-errors.log <== [2023-12-14 09:00:59] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "link_with_user" in /var/www/html/glpi/plugins/ocsinventoryng/inc/hardware.class.php at line 103 Backtrace : plugins/ocsinventoryng/inc/ocslink.class.php:1326 PluginOcsinventoryngHardware::getHardwareLockableFields() plugins/ocsinventoryng/inc/ocslink.class.php:1284 PluginOcsinventoryngOcslink::getLockableFields() ...ins/ocsinventoryng/inc/ocsprocess.class.php:922 PluginOcsinventoryngOcslink::getLocksForComputer() ...ins/ocsinventoryng/inc/ocsprocess.class.php:480 PluginOcsinventoryngOcsProcess::synchronizeComputer() ...s/ocsinventoryng/scripts/ocsng_fullsync.php:461 PluginOcsinventoryngOcsProcess::processComputer() ...s/ocsinventoryng/scripts/ocsng_fullsync.php:299 plugin_ocsinventoryng_importFromOcsServer() ...s/ocsinventoryng/scripts/ocsng_fullsync.php:166 SecondPass()

Est-ce un problème avec une solution connu ou carrément un nouveau bogue?

thenamelessthing avatar Dec 14 '23 15:12 thenamelessthing