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 2014-07-28 06:19:57

lexa500
Member
Registered: 2014-03-21
Posts: 20

Add new printer problem

Hello! When I try to add new printer manually, it does not work correctly
it adds an item with id=0 and also gives errors in debug mode
PHP Catchable Fatal Error: Argument 3 passed to Search::giveItem() must be an array, null given, called in /usr/share/glpi/inc/search.class.php on line 1094 and defined in /usr/share/glpi/inc/search.class.php at line 3924
so if i add several printers - it gives me several devices with id=0 in sql table, and i cannnot edit them in glpi.


glpi 0.84.7, FI 0.84+3.1 and some more plugins

Offline

#2 2014-07-28 17:31:26

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Add new printer problem

Version of glpi used?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2014-07-29 08:10:25

lexa500
Member
Registered: 2014-03-21
Posts: 20

Re: Add new printer problem

yllen wrote:

Version of glpi used?

0.84+3.1 FI
GLPI 0.84.7


glpi 0.84.7, FI 0.84+3.1 and some more plugins

Offline

#4 2014-07-29 17:05:18

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Add new printer problem

How do you add manually a printer ?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2014-08-04 12:19:17

lexa500
Member
Registered: 2014-03-21
Posts: 20

Re: Add new printer problem

fixed by turning on autoincrement on id field in mysql


glpi 0.84.7, FI 0.84+3.1 and some more plugins

Offline

Board footer

Powered by FluxBB