[pmwiki-devel] Problem with using getimagesize($PageLogoUrl) on PmWiki.com

H. Fox haganfox at users.sourceforge.net
Sun Aug 9 12:18:51 CDT 2009


On Sat, Aug 8, 2009 at 2:35 PM, DaveG<pmwiki at solidgone.com> wrote:
> I recently updated my skins to be a little more intelligent on how they
> place the logo. I use getimagesize($PageLogoUrl) in order to determine
> the height and width of the logo.
>
> I've not had any issues, nor has anyone reported anything. However, when
> used on PmWiki.com I get an error
> (http://www.pmwiki.org/wiki/Cookbook/Equilibrium). According to the
> error message it appears that $PageLogoUrl does not resolve to a valid
> filename. However, pasting the url does show the image, so it is valid.
>
> I've added some additional error checking in my skin, so it handles this
> error more gracefully, but does anyone know why I'm getting the error?

It needs a filesystem location, not a web location.

http://qdig.sourceforge.net/Support/URLAndFilesystemPaths
http://qdig.sourceforge.net/temp/path_helper.php

Hagan



More information about the pmwiki-devel mailing list