Skip to content

Warning: Invalid relations declared between "glpi_printers" and "glpi_plugin_printercounters_items_billingmodels" on GLPI 10.0.7 #92

@ftoledo

Description

@ftoledo

hi all!
i just update to glpi 10.0.7 and get this warning message

PHP Warning:  Invalid relations declared between "glpi_printers" and "glpi_plugin_printercounters_items_billingmodels" table. Target field "items_id" is not a foreign key field. in //html/src/DbUtils.php on line 2144
PHP Stack trace:
PHP   1. {main}() //html/front/cron.php:0
PHP   2. CronTask::launch($mode = 2, $max = '5', $name = *uninitialized*) //html/front/cron.php:83
PHP   3. PluginGlpiinventoryTaskjobstate::cronCleantaskjob(class CronTask { public $dohistory = TRUE; private $timer = 1681297201.6635; private $startlog = 5482423; private $volume = 0; public $fields = ['date_creation' => '2018-07-14 01:12:16', 'date_mod' => '2018-07-14 01:12:16', 'id' => 49, 'itemtype' => 'PluginGlpiinventoryTaskjobstate', 'name' => 'cleantaskjob', 'frequency' => 86400, 'param' => NULL, 'state' => 1, 'mode' => 2, 'allowmode' => 3, 'hourmin' => 0, 'hourmax' => 24, 'logs_lifetime' => 30, 'lastrun' => '2023-04-11 08:00:00', 'lastcode' => NULL, 'comment' => NULL, 'ISPLUGIN' => 1]; public $input = []; public $updates = []; public $oldvalues = []; public $history_blacklist = []; public $auto_message_on_action = TRUE; public $no_form_page = FALSE; public $additional_fields_for_dictionnary = []; protected $fkfield = ''; protected $searchopt = FALSE; public $taborientation = 'vertical'; public $get_item_to_display_tab = TRUE; protected $usenotepad = FALSE; public $deduplica
 te_queued_notifications = TRUE; public $right = NULL; protected $type = -1; protected $displaylist = TRUE; public $showdebug = FALSE }) //html/src/CronTask.php:1018

plugin version 2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions