Bug #5363

Errors with plugin PDF

Added by blerohellec over 4 years ago. Updated almost 3 years ago.

Status:ClosedStart date:06/05/2015
Priority:NormalDue date:
Assignee:yllen% Done:

100%

Category:-
Target version:2.1

Description

version 1.9.1

Print to PDF of an appliance : error on screen
Fatal error: Call to undefined function n() in /var/www/glpi084/plugins/appliances/inc/appliance.class.php on line 379.

Print to PDF of a computer, monitor.. : a Sql error is generated (extract hereafter)
There is also a php error.
The result is empty regarding appliances, whether the computer is linked to an appliance, or not.

SQL: SELECT `glpi_plugin_appliances_appliances_items`.`id` AS entID,
`glpi_plugin_appliances_appliances`.*
FROM `glpi_plugin_appliances_appliances_items`,
`glpi_plugin_appliances_appliances`
LEFT JOIN `glpi_entities`
ON (`glpi_entities`.`id` = `glpi_plugin_appliances_appliances`.`entities_id`)
WHERE `glpi_plugin_appliances_appliances_items`.`items_id` = \'1
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1' at line 7
Backtrace :
/var/www/glpi084/plugins/appliances/inc/appliance_item.class.php :287 DBmysql->query()
/var/www/glpi084/plugins/appliances/inc/appliance_item.class.php :660 PluginAppliancesAppliance_Item::pdfForItem()
/var/www/glpi084/plugins/pdf/inc/common.class.php :308 PluginAppliancesAppliance_Item::displayTabContentForPDF()
/var/www/glpi084/plugins/pdf/front/export.php :60 PluginPdfCommon->generatePDF()
/var/www/glpi084/plugins/pdf/front/export.php

Associated revisions

Revision 228
Added by yllen over 3 years ago

fix errors with PDF - fixed #5363

Revision 229
Added by yllen over 3 years ago

fix error with PDF - fixed #5363

History

#1 Updated by yllen over 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r228.

#2 Updated by yllen over 3 years ago

Applied in changeset r229.

#3 Updated by yllen over 3 years ago

  • Assignee set to yllen
  • Target version set to 1202

#4 Updated by yllen almost 3 years ago

  • Status changed from Resolved to Closed
  • Target version changed from 1202 to 2.1

Also available in: Atom PDF