Error when Pictures are enable !?!

Phoca PDF - creating PDF documents in Joomla! CMS
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47905
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error when Pictures are enable !?!

Post by Jan »

:idea: :( Hi, it seems like TCPDF cannot work with this picture ... but maybe it is caused by wrong file path to the image. Does the image exists in this folder ?

The image should be saved in e.g. images/stories/some-img.jpg ... in standard Joomla! image folder...

Jan
If you find Phoca extensions useful, please support the project
michael_wds
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Mar 2009, 16:50

Re: Error when Pictures are enable !?!

Post by michael_wds »

Hi,
I have a similar Problem. If there are pictures on the site the pdf generating shows the following error:

Code: Select all


Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /homepages/htdocs/neu/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 3964

Warning: getimagesize(http://www.bardorf.de/neu/images/stories/key.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /homepages/htdocs/neu/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 3964

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /homepages/htdocs/neu/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 4170

Warning: getimagesize(http://www.bardorf.de/neu/images/stories/key.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /homepages/21/d13454570/htdocs/neu/administrator/components/com_phocapdf/assets/tcpdf/tcpdf.php on line 4170
TCPDF ERROR: Missing or incorrect image file: http://www.bardorf.de/neu/images/stories/key.jpg
The pictures are in the folder stories.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47905
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error when Pictures are enable !?!

Post by Jan »

Hi, see your server if the image is here. If yes then you need to change permissions of the file...

EDIT:
I have added the url into the URL bar (http://www.bardorf.de/neu/images/stories/key.jpg) and the image is here, so there is some problem with adding it into pdf but why? Try to check the permissions (but if it is accessable from web ??? no idea why it cannot be accessable while adding it into pdf ??? :( )

Jan
If you find Phoca extensions useful, please support the project
michael_wds
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Mar 2009, 16:50

Re: Error when Pictures are enable !?!

Post by michael_wds »

Hi,

I tried to change the file permissions to 777 and also the folder to 777 but nothing changed.
I have tried out another webspace at a different webhoster and it is also the same.
The funny thing is with the local xampp installation on my pc it works fine!!!!!!!!
Tomorrow I am going to try to put all files into the mainfolder not the /neu/ folder maybe it works just on the highest level???

After testing tomorrow I tell you my results.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47905
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error when Pictures are enable !?!

Post by Jan »

ok
If you find Phoca extensions useful, please support the project
Post Reply