BUG: phpMyFAQ 1.4.2 (and earlier)

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Micronaut
Posts: 7
Joined: Mon Aug 23, 2004 9:28 pm
Location: Canada

BUG: phpMyFAQ 1.4.2 (and earlier)

Post by Micronaut »

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:

Code: Select all

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.

Thx
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

GIF images are not supported in the PDF export, so please use PNG or JPEG.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Micronaut
Posts: 7
Joined: Mon Aug 23, 2004 9:28 pm
Location: Canada

Post by Micronaut »

That explains everything... thanks...
Thorsten wrote:Hi,

GIF images are not supported in the PDF export, so please use PNG or JPEG.

bye
Thorsten
Micronaut
Posts: 7
Joined: Mon Aug 23, 2004 9:28 pm
Location: Canada

Post by Micronaut »

I converted the files to PNG, and now when I try to upload I get the following:

Code: Select all

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:

Code: Select all

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.
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

yes, this is a permission problem. Just let the script write the image in the directoy images/ and it should work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Micronaut
Posts: 7
Joined: Mon Aug 23, 2004 9:28 pm
Location: Canada

Post by Micronaut »

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:

Code: Select all

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
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

your PHP configurations really sucks. I try to write a workaround for your problem.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Micronaut
Posts: 7
Joined: Mon Aug 23, 2004 9:28 pm
Location: Canada

Post by Micronaut »

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.

bye
Thorsten
Post Reply