Call to undefined function: getimageid()

I've upgraded my ZenPhoto from 1.0.3 to 1.0.5 and I'm getting this message trying to sort album images:
Fatal error: Call to undefined function: getimageid() in /home/alenonimo/public_html/galeria/zen/admin-functions.php on line 118
What I do now?

Comments

  • yeah.. sorting album images doesnt seem to be working on any of my servers. Sorting of albums does work but images are a no go.. they dont even display. Looks like we may have a bug here...
    Also as a note on my testing.. this was not an album with subalbums that it was faulting on.. it was on just a simple gallery of mine WITHOUT subalbums

    if I changed line 118 in admin-functions.php where it said $image->getImageID() to $image->id the images would then show up but it would not save my sort order.
  • trisweb Administrator
    This is probably definitely a bug. I removed that function but forgot to check backreferences, and changed the way sort order and keys were stored but didn't test sorting... it probably really is broken.

    Thanks for the great beta testing guys!

    So this tells me... I need automated unit testing to keep track of all the test cases!
  • trisweb Administrator
    Fixed in SVN, download `admin-functions.php` and `albumsort.php` to fix both the undefined function and the sorting problems.

    This will be in a bugfix release within the week. Sorry for the inconvenience.
  • Man, I'm going to have to get on the stick. My 1.0.4 installation is getting old.....

    ;)
  • Once you fix the image ordering which you can do by inserting:

    `function getImageID() { return $this->id; }` into the image class in classes.php (svn311)

    you will find that, even though image re-ordering sends the correct new order to the db, the new order (manual) is not used when displaying the images in album.php

    hope this helps (although it's probably a dirty hack!) *glup*!
  • trisweb Administrator
    getImageID() has been deprecated for some reason or another, I forget. Ah, because it's replaced with $image->id which comes from PersistentObject.

    The better method is in latest SVN, already fixed. See above. New version will be out soon with the fixes...
Sign In or Register to comment.