ZenphotoCMS Forum
Call to undefined function getHeight() in - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Call to undefined function getHeight() in (/thread-3088.html)



Call to undefined function getHeight() in - ClicClac - 2008-06-13

Some functions (getHeight(), getFullIlage()...) give me a php error.
It seems the problems is with all functions from file class-image.php,

Any idea ?

zp nightly 1694, 1717




Call to undefined function getHeight() in - acrylian - 2008-06-13

When do you get that error? Meaning what do you do when this appears? Do you use a standard theme?




Call to undefined function getHeight() in - ClicClac - 2008-06-13

I'm using a personnal theme based from Cimi and Default.

I just just put a echo getFullImage(); (for testing) in my template because I need the real path of the picture.
Doing the same with Default theme -> same error

Try with get FileName(), getAlbumName... -> same error




Call to undefined function getHeight() in - ClicClac - 2008-06-13

test page




Call to undefined function getHeight() in - acrylian - 2008-06-13

Seems you have a typo in your theme's image.php, there is no function getFullImage()but getFullImageURL().




Call to undefined function getHeight() in - ClicClac - 2008-06-13

Both seems exist

http://www.zenphoto.org/documentation/elementindex.html#g

getFullImage
in file class-image.php, method Image::getFullImage()
Returns a path to the original image in the original folder.
getFullImageURL
in file template-functions.php, function getFullImageURL()
Returns the url to original image.




Call to undefined function getHeight() in - acrylian - 2008-06-13

True, but getFullImage() is a class object method that you can't use directly, it needs to be use like $_zp_current_image->getFullImage() for example, otherwise you get an error. getFullImageURL() is the template equivalent.




Call to undefined function getHeight() in - ClicClac - 2008-06-13

Thanks acrylian!
But it's too difficult for me.




Call to undefined function getHeight() in - acrylian - 2008-06-14

What exactly is too difficult? Looking in the source code and replacing getFullImage()with the correct getFullImageURL() should be doable I think.