ericferon / glpi-archimap

GLPI plugin for drawing architecture maps (based on draw.io)
GNU General Public License v2.0
19 stars 10 forks source link

sql-errors.log throws an error #21

Closed JoRoSouth closed 5 years ago

JoRoSouth commented 5 years ago

[2019-06-13 15:53:18] glpisqllog.ERROR: DBmysql::query() in /var/www/html/inc/dbmysql.class.php line 177 *** MySQL query error: SQL: INSERT IGNORE glpi_plugin_archimap_graphs_items (plugin_archimap_graphs_id,items_id,itemtype) values Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 Backtrace : ...ww/html/plugins/archimap/front/linkgraph.php:52 {"user":"7@localhost"}

Error message happens when I save the drawing pan diagram only. It doesn't seem to cause any known issue.

Currently running GLPI 9.4.2 and archimap v2.1.0

ericferon commented 5 years ago

I cannot reproduce the error. This piece of code builds the list of associated items. So, it's probably due to your specific diagram, containing maybe only 1 asset, or several times the same one, or ... Can you give me more tips ? Best regards,