Jump to content

pdf error


PingEx.com

Recommended Posts

Getting the same problem since upgrading from 3.6.2.

 

I am about to submit a support ticket as it has stopped all invoices from being generated!!!

 

It seems that the following was altered in pdfconfig.php

From: $pdf->Image(dirname(__FILE__).'/../images/logo.jpg',20,25);

To: $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25);

 

But neither of the above now works, so it seems to point to a global change being made with the code.

 

Cheers,

Paul

Edited by Iceman
Link to comment
Share on other sites

(Firstly I must have been running 3.6.1 not 3.6.2.)

 

Solution for those with this issue is below:

 

Anyone upgrading or installing a version greater than 3.6.1 and with Open_basedir ENABLED will need to edit /includes/tcpdf.php

 

Find the line:

$tempname = tempnam(K_PATH_CACHE,'jpg');

 

And replace K_PATH_CACHE with the absolute path to the tmp directory.

eg '/home/me/tmp' or what ever is the exact path.

 

So it will look like

$tempname = tempnam('/home/me/tmp','jpg');

 

Cheers,

Paul

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated