pluginsGLPI / ocsinventoryng

Plugin ocsinventoryng for GLPI
GNU General Public License v2.0
68 stars 52 forks source link

HP Warning: Undefined array key "link_with_user" #370

Open thenamelessthing opened 9 months ago

thenamelessthing commented 9 months ago

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

How can we fix these warning?

Thank you for your help.

thenamelessthing commented 8 months ago

@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?