Warning: getimagesize() in articles [SOLVED]

Phoca Gallery plugins - plugins for Phoca Gallery extension
Alex Ribeiro
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Oct 2010, 19:13

Warning: getimagesize() in articles [SOLVED]

Post by Alex Ribeiro »

Hello,

I'm using Phoca Gallery 2.7.5, updated right now from 2.7.4trying to kill this error message:

Code: Select all

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in .../plugins/content/phocagallery.php on line 1190
Warning: getimagesize(http://lh4.ggpht.com/_d0n7RfQtuto/S29MfCZYHaI/AAAAAAAABrQ/4sl0sEzKFP0/s104-c/_MG_0690_800x533.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in .../plugins/content/phocagallery.php on line 1190
I'm using inserted imagens from Phoca Gallery on articles pages, also articles on frontpage, and all images are hosted in Picasa Web. I try this solution, but works only in popup window. For each image that I put the error show up on page, so if I have many imagens more error code shows. :!:

Thanks for help in advanced!
Last edited by Alex Ribeiro on 29 Oct 2010, 17:20, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: getimagesize() in articles

Post by Jan »

Hi, the solution is designed for Picasa images on different server, but you need to check permissions or ownership on your server :-( Seems like the function has no permissions to read the data from the image :-(

Jan
If you find Phoca extensions useful, please support the project
Alex Ribeiro
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Oct 2010, 19:13

Re: Warning: getimagesize() in articles

Post by Alex Ribeiro »

Hi Jan,

What should I check? Folder Permissions? What?
Is there a way to hide the error messages? The photos are usually appearing in the article.
Your other tip solved the problems in popup windows, but not on articles pages.

Thank you in advance.

PS.: I can send a PM with a link to my site
Alex Ribeiro
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Oct 2010, 19:13

Re: Warning: getimagesize() in articles

Post by Alex Ribeiro »

SOLVED

On file /plugins/content/phocagallery.php line 1190:

Code: Select all

list($width, $height) = getimagesize( $image->extm );
Replace with

Code: Select all

list($width, $height) = @getimagesize( $image->extm );
And the error messages will be hide.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: getimagesize() in articles [SOLVED]

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
nocaine
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 28 Jan 2013, 21:50
Location: Chile

Re: Warning: getimagesize() in articles [SOLVED]

Post by nocaine »

This fix a similar problem with facebook albums in the v.3.2.0 working with joomla 2.5.8

line 1290.

Well , not fixed the problem but hide it.
Post Reply