glpi-project / glpi-inventory-plugin

GLPI Inventory plugin
GNU Affero General Public License v3.0
46 stars 27 forks source link

Getting PHP warnings constantly when computers send Collect result #354

Closed redddcyclone closed 1 year ago

redddcyclone commented 1 year ago

Describe the bug

Hi. I keep getting PHP warnings when computers send Collect task results. These are the warnings I get:

image

This is the associated SQL error:

image

Apparently, this only happens when some registry keys I want to collect are not found ("Caminho não encontrado")

To reproduce

  1. Create a Collect data task that gets registry values
  2. Try to collect inexistent registry values from a computer
  3. Warnings or errors happen when some values are not found (apparently)

Expected behavior

No warnings or errors at all.

Operating system

Windows

GLPI Agent version

1.4

GLPI version

10.0.7

GLPIInventory plugin

1.2.1

Additional context

No response

stonebuzz commented 1 year ago

Hi @redddcyclone

can you try this :

https://github.com/glpi-project/glpi-inventory-plugin/pull/363

redddcyclone commented 1 year ago

Hi @stonebuzz

Just tested, no more errors showing up.

Thanks for the attention! I'll close this issue