error displaying normal images from picasa

Phoca Gallery - image gallery extension
Maos
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Aug 2010, 14:49

error displaying normal images from picasa

Post 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.
User avatar
woodyf4u
Phoca Enthusiast
Phoca Enthusiast
Posts: 75
Joined: 10 Jan 2009, 22:20
Location: The Netherlands
Contact:

Re: error displaying normal images from picasa

Post 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.
Maos
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Aug 2010, 14:49

Re: error displaying normal images from picasa

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: error displaying normal images from picasa

Post 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
If you find Phoca extensions useful, please support the project
User avatar
woodyf4u
Phoca Enthusiast
Phoca Enthusiast
Posts: 75
Joined: 10 Jan 2009, 22:20
Location: The Netherlands
Contact:

Re: error displaying normal images from picasa

Post 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.
Maos
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Aug 2010, 14:49

Re: error displaying normal images from picasa

Post by Maos »

Jan, thanx for this answer. It helped on both websites.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: error displaying normal images from picasa

Post by Jan »

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