-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
GLPI Version
10.0.19
Plugin version
1.0.3
Bug description
When some agents sends inventory, I have still an error on php and inc/task.class (line 177)
the content of $computer
ordi : O:8:"Computer":22:{s:9:"dohistory";b:1;s:7:"devices";a:0:{}s:13:" * usenotepad";b:1;s:6:"fields";a:0:{}s:5:"input";a:0:{}s:7:"updates";a:0:{}s:9:"oldvalues";a:0:{}s:17:"history_blacklist";a:0:{}s:22:"auto_message_on_action";b:1;s:12:"no_form_page";b:0;s:33:"additional_fields_for_dictionnary";a:0:{}s:10:" * fkfield";s:0:"";s:12:" * searchopt";b:0;s:14:"taborientation";s:8:"vertical";s:23:"get_item_to_display_tab";b:1;s:32:"deduplicate_queued_notifications";b:1;s:5:"right";N;s:7:" * type";i:-1;s:14:" * displaylist";b:1;s:9:"showdebug";b:0;s:19:" * last_clone_index";N;s:8:" * agent";N;}
there is fields array, but it's empty ?
Relevant log output
[2025-09-10 10:28:58] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "id" in D:\wamp\www\glpi\plugins\databaseinventory\inc\task.class.php at line 177
Backtrace :
src\Plugin.php:1763 PluginDatabaseinventoryTask::handleInventoryTask()
src\Inventory\Request.php:420 Plugin::doHookFunction()
src\Inventory\Request.php:130 Glpi\Inventory\Request->handleInventoryTask()
src\Inventory\Request.php:340 Glpi\Inventory\Request->handleTask()
src\Inventory\Request.php:83 Glpi\Inventory\Request->contact()
src\Agent\Communication\AbstractRequest.php:359 Glpi\Inventory\Request->handleAction()
src\Agent\Communication\AbstractRequest.php:271 Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
front\inventory.php:100 Glpi\Agent\Communication\AbstractRequest->handleRequest()
plugins\glpiinventory\front\communication.php:72 include_once()
plugins\glpiinventory\index.php:45 include_once()Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response