fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
362 stars 150 forks source link

[9.2-2.0] PHP Erorrs #2439

Open AircraftRu opened 6 years ago

AircraftRu commented 6 years ago

GLPI 9.2.1 fusioninventory-for-glpi 9.2-1.1 dev There are a lot of reports.

2018-01-19 11:28:05 [6@glpi]
  *** PHP Notice(8): Undefined index: name
  Backtrace :
  ...nventory/inc/inventorycomputerlib.class.php:185 
  ...ry/inc/inventorycomputerinventory.class.php:562 PluginFusioninventoryInventoryComputerLib->updateComputer()
  ...inventory/inc/inventoryruleimport.class.php:781 PluginFusioninventoryInventoryComputerInventory->rulepassed()
  inc/rule.class.php:1427                            PluginFusioninventoryInventoryRuleImport->executeActions()
  inc/rulecollection.class.php:1459                  Rule->process()
  ...ry/inc/inventorycomputerinventory.class.php:375 RuleCollection->processAllRules()
  ...ry/inc/inventorycomputerinventory.class.php:127 PluginFusioninventoryInventoryComputerInventory->sendCriteria()
  ...fusioninventory/inc/communication.class.php:235 PluginFusioninventoryInventoryComputerInventory->import()
  ...fusioninventory/inc/communication.class.php:463 PluginFusioninventoryCommunication->import()
  plugins/fusioninventory/front/communication.php:93 PluginFusioninventoryCommunication->handleOCSCommunication()
  plugins/fusioninventory/index.php:59               include_once()
2018-01-19 11:45:34 [6@glpi]
2018-01-19 10:34:16 [6@glpi]
  *** PHP Notice(8): Array to string conversion
  Backtrace :
  inc/commondbtm.class.php:360                       
  inc/commondbtm.class.php:1146                      CommonDBTM->updateInDB()
  ...nventory/inc/inventorycomputerlib.class.php:237 CommonDBTM->update()
  ...ry/inc/inventorycomputerinventory.class.php:562 PluginFusioninventoryInventoryComputerLib->updateComputer()
  ...inventory/inc/inventoryruleimport.class.php:781 PluginFusioninventoryInventoryComputerInventory->rulepassed()
  inc/rule.class.php:1427                            PluginFusioninventoryInventoryRuleImport->executeActions()
  inc/rulecollection.class.php:1459                  Rule->process()
  ...ry/inc/inventorycomputerinventory.class.php:375 RuleCollection->processAllRules()
  ...ry/inc/inventorycomputerinventory.class.php:127 PluginFusioninventoryInventoryComputerInventory->sendCriteria()
  ...fusioninventory/inc/communication.class.php:235 PluginFusioninventoryInventoryComputerInventory->import()
  ...fusioninventory/inc/communication.class.php:463 PluginFusioninventoryCommunication->import()
  plugins/fusioninventory/front/communication.php:93 PluginFusioninventoryCommunication->handleOCSCommunication()
  plugins/fusioninventory/index.php:59               include_once()
wawax commented 6 years ago

Hello,

Please provide an XML file so we can try to reproduce the issue.

Thank you.

AircraftRu commented 6 years ago

Hello, I don't know what a PC is reason these errors.

AircraftRu commented 6 years ago

Fusioninventory for glpi 9.2-2.0-RC1 A lot of errors:

2018-03-26 08:40:00 [6@glpi] PHP Warning(2): strtolower() expects parameter 1 to be string, array given Backtrace : :
...ventory/inc/inventorycomputerlib.class.php:2740 strtolower() ...nventory/inc/inventorycomputerlib.class.php:821 PluginFusioninventoryInventoryComputerLib->importSoftware() ...ry/inc/inventorycomputerinventory.class.php:560 PluginFusioninventoryInventoryComputerLib->updateComputer() ...inventory/inc/inventoryruleimport.class.php:790 PluginFusioninventoryInventoryComputerInventory->rulepassed() inc/rule.class.php:1436 PluginFusioninventoryInventoryRuleImport->executeActions() inc/rulecollection.class.php:1461 Rule->process() ...ry/inc/inventorycomputerinventory.class.php:361 RuleCollection->processAllRules() ...ry/inc/inventorycomputerinventory.class.php:126 PluginFusioninventoryInventoryComputerInventory->sendCriteria() ...fusioninventory/inc/communication.class.php:235 PluginFusioninventoryInventoryComputerInventory->import() ...fusioninventory/inc/communication.class.php:463 PluginFusioninventoryCommunication->import() plugins/fusioninventory/front/communication.php:93 PluginFusioninventoryCommunication->handleOCSCommunication() plugins/fusioninventory/index.php:59 include_once() 2018-03-26 08:40:00 [6@glpi]
PHP Notice(8): Array to string conversion Backtrace : :
...ventory/inc/inventorycomputerlib.class.php:2745 sprintf() ...nventory/inc/inventorycomputerlib.class.php:821 PluginFusioninventoryInventoryComputerLib->importSoftware() ...ry/inc/inventorycomputerinventory.class.php:560 PluginFusioninventoryInventoryComputerLib->updateComputer() ...inventory/inc/inventoryruleimport.class.php:790 PluginFusioninventoryInventoryComputerInventory->rulepassed() inc/rule.class.php:1436 PluginFusioninventoryInventoryRuleImport->executeActions() inc/rulecollection.class.php:1461 Rule->process() ...ry/inc/inventorycomputerinventory.class.php:361 RuleCollection->processAllRules() ...ry/inc/inventorycomputerinventory.class.php:126 PluginFusioninventoryInventoryComputerInventory->sendCriteria() ...fusioninventory/inc/communication.class.php:235 PluginFusioninventoryInventoryComputerInventory->import() ...fusioninventory/inc/communication.class.php:463 PluginFusioninventoryCommunication->import() plugins/fusioninventory/front/communication.php:93 PluginFusioninventoryCommunication->handleOCSCommunication() plugins/fusioninventory/index.php:59 include_once()

tabad commented 6 years ago

Hello @AircraftRu and @wawax,

Yes, I have the php-errors.log file totally full of these PHP error messages.

Environment

PHP Warning(2): strtolower() expects parameter 1 to be string, array given

2018-06-08 17:17:40 [6@inventario.sescam.jclm.es]
  *** PHP Warning(2): strtolower() expects parameter 1 to be string, array given
  Backtrace :
  :
  ...usioninventory/inc/formatconvert.class.php:1716 strtolower()
  ...ry/inc/inventorycomputerinventory.class.php:502 PluginFusioninventoryFormatconvert->computerSoftwareTransformation()
  ...inventory/inc/inventoryruleimport.class.php:795 PluginFusioninventoryInventoryComputerInventory->rulepassed()
  inc/rule.class.php:1436                            PluginFusioninventoryInventoryRuleImport->executeActions()
  inc/rulecollection.class.php:1461                  Rule->process()
  ...ry/inc/inventorycomputerinventory.class.php:361 RuleCollection->processAllRules()
  ...ry/inc/inventorycomputerinventory.class.php:126 PluginFusioninventoryInventoryComputerInventory->sendCriteria()
  ...fusioninventory/inc/communication.class.php:234 PluginFusioninventoryInventoryComputerInventory->import()
  ...fusioninventory/inc/communication.class.php:463 PluginFusioninventoryCommunication->import()
  plugins/fusioninventory/front/communication.php:93 PluginFusioninventoryCommunication->handleOCSCommunication()
  plugins/fusioninventory/index.php:59               include_once()

PHP Notice(8): Array to string conversion

2018-06-08 17:17:40 [6@inventario.sescam.jclm.es]
  *** PHP Notice(8): Array to string conversion
  Backtrace :
  ...ventory/inc/inventorycomputerlib.class.php:2067
  ...ventory/inc/inventorycomputerlib.class.php:2680 PluginFusioninventoryInventoryComputerLib->loadSoftwares()
  ...nventory/inc/inventorycomputerlib.class.php:822 PluginFusioninventoryInventoryComputerLib->importSoftware()
  ...ry/inc/inventorycomputerinventory.class.php:556 PluginFusioninventoryInventoryComputerLib->updateComputer()
  ...inventory/inc/inventoryruleimport.class.php:795 PluginFusioninventoryInventoryComputerInventory->rulepassed()
  inc/rule.class.php:1436                            PluginFusioninventoryInventoryRuleImport->executeActions()
  inc/rulecollection.class.php:1461                  Rule->process()
  ...ry/inc/inventorycomputerinventory.class.php:361 RuleCollection->processAllRules()
  ...ry/inc/inventorycomputerinventory.class.php:126 PluginFusioninventoryInventoryComputerInventory->sendCriteria()
  ...fusioninventory/inc/communication.class.php:234 PluginFusioninventoryInventoryComputerInventory->import()
  ...fusioninventory/inc/communication.class.php:463 PluginFusioninventoryCommunication->import()
  plugins/fusioninventory/front/communication.php:93 PluginFusioninventoryCommunication->handleOCSCommunication()
  plugins/fusioninventory/index.php:59               include_once()

Regards,

tabad commented 6 years ago

Hello again,

I truncated the php-errors.log file yesterday. This is its content now.

Regards,