Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: TCPDF ERROR

TCPDF ERROR 2 years 10 months ago #19407

  • domdom
  • domdom's Avatar
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 ??
The administrator has disabled public write access.

Re: TCPDF ERROR 2 years 10 months ago #19408

  • eldy
  • eldy's Avatar
  • OFFLINE
  • Administrateur
  • Posts: 1397
  • Thank you received: 7
  • Karma: 150
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 ?
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
- Teclib.com, your Open source solution
The administrator has disabled public write access.

Re: TCPDF ERROR 2 years 10 months ago #19419

  • domdom
  • domdom's Avatar
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.
The administrator has disabled public write access.

Re: TCPDF ERROR 2 years 10 months ago #19426

  • domdom
  • domdom's Avatar
Now I'm on a stable web server PHP 5.3.8

You get it right about the question for the company logo :ohmy:

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.

Capture-20120106.jpg
The administrator has disabled public write access.

Re: TCPDF ERROR 2 years 10 months ago #19429

  • eldy
  • eldy's Avatar
  • OFFLINE
  • Administrateur
  • Posts: 1397
  • Thank you received: 7
  • Karma: 150
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);
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
- Teclib.com, your Open source solution
The administrator has disabled public write access.

Re: TCPDF ERROR 2 years 10 months ago #19431

  • domdom
  • domdom's Avatar
It works !

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

Many thanks.
The administrator has disabled public write access.

Re:TCPDF ERROR 2 years 4 months ago #20363

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?
The administrator has disabled public write access.

Re:TCPDF ERROR 2 years 4 months ago #20512

  • eldy
  • eldy's Avatar
  • OFFLINE
  • Administrateur
  • Posts: 1397
  • Thank you received: 7
  • Karma: 150
Does this is fixed with 3.2 ?
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
- Teclib.com, your Open source solution
The administrator has disabled public write access.

Re:TCPDF ERROR 2 years 4 months ago #20542

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.
The administrator has disabled public write access.

TCPDF ERROR: File is encrypted! 1 year 5 months ago #22898

  • JordiC
  • JordiC's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • 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
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.097 seconds