Topic: Cannot print the Historical Tab using the pdf plugin

Hello,

Good day.


I installed the glpi-pdf plugin (print to pdf) version 0.5 and I'm having trouble printing the Historical Tab. Other tabs are fine.
I'm getting this error.

Fatal error: Call to undefined function getDeviceTypeLabel() in /usr/share/glpi/plugins/pdf/inc/plugin_pdf.functions.php on line 2074


Thank you very much.

Desktop : CentOS release 5.7 + rpmforge
Server : CentOS release 5.7 + EPEL + remi

Re: Cannot print the Historical Tab using the pdf plugin

Hi,

I will look ASAP (I'm quite busy this week)

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Cannot print the Historical Tab using the pdf plugin

Bug fixed, just need to update the RPM
https://dev.indepnet.net/plugins/changeset/10550

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Cannot print the Historical Tab using the pdf plugin

Can you please test the new RPM which include the fix :
http://rpms.famillecollet.com/enterpris … i-pdf.html

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Cannot print the Historical Tab using the pdf plugin

Thanks. I can now print only the historical tab without errors. By the way, I found out that when I print all the tabs in computer, the processor under the "components tab" is shown with the footer. It shows the Frequency and the date on the same footer location. The same goes when I print the pdf file.

Desktop : CentOS release 5.7 + rpmforge
Server : CentOS release 5.7 + EPEL + remi

Re: Cannot print the Historical Tab using the pdf plugin

Have you a sample ?

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Cannot print the Historical Tab using the pdf plugin

Where can I send it?

Desktop : CentOS release 5.7 + rpmforge
Server : CentOS release 5.7 + EPEL + remi

Re: Cannot print the Historical Tab using the pdf plugin

Hello Remi,

Good day.

The strange output only shows when there are no connected keyboard and mouse on the connections tab.
ex.
main tab
no financial information
no associated contract
direct connections:
    no connected printer
    Monitor : SyncMaster - Serial Number : H9FQ632276 -
    No connected device
    No phone connected
                                                           1 networking ports found :
#0        Name : VIA Rhine II Fast Ethernet Adapter - Packet Scheduler Miniport
Network point :
IP / MAC : 172.19.26.15 / 00:21:97:7B:C0:76
Mask / Subnet / Gateway : 255.255.255.0 / 172.19.26.0 / 172.19.26.254
VLAN :
Interface : Ethernet
Connected to :Not connected.

Components
                                                          Frequency2009-06-03 - 1/7
2x Processor Intel(R) Pentium(R) Dual CPU E2180 @ 2.00GHz           : 1995

The processor is on the same place with the footer. When I tried with keyboard and mouse connected the output is normal.
I have the sample of both output. Where can I send it?
Thanks.

Desktop : CentOS release 5.7 + rpmforge
Server : CentOS release 5.7 + EPEL + remi

Re: Cannot print the Historical Tab using the pdf plugin

More I read the code, more I found  possible issues in generated output and the code is really "quite" impossible to maintain.

I'm on the way to totally rewrite the PDF functions.
This will be done in PDF 0.6.0, but only for GLPI 0.72 (new version in RC phase)

So I will probably don't fix it in 0.5, sorry.

+

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Cannot print the Historical Tab using the pdf plugin

It's ok. Work around can be done like printing only certain tabs.
I'll look forward on the next GLPI release and the new plugin version.
Thank you very much.

Desktop : CentOS release 5.7 + rpmforge
Server : CentOS release 5.7 + EPEL + remi