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-10-14 09:48:39

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

[Plugin][PDF v0.84.2] Errors into php-errors.log

The environment

  • GLPI 0.84.7

  • PDF 0.84.2

The error message

2014-10-14 09:42:31
Notice(8): Undefined index: netpoints_id
Backtrace :
/usr/local/share/glpi/plugins/pdf/inc/networkport.class.php:104         Toolbox::userErrorHandlerNormal()
/usr/local/share/glpi/plugins/pdf/inc/common.class.php:167              PluginPdfNetworkPort::pdfForItem()
/usr/local/share/glpi/plugins/pdf/inc/common.class.php:291              PluginPdfCommon::displayCommonTabForPDF()
/usr/local/share/glpi/plugins/pdf/front/export.php:60           PluginPdfCommon->generatePDF()

2014-10-14 09:42:31
Notice(8): Undefined index: netpoints_id
Backtrace :
/usr/local/share/glpi/plugins/pdf/inc/networkport.class.php:104         Toolbox::userErrorHandlerNormal()
/usr/local/share/glpi/plugins/pdf/inc/common.class.php:167              PluginPdfNetworkPort::pdfForItem()
/usr/local/share/glpi/plugins/pdf/inc/common.class.php:291              PluginPdfCommon::displayCommonTabForPDF()
/usr/local/share/glpi/plugins/pdf/front/export.php:60           PluginPdfCommon->generatePDF()

2014-10-14 09:42:31
PDF: don't know how to display Lock$1 tab\n

Tomás Abad

Offline

#2 2014-10-17 10:50:51

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

Re: [Plugin][PDF v0.84.2] Errors into php-errors.log

I have no problem with networkport.
Do you have the field netpoints_id in glpi_networkportethernets?


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-10-29 01:32:48

tabad
Member
From: Manzanares, Ciudad Real, Spain
Registered: 2011-09-23
Posts: 89

Re: [Plugin][PDF v0.84.2] Errors into php-errors.log

Hello Nelly,

Here you have the requested information.

mysql> describe glpi_networkportethernets;
+-----------------------------+-------------+------+-----+---------+----------------+
| Field                       | Type        | Null | Key | Default | Extra          |
+-----------------------------+-------------+------+-----+---------+----------------+
| id                          | int(11)     | NO   | PRI | NULL    | auto_increment |
| networkports_id             | int(11)     | NO   | UNI | 0       |                |
| items_devicenetworkcards_id | int(11)     | NO   | MUL | 0       |                |
| netpoints_id                | int(11)     | NO   | MUL | 0       |                |
| type                        | varchar(10) | YES  | MUL |         |                |
| speed                       | int(11)     | NO   | MUL | 10      |                |
+-----------------------------+-------------+------+-----+---------+----------------+
6 rows in set (0.00 sec)

mysql> show index from glpi_networkportethernets;
+---------------------------+------------+-----------------+--------------+-----------------------------+-----------+-------------+----------+--------+------+------------+---------+
| Table                     | Non_unique | Key_name        | Seq_in_index | Column_name                 | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+---------------------------+------------+-----------------+--------------+-----------------------------+-----------+-------------+----------+--------+------+------------+---------+
| glpi_networkportethernets |          0 | PRIMARY         |            1 | id                          | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| glpi_networkportethernets |          0 | networkports_id |            1 | networkports_id             | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| glpi_networkportethernets |          1 | card            |            1 | items_devicenetworkcards_id | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| glpi_networkportethernets |          1 | netpoint        |            1 | netpoints_id                | A         |           1 |     NULL | NULL   |      | BTREE      |         |
| glpi_networkportethernets |          1 | type            |            1 | type                        | A         |           1 |     NULL | NULL   | YES  | BTREE      |         |
| glpi_networkportethernets |          1 | speed           |            1 | speed                       | A         |           1 |     NULL | NULL   |      | BTREE      |         |
+---------------------------+------------+-----------------+--------------+-----------------------------+-----------+-------------+----------+--------+------+------------+---------+
6 rows in set (0.00 sec)

Regards,

Last edited by tabad (2014-10-29 01:35:34)


Tomás Abad

Offline

#4 2014-10-29 17:27:39

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

Re: [Plugin][PDF v0.84.2] Errors into php-errors.log

You have this error with which type of item?


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

Board footer

Powered by FluxBB