InfotelGLPI / resources

Plugin resources for GLPI
http://blogglpi.infotel.com
GNU General Public License v2.0
15 stars 12 forks source link

plugin generates phperrors in phplogfile : Invalid relations declared for "glpi_ticketcategories" table. #123

Open ladenree76000 opened 1 year ago

ladenree76000 commented 1 year ago

it stops when plugin is deactivated

Giudy commented 10 months ago

I can confirm the issue with glpi 10.0.9 and plugin 3.0.4

NeueMedienBecker commented 9 months ago

can confirm the problem

[2023-10-12 08:40:44] glpiphplog.WARNING: *** PHP User Warning (512): Invalid relations declared for "glpi_ticketcategories" table. Table does not correspond to a known itemtype. in /home/users/glpi/www/src/DbUtils.php at line 2064 Backtrace : src/DbUtils.php:2064 trigger_error() inc/db.function.php:585 DbUtils->getDbRelations() src/CommonDBTM.php:866 getDbRelations() src/CommonDBTM.php:788 CommonDBTM->cleanRelationData() src/CommonDBTM.php:2068 CommonDBTM->deleteFromDB() src/RuleMatchedLog.php:183 CommonDBTM->delete() src/Inventory/Asset/MainAsset.php:865 RuleMatchedLog->cleanOlddata() src/RuleImportAsset.php:969 Glpi\Inventory\Asset\MainAsset->rulepassed() src/Rule.php:1533 RuleImportAsset->executeActions() src/RuleCollection.php:1640 Rule->process() src/Inventory/Asset/MainAsset.php:574 RuleCollection->processAllRules() src/Inventory/Inventory.php:722 Glpi\Inventory\Asset\MainAsset->handle() src/Inventory/Inventory.php:353 Glpi\Inventory\Inventory->handleItem() src/Inventory/Request.php:360 Glpi\Inventory\Inventory->doInventory() src/Inventory/Request.php:90 Glpi\Inventory\Request->inventory() src/Agent/Communication/AbstractRequest.php:332 Glpi\Inventory\Request->handleAction() src/Agent/Communication/AbstractRequest.php:269 Glpi\Agent\Communication\AbstractRequest->handleXMLRequest() front/inventory.php:94 Glpi\Agent\Communication\AbstractRequest->handleRequest() ...tplace/glpiinventory/front/communication.php:72 include_once() marketplace/glpiinventory/index.php:45 include_once() public/index.php:82 require()

GLPI 10.0.10

Rom1-B commented 5 months ago

@tsmr has already corrected the case on the master branch, but this is not included in version 3.0.4.

You just need to comment this line to get rid of the warning:

image

https://github.com/InfotelGLPI/resources/commit/9c68b5d04a8a2dac340bc60ea2f7ae7b19610939