Call to undefined function getHeight() in

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

Comments

  • acrylian Administrator, Developer
    When do you get that error? Meaning what do you do when this appears? Do you use a standard theme?
  • 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

  • acrylian Administrator, Developer
    Seems you have a typo in your theme's image.php, there is no function `getFullImage()`but `getFullImageURL()`.
  • 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.
  • acrylian Administrator, Developer
    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.
  • Thanks acrylian!
    But it's too difficult for me.
  • acrylian Administrator, Developer
    What exactly is too difficult? Looking in the source code and replacing `getFullImage()`with the correct `getFullImageURL()` should be doable I think.
Sign In or Register to comment.