Page 1 of 1

error displaying normal images from picasa

Posted: 09 Aug 2010, 15:43
by Maos
I have 2 sites using phoca gallery to load pictures from picasa. On both sites this same error occurs. What happens when I try to display the normal version of a photo I get several errors. The photo is partly shown, below these errors.

This happens on these sites: http://www.waterscoutingjanvangent.nl en http://www.maastrichtsereddingsbrigade.nl. Because both are dutch site, here are the links to some of the photoalbums on the sites:

http://www.waterscoutingjanvangent.nl/i ... scoutitout
http://www.maastrichtsereddingsbrigade. ... ry/15-2010

When I click one of the photo's in th album to show the picture in a larger vesion in a popup, I get these errors:

Code: Select all

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /home/p6529/domains/maastrichtsereddingsbrigade.nl/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/image.php on line 51

Warning: getimagesize(http://lh4.ggpht.com/_C1-I-ougaR0/TD4m3rSfrhI/AAAAAAAAAkc/ral40nKPlic/s640/IMG_0884.JPG) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /home/p6529/domains/maastrichtsereddingsbrigade.nl/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/image.php on line 51

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /home/p6529/domains/maastrichtsereddingsbrigade.nl/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/image.php on line 39

Warning: getimagesize(http://lh4.ggpht.com/_C1-I-ougaR0/TD4m3rSfrhI/AAAAAAAAAkc/ral40nKPlic/IMG_0884.JPG) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /home/p6529/domains/maastrichtsereddingsbrigade.nl/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/image.php on line 39
Have you got any idea how I can solve this problem?

I just realized that this problem did not exist until a week ago. Since I did not change anything in the configuration during that time (I was on a holiday) it must be something that changed in a: picasa of b: my hosting providers settings.

Re: error displaying normal images from picasa

Posted: 12 Aug 2010, 08:56
by woodyf4u
Hi,
I've exactly the same message when viewing the Picassa images.
Images, uploaded and viewed from the server are showing correct.

I hope someone can help us.

Re: error displaying normal images from picasa

Posted: 16 Aug 2010, 14:20
by Maos
Still no ideas. It is a shame. I really love the phoca photobook and at this moment it is the only gallery I could find with the functionality I wanted. But when the photo's are only shown half, I have to start searching for an other solution and I don't want to. Anybody who can help?

I don't mind if I need to do some debugging, but I tried to figure out the code and the debugging possibilities myself, but just can't find a way in to the problem.

Re: error displaying normal images from picasa

Posted: 16 Aug 2010, 21:11
by Jan
Hi, you can hide the error message this way:

administrator/components/com_phocagallery/libraries/phocagallery/image/image.php

line 39, change
FROM:

Code: Select all

$imageSize = getimagesize($fileNameAbs);
TO:

Code: Select all

$imageSize = @getimagesize($fileNameAbs);
This is not set as default, because it is recommended to hide errors in Joomla! (see installation guide) so such warning is not displayed in case there is some problem while getting needed information. With @ you can hide the error message.
@ is not set asd default so possible problems can be displayed for debug.

Jan

Re: error displaying normal images from picasa

Posted: 17 Aug 2010, 07:34
by woodyf4u
Hi Jan,

Thanks a lot!
For me, this was the solution to fix this problem.

For your information: I edit php-files with Notepad++
In that application, it was not line 39, but it was line 77.

Re: error displaying normal images from picasa

Posted: 17 Aug 2010, 20:10
by Maos
Jan, thanx for this answer. It helped on both websites.

Re: error displaying normal images from picasa

Posted: 21 Aug 2010, 18:04
by Jan
Ok