InfotelGLPI / printercounters

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

No record history (Résolu) #26

Closed samakehamed closed 7 years ago

samakehamed commented 7 years ago

Hi, Sorry for my english, i'm french speaker. I've newly install the plugin printercounters 1.3.0 with GLPI 9.1.6. By clicking on Immediate Record, i got No historical. Running GLPI in debug mode, when i click on immediate record, i get the following messages: PHP Warning: Illegal string offset 'table' in /var/www/html/glpi/plugins/printercounters/inc/search.class.php at line 1728 PHP Warning: Illegal string offset 'field' in /var/www/html/glpi/plugins/printercounters/inc/search.class.php at line 1729 PHP Warning: Illegal string offset 'linkfield' in /var/www/html/glpi/plugins/printercounters/inc/search.class.php at line 1742 PHP Warning: Illegal string offset 'table' in /var/www/html/glpi/plugins/printercounters/inc/record.class.php at line 258 PHP Warning: Illegal string offset 'table' in /var/www/html/glpi/plugins/printercounters/inc/record.class.php at line 261 PHP Notice: Trying to get property of non-object in /var/www/html/glpi/inc/dbmysql.class.php at line 268

How could i fix it? Thanks in advance

amma35 commented 7 years ago

Do you have any error logs files/__log/sql-errors.log ?

samakehamed commented 7 years ago

Hello amma35, Yes i have.

sql-errors.log.txt

amma35 commented 7 years ago

Quelle est la version du plugin tag ? L'erreur concerne ce plugin.

samakehamed commented 7 years ago

La version du plugin tag est 2.0.1

amma35 commented 7 years ago

Pouvez-vous désactiver le plugin tag pour vérifier que cela vient d'un conflit entre les deux plugins ?

samakehamed commented 7 years ago

Après désactivation du plugin tag, le message d'erreur a disparu, et l'historique des relevés s'affiche correctement. L'erreur venait donc d'un conflit entre les deux plugins. Merci amma35 pour ton aide

amma35 commented 7 years ago

Il faudrait apporter cette modification dans le plugin tag, fichier tag.class.php, function getBlacklistItemtype() à la ligne 26 :

--- a/inc/tag.class.php
+++ b/inc/tag.class.php
@@ -23,6 +23,7 @@ class PluginTagTag extends CommonDropdown {
          'Crontask',
          'PluginFormcreatorFormanswer',
          'QueuedMail',
+         'PluginPrintercountersRecord'
       ];
    }
samakehamed commented 7 years ago

J'ai modifié le fichier tag.class.php comme tu me l'a indiqué et activé le plugin tag. L'historique s'affiche correctement. Problème résolu. Merci amma35