Identification



Welcome, Guest
Please Login or Register.    Lost Password?

TCPDF ERROR
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: TCPDF ERROR
#19407
TCPDF ERROR 1 Year, 5 Months ago Karma: 2
First of all I'd like to wish a happy new year to all of you guys

Just processed on install/migration from 3.0.1 to the final 3.1.0 on web server, it went all fine.

Anyway, in an order I cannot generate the PDF, once I click on the generate button then I get a white page (url is : www.xxxxxx.com/erp/commande/fiche.php?id=2) with only this text at the top :

TCPDF ERROR: Can't open image file: /var/www/vhosts/xxxxxx.com/httpdocs/erp/includes/tcpdf/cache/mska_2f50ce2eef7cf4837dbb688a384148ff


Any suggestions ??
domdom
Spammer
Posts: 37
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dlausseur Location: China
The administrator has disabled public write access.
 
#19408
Re: TCPDF ERROR 1 Year, 5 Months ago Karma: 142
Do you have a directory /var/www/vhosts/xxxxxx.com/httpdocs/erp/includes/tcpdf/cache
onto your disk ?
What happen if you create it ?
What is your language ?
Try to remove your company logon the try to regenrate pdf. Do you still have same error ?
eldy
Administrateur
Posts: 1324
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison Birthday: 10/10
Dolibarr grade: Yoda.
Thanks to help the project by making a Paypal donation (credit card allowed) using the link "Make a donation" available on right area of Home page: www.dolibarr.org
The administrator has disabled public write access.
 
#19419
Re: TCPDF ERROR 1 Year, 5 Months ago Karma: 2
Yes I do have the said directory.
Language is En-US, I tried to switch to French and others... but got exactly the same result.

The web hosting company upgraded the PHP version to 5.2.17 in the past last month, but it looks like there are some conflicts with MySQL version and they finally decided to migrate my domain area to a PHP 5.3.8 stable server, it should be completed soon... I'll try again once the connection will be restored and will let you know whether or not the problem persists, thanks a lot for your support.
domdom
Spammer
Posts: 37
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dlausseur Location: China
The administrator has disabled public write access.
 
#19426
Re: TCPDF ERROR 1 Year, 5 Months ago Karma: 2
Now I'm on a stable web server PHP 5.3.8

You get it right about the question for the company logo

Logo is a PNG format (which was no problem in dolibarr 3.0.1)

TCPDF in dolibarr 3.1.0 definitely doesn't like the PNG format !

I changed the logo to JPG or even GIF format and everything's fine.

For information, below is the error message when using PNG format

THANKS.

domdom
Spammer
Posts: 37
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dlausseur Location: China
The administrator has disabled public write access.
 
#19429
Re: TCPDF ERROR 1 Year, 5 Months ago Karma: 142
Try to edit file tcpdf_config.php and modify line

define ('K_PATH_CACHE', K_PATH_MAIN.'cache/');

with

define ('K_PATH_CACHE', DOL_DATA_ROOT.'/admin/temp/');
dol_mkdir(K_PATH_CACHE);
eldy
Administrateur
Posts: 1324
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison Birthday: 10/10
Dolibarr grade: Yoda.
Thanks to help the project by making a Paypal donation (credit card allowed) using the link "Make a donation" available on right area of Home page: www.dolibarr.org
The administrator has disabled public write access.
 
#19431
Re: TCPDF ERROR 1 Year, 5 Months ago Karma: 2
It works !

Just did the requested modification and no more error whatever logo format file is JPG, GIF or PNG

Many thanks.
domdom
Spammer
Posts: 37
graphgraph
User Offline Click here to see the profile of this user
Gender: Male dlausseur Location: China
The administrator has disabled public write access.
 
#20363
Re:TCPDF ERROR 11 Months, 3 Weeks ago Karma: 0
Hi,

I've had this issue myself and have found that the change to tcpdf_config.php didn't help - it changed the directory but still threw the error. I changed the image type to be jpg and it cured the issue. Is this a case of not finding the directory or something else?
whythehellnot
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#20512
Re:TCPDF ERROR 11 Months ago Karma: 142
Does this is fixed with 3.2 ?
eldy
Administrateur
Posts: 1324
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison Birthday: 10/10
Dolibarr grade: Yoda.
Thanks to help the project by making a Paypal donation (credit card allowed) using the link "Make a donation" available on right area of Home page: www.dolibarr.org
The administrator has disabled public write access.
 
#20542
Re:TCPDF ERROR 10 Months, 4 Weeks ago Karma: 0
I haven't checked this on v3.2 yet, I don't know whether anyone else can check by using a png file for the logo. When i've upgraded i'll test this out and let you know.
whythehellnot
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1