Just FYI, I added some GIF graphics to an FAQ entry, one of which was an animated GIF... when I attempt to use the PDF export function, I get the following errors:
Warning: getimagesize(): open_basedir restriction in effect. File(/faq/attachments/XP_AV.gif) is not within the allowed path(s): (/home/archon:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/archon/public_html/faq/admin/export.main.php on line 474
Warning: getimagesize(/faq/attachments/XP_AV.gif): failed to open stream: Operation not permitted in /home/archon/public_html/faq/admin/export.main.php on line 474
Warning: Division by zero in /home/archon/public_html/faq/admin/export.main.php on line 483
FPDF error: Unsupported image type: gif
While the GIF entry listed (XP_AV.gif) is NOT the animated one, there is another in the entry, which I'm sure preceeds the problematic listed GIF. All that said, I'm pretty sure the problem is with the animated GIF (or maybe GIFs in general), but I just thought I'd bring this to your attention.
Warning: copy(/home/archon/public_html/faq/images/XP_AV.png): failed to open stream: Permission denied in /home/archon/public_html/faq/admin/editor/plugins/ImageManager/Classes/Files.php on line 64
Is this a permission problem?
When I tried uploading the PNG files manually to the images folder, I could then add them to the FAQ entry, although thumbnail images were not available. When I then attempted to make a PDF, I got this message:
Warning: getimagesize(): open_basedir restriction in effect. File(/faq/../images/XP_AV.png) is not within the allowed path(s): (/home/archon:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/archon/public_html/faq/admin/export.main.php on line 474
Warning: getimagesize(/faq/../images/XP_AV.png): failed to open stream: Operation not permitted in /home/archon/public_html/faq/admin/export.main.php on line 474
Warning: Division by zero in /home/archon/public_html/faq/admin/export.main.php on line 483
Warning: fopen(): open_basedir restriction in effect. File(/faq/../images/XP_AV.png) is not within the allowed path(s): (/home/archon:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/archon/public_html/faq/inc/fpdf.php on line 1490
Warning: fopen(/faq/../images/XP_AV.png): failed to open stream: Operation not permitted in /home/archon/public_html/faq/inc/fpdf.php on line 1490
FPDF error: Can't open image file: /faq/../images/XP_AV.png
... maybe I should just give up on images for now...
Last edited by Micronaut on Thu Oct 14, 2004 4:33 pm, edited 1 time in total.
Okay... I changed the permissions of Images to 777, deleted the manually uploaded versions, then went back to the Image Manager and re-upped the PNG files - this time, it worked, although no thumbnails for these new images were available.
However, when I went back to the PDF export, I got this new batch of errors:
Warning: getimagesize(): open_basedir restriction in effect. File(/faq/../images/XP_AV.png) is not within the allowed path(s): (/home/archon:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/archon/public_html/faq/admin/export.main.php on line 474
Warning: getimagesize(/faq/../images/XP_AV.png): failed to open stream: Operation not permitted in /home/archon/public_html/faq/admin/export.main.php on line 474
Warning: Division by zero in /home/archon/public_html/faq/admin/export.main.php on line 483
Warning: fopen(): open_basedir restriction in effect. File(/faq/../images/XP_AV.png) is not within the allowed path(s): (/home/archon:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/archon/public_html/faq/inc/fpdf.php on line 1490
Warning: fopen(/faq/../images/XP_AV.png): failed to open stream: Operation not permitted in /home/archon/public_html/faq/inc/fpdf.php on line 1490
FPDF error: Can't open image file: /faq/../images/XP_AV.png
It's the default config for my webhost... not a lot I can do about it, I'm afraid... but anything you can do to help is appreciated (the problem isn't too big of a deal for me - it's just nice to do a quick PDF backup once in a while...).
Thanks
Thorsten wrote:Hi,
your PHP configurations really sucks. I try to write a workaround for your problem.