[TYPO3] problem with pdf_generator2

Jens Ellerbrock mail at jens-ellerbrock.de
Sun Apr 2 18:19:45 CEST 2006


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?



More information about the TYPO3-english mailing list