InfotelGLPI / manageentities

Plugin manageentities for GLPI
http://blogglpi.infotel.com
GNU General Public License v2.0
9 stars 10 forks source link

php warning Invalid relations declared between "glpi_documents" and "glpi_plugin_manageentities_companies" table #37

Open ftoledo opened 3 months ago

ftoledo commented 3 months ago
[2024-08-05 19:25:05] glpiphplog.WARNING:   *** PHP User Warning (512): Invalid relations declared between "glpi_documents" and "glpi_plugin_manageentities_companies" table. Target field "logo_id" is not a foreign key field. in src/DbUtils.php at line 2207
  Backtrace :
  src/DbUtils.php:2207                               trigger_error()
  inc/db.function.php:585                            DbUtils->getDbRelations()
  src/CommonDBTM.php:877                             getDbRelations()
  src/CommonDBTM.php:797                             CommonDBTM->cleanRelationData()
  src/CommonDBTM.php:2100                            CommonDBTM->deleteFromDB()
  src/RuleMatchedLog.php:184                         CommonDBTM->delete()
  src/Inventory/Asset/MainAsset.php:924              RuleMatchedLog->cleanOlddata()
  src/RuleImportAsset.php:981                        Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/Rule.php:1533                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1660                        Rule->process()
  src/Inventory/Asset/MainAsset.php:577              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:725                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:356                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:364                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:90                       Glpi\Inventory\Request->inventory()
  src/Agent/Communication/AbstractRequest.php:359    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:271    Glpi\Agent\Communication\AbstractRequest->handleJSONRequest()
  front/inventory.php:95                             Glpi\Agent\Communication\AbstractRequest->handleRequest()
  index.php:93                                       include_once()
  public/index.php:82                                require()
J-C-P commented 2 months ago

Same here :-/

ftoledo commented 2 months ago

any workaround? I'm not sure if it makes any impact