Page 1 of 1

Warning: getimagesize() in articles [SOLVED]

Posted: 19 Oct 2010, 19:22
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!

Re: Warning: getimagesize() in articles

Posted: 26 Oct 2010, 13:05
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

Re: Warning: getimagesize() in articles

Posted: 26 Oct 2010, 16:04
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

Re: Warning: getimagesize() in articles

Posted: 29 Oct 2010, 17:19
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.

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

Posted: 31 Oct 2010, 18:57
by Jan
Ok

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

Posted: 28 Jan 2013, 22:09
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.