yllen / pdf

GNU Affero General Public License v3.0
14 stars 14 forks source link

Error Call undefined method TCPDF::SetAllowLocalFiles() #39

Open SilvaFernando opened 1 year ago

SilvaFernando commented 1 year ago

Hi, i'm using version 2.0.1, when i try print pdf this error occurred: image

I'm using php 7.4 and GLPI 9.5.3, can you help-me, please?

yllen commented 1 year ago

Is Tcpdf already present in your glpi? This method is defined in the file glpi/vendor/tecnickcom/tcpdf/tcpdf.php

sutyagin81 commented 1 year ago

Hello. Installed GLPI 10.0.6 plugin does not work. The plugin is installed but it is not displayed on the tab for printing. Help me please.

yllen commented 1 year ago

@sutyagin81 it's not the same problem. Open your own issue

SilvaFernando commented 1 year ago

@yllen, yes glpi/vendor/tecnickcom/tcpdf/tcpdf.php is on my environment: image

yllen commented 1 year ago

the owner of the tcpdf directory is not correct. Only files directory must have apache as owner

SilvaFernando commented 1 year ago

Hi @yllen.

What owner must on this folder?

yllen commented 1 year ago

Same owner as other files in GLPI directory

SilvaFernando commented 1 year ago

Hi @yllen.

Owner GLPI directory are same apache too.

yllen commented 1 year ago

can you past result of df command glpi directory (recursively)?

yllen commented 1 year ago

in file glpi/vendor/tecnickcom/tcpdf/tcpdf.php have you the function SetAllowLocalFiles (line 2975)? I don't have the same version of Tcpdf as you

SilvaFernando commented 1 year ago

Hi @yllen.

I will verify, what version do you use? Can you send me, please?

BR. Fernando Dias

yllen commented 10 months ago

I have the lastest version of 9.5 with tcpdf version 6.4.1