PDA

View Full Version : Geos Show Category addon - error


pehansen
12-16-2006, 03:14 PM
Hello,

Just tried to install the Geos Show Category addon.... but when I look in admin panel I get the errors below.... I tried to set access to 777... and everything else in Pixelpost works just fine..

Any idea what can cause this...??

Warning: getimagesize(): Unable to access thumbnails/thumb_ in /pixelpost/addons/geos_show_category.php on line 542

Warning: getimagesize(thumbnails/thumb_): failed to open stream: No such file or directory in /pixelpost/addons/geos_show_category.php on line 542

I'm using PP 1.5 and addon version is 31, so all should be latest versions.

Rgds,
Paul.

GeoS
12-16-2006, 11:02 PM
Hi,

1. This are not errors but "only" warnings
2. Where are you and what type of action you are doing that you see it?
3. Does it work or not?

pehansen
12-17-2006, 07:56 AM
Hi,

I am in PP admin, and I choose "addon" to see all the installed addons listed.
When I reach this particular addon, just before the headline where the addon starts it's description, there are those two error lines.

But I have tried to use the tags, and so far it seems to work., so I havent really
seen any effect of the error.... I am quite new to this though...

Regards,
Paul-Erik.

austriaka
12-17-2006, 11:25 AM
I get the same warning in the same situation.
Everything is working fine.
The warning comes because geos_show_category.php proceeds the following part also in admin area (start line 459):
/************************************************** *********************************
*
* thumbnails row for image_template
*
************************************************** *********************************/
if($sc_th_row == 1)
{
...

In line 542 the thumbnail size of the actual image is defined. In Admin area there is no image and so no thumbnail.
This gives the warning. Nothing to bother about, but it means there is a function running useless every time when the Addon admin page is called.

You can supress the warning by inserting "@" before getimagesize() function in line 542:
list($local_width,$local_height) = @getimagesize("thumbnails/thumb_$image_name");
(functions still executed for no reason)

Or you change line 459:
if($sc_th_row == 1)
to
if($sc_th_row == 1 &! eregi('/admin/',$_SERVER["REQUEST_URI"]))
(don't run this part when in admin area)

KArin

GeoS
12-18-2006, 02:43 AM
I will remember this issue and fix it before next release.

Thx Karin for code.

pehansen
12-18-2006, 06:58 PM
Hello,

Thanks for the solution, works just fine.

Rgds,
Paul.