Identification



Welcome, Guest
Please Login or Register.    Lost Password?

TCPDF ERROR
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: TCPDF ERROR
#19407
TCPDF ERROR 2 Years, 3 Months ago  
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

The administrator has disabled public write access.
 
#19408
Re: TCPDF ERROR 2 Years, 3 Months ago Karma: 147
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: 1363
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison
Laurent Destailleur (alias eldy, Dolibarr grade: Yoda).
- Dolibarr in the Cloud: DoliCloud, the OpenSource hosting solution for your Dolibar ERP & CRM.
- Android app for Dolibarr: DoliDroid
The administrator has disabled public write access.
 
#19419
Re: TCPDF ERROR 2 Years, 3 Months ago  
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

The administrator has disabled public write access.
 
#19426
Re: TCPDF ERROR 2 Years, 3 Months ago  
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

The administrator has disabled public write access.
 
#19429
Re: TCPDF ERROR 2 Years, 3 Months ago Karma: 147
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: 1363
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison
Laurent Destailleur (alias eldy, Dolibarr grade: Yoda).
- Dolibarr in the Cloud: DoliCloud, the OpenSource hosting solution for your Dolibar ERP & CRM.
- Android app for Dolibarr: DoliDroid
The administrator has disabled public write access.
 
#19431
Re: TCPDF ERROR 2 Years, 3 Months ago  
It works !

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

Many thanks.
domdom

The administrator has disabled public write access.
 
#20363
Re:TCPDF ERROR 1 Year, 9 Months 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 1 Year, 9 Months ago Karma: 147
Does this is fixed with 3.2 ?
eldy
Administrateur
Posts: 1363
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison
Laurent Destailleur (alias eldy, Dolibarr grade: Yoda).
- Dolibarr in the Cloud: DoliCloud, the OpenSource hosting solution for your Dolibar ERP & CRM.
- Android app for Dolibarr: DoliDroid
The administrator has disabled public write access.
 
#20542
Re:TCPDF ERROR 1 Year, 9 Months 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.
 
#22898
TCPDF ERROR: File is encrypted! 10 Months, 1 Week ago Karma: 0
TCPDF ERROR: File is encrypted!
PDF Fusion generates this error in new bills.
Older bills generated under 3.3.1 or 3.3.0 can be fused.
Operative system: Ubuntu 12.04LTS 64bit
The Logo is not the issue: I changed it from .png to .jpg and even deleted it.
Still the same. Old bills are generated with fusion, new bills cause the TCPDF ERROR: File is encrypted!
Best regards from Barcelona,
Jordi
JordiC
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12