[TYPO3] problem with pdf_generator2

Jens Ellerbrock mail at jens-ellerbrock.de
Sun Apr 2 22:15:36 CEST 2006

I've made a new version in the TER (0.1.1) that should fix this issue by 
using html2pdf's own temp directory instead of /tmp (it would be even 
better to use typo3temp though).


Andreas Balzer wrote:
> Jens Ellerbrock schrieb:
>> Hi,
>> can you please try replacing "/tmp" with WRITER_TEMPDIR (without 
>> quotes) in all places where this error pops up (everywhere where 
>> tempnam is used in output.fpdf.class.php ) . The resulting line should 
>> look like:
>>     $tmpname = tempnam(WRITER_TEMPDIE,"IMG");
>> afterwards.
>> Please let me know if this works and i'll implement it for the next 
>> version (or let me know if i shall build a developrer version for you 
>> to try out if you want to avoid editing the file by yourself).
>> Jens
>> Andreas Balzer wrote:
>>> Hi! I get the following error in FE when trying to open a static page 
>>> with pagetype 123:
>>> Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is 
>>> not within the allowed path(s): 
>>> (/home/www/kunden/ess-erfurt.de:/usr/share/pear:/tmp/php:/usr/bin) in 
>>> /home/www/kunden/ess-erfurt.de/contents/typo3conf/ext/pdf_generator2/html2pdf/output.fpdf.class.php 
>>> on line 273
>>> Warning: imagepng(): Invalid filename '' in 
>>> /home/www/kunden/ess-erfurt.de/contents/typo3conf/ext/pdf_generator2/html2pdf/output.fpdf.class.php 
>>> on line 274
>>> FPDF error: Can't open image file:
>>> What do i have to do?
> since i installed it on a production server *:-/  :)* i can try it 
> tomorrow (i have to set up some templates on my dev server first)
>  Greets
> Andreas

More information about the TYPO3-english mailing list