You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-03-02 16:04:41

Bruce79
Member
Registered: 2012-05-23
Posts: 34

Plugin badges

When trying to install Badges 2.1.1 on glpi 0.90.1 I get the following error:

Incorrect integer value: '' for column 'id' at row 1

Whe I look in the sql-errors.log

I see the following

*** MySQL query error:
  SQL: INSERT INTO `glpi_notificationtemplates`(`id`, `name`, `itemtype`, `date_mod`, `comment`, `css`) VALUES (\'\',\'Access Badges Return\',\'PluginBadgesBadge\', NOW(),\'\',\'\');
  Error: Incorrect integer value: '' for column 'id' at row 1
  Backtrace :
  plugins\badges\hook.php:130                       
  inc\plugin.class.php:643                           plugin_badges_install()
  :                                                  Plugin->install()
  front\plugin.form.php:49                           call_user_func()

Offline

#2 2016-03-02 16:12:32

Bruce79
Member
Registered: 2012-05-23
Posts: 34

Re: Plugin badges

note: solved by accessing the mysql database...

checking the last id number with:
select max(id) from glpi.glpi_notificationtemplates;

manually inserting the correct id with:
INSERT INTO glpi.glpi_notificationtemplates(id, name, itemtype, date_mod, comment, css) VALUES (40,'Access Badges Return','PluginBadgesBadge', NOW(),'','');

Offline

#3 2016-03-02 16:14:18

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Plugin badges


Xavier Caillaud
Blog GLPI Infotel

Offline

Board footer

Powered by FluxBB