pluginsGLPI / barcode

GNU Affero General Public License v3.0
36 stars 34 forks source link

Warning when reading QR-code. #89

Closed sypie closed 2 years ago

sypie commented 2 years ago

As I'm running GLPI and the Barcode plugin on an XAMPP server with access from outside my server I'm running into asmall issue.

By changing the localhost/ to the IP-address the server uses I get an error: Warning: getFromDBByCrit expects to get one result, 3 found in query "SELECT 'id' FROM 'glpi_computers' WHERE "otherserial' = "". in C:\xampp\htdocs\glpi\inc\commondbtm.class.php on line 354

The reason why I have to change localhost to the used IP-address of the server is because the server can't scan a QR-code. A telephone can.

sypie commented 2 years ago

Problem solved: Guess I checked an item in de create QR-options that are not filled. Like printing the serial in the QR while no serial is in the asset card.