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 2016-10-06 08:52:52

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

pdf plugin glpi version 9.1

I thought i read a thread with pdf plugin and it should be compatible with 9.1 but i dont't find it and the actually version don't work.
If there is a version which should work please post the download link.


I get this message in 9.1 and so i can't install it.

Print to pdf    1.0.2    GPLv3+    Not installed    Remi Collet, Nelly Mahu-Lasson    Web    Yes    This plugin requires GLPI >= 0.85.3


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#2 2016-10-06 12:01:06

Tachyon
Member
From: Ukraine
Registered: 2016-10-06
Posts: 12

Re: pdf plugin glpi version 9.1

You can comment out version compare function in setup.php file, located in the plugin directory.

Offline

#3 2016-10-06 12:55:22

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: pdf plugin glpi version 9.1

thanks, now i can activate it, but the plugin doesn't work or have error.

In debug mode on 9.1 system i got this error. (or nomal http 500 errror)


PHP Notice: Use of undefined constant GLPI_TCPDF_DIR - assumed 'GLPI_TCPDF_DIR' in /var/www/glpi/plugins/pdf/inc/simplepdf.class.php at line 35
PHP Warning: require_once(GLPI_TCPDF_DIR/tcpdf.php): failed to open stream: No such file or directory in /var/www/glpi/plugins/pdf/inc/simplepdf.class.php at line 35

Fatal error: require_once(): Failed opening required 'GLPI_TCPDF_DIR/tcpdf.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/glpi/plugins/pdf/inc/simplepdf.class.php on line 35

Last edited by KKAdmin (2016-10-06 12:58:29)


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#4 2016-10-06 15:04:12

Tachyon
Member
From: Ukraine
Registered: 2016-10-06
Posts: 12

Re: pdf plugin glpi version 9.1

You can try to change simplepdf.class.php, line 35 from

require_once(GLPI_TCPDF_DIR.'/tcpdf.php');

to

require_once(GLPI_ROOT.'/lib/tcpdf/tcpdf.php');

but not sure if it works.

Offline

#5 2016-10-06 15:59:09

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

Re: pdf plugin glpi version 9.1

You actually don't have version PDF compatible with 9.1.


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

#6 2016-10-06 18:07:23

Langundo
Member
Registered: 2016-07-21
Posts: 71

Re: pdf plugin glpi version 9.1

I habe change the simplepdf.class.php line 35 to
require_once(GLPI_ROOT.'/vendor/tecnickcom/tcpdf/tcpdf.php');
So I can print Assets to pdf.

But when I try to print Tickets to pdf I get an error:

PHP Notice: Undefined index: slas_id in C:\Program Files (x86)\Ampps\www\glpi\plugins\pdf\inc\ticket.class.php at line 82
TCPDF ERROR: Some data has already been output, can't send PDF file

Any idea to solve this or wich version of pdf plugin I shoul try to use?


Debian 11.7 - PHP 7.4.33 - MariaDB 10.5.19 - 10.0.8-dev

Offline

#7 2016-10-06 18:42:17

Tachyon
Member
From: Ukraine
Registered: 2016-10-06
Posts: 12

Re: pdf plugin glpi version 9.1

In the file ticket.class.php rename all "slas_id" entries to "slts_id".

Offline

#8 2016-10-06 19:11:27

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: pdf plugin glpi version 9.1

Comme l'a dit yllen, la version compatible 9.1 n'est pas prête.

Arrêtez vos bricolages (les 2 modifs proposées sont fausses)


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#9 2016-10-06 19:28:53

Langundo
Member
Registered: 2016-07-21
Posts: 71

Re: pdf plugin glpi version 9.1

@Tachyon: Thank you! That works for me.


Debian 11.7 - PHP 7.4.33 - MariaDB 10.5.19 - 10.0.8-dev

Offline

#10 2016-12-06 12:03:56

Brolliet
Member
Registered: 2012-11-01
Posts: 21

Re: pdf plugin glpi version 9.1

Bonjour,

Une petite idée de quand sera disponible la version pour GLPI 9.1.1 ?

Sa non disponibilité bloque la migration de GLPI dans mon entreprise.

Encore bravo pour le travail sur ce plugin.


Glpi 9.1.6

Offline

#11 2016-12-15 23:35:08

tyrone.wyatt
Member
Registered: 2013-02-24
Posts: 72

Re: pdf plugin glpi version 9.1

Hello yllen

I am also looking forward to the PDF plugin becoming GLPI 9.1 compatible.

Once the PDF plugin is updated I can upgrade to GLPI 9.1.1 from 0.90.5..

Any ETA on the plugin being updated?

Contact me if you need any testing performed.

Thanks smile

Offline

#12 2016-12-16 16:08:09

machadomall
Member
From: Brazil, Brasilia, DF
Registered: 2011-10-30
Posts: 208

Re: pdf plugin glpi version 9.1

Hello everyone,

In the plugins page http://plugins.glpi-project.org/#/, you are saying that the PDF has been updated, but here https://forge.glpi-project.org/projects/pdf, is not updated, yet Is with the old version.

Hugs.


Márcio Machado
Brasília-DF / Brasil

Offline

#13 2016-12-16 19:39:44

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

Re: pdf plugin glpi version 9.1

No new version was published. I have not finished to tests all part.
You can test what is already done with tarball version (https://forge.glpi-project.org/tarballs-plugins/)


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

#14 2016-12-16 21:49:27

machadomall
Member
From: Brazil, Brasilia, DF
Registered: 2011-10-30
Posts: 208

Re: pdf plugin glpi version 9.1

Thanks yllen.


Márcio Machado
Brasília-DF / Brasil

Offline

#15 2017-01-09 18:21:13

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

Re: pdf plugin glpi version 9.1

Version published today for GLPI 9.1: https://forge.glpi-project.org/attachme … 1.1.tar.gz


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

#16 2017-01-16 16:05:37

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

Re: pdf plugin glpi version 9.1


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