Fatal error: Call to undefined function Question

I uploaded a new album onto Zen [using the standard theme that came with it]. The homepage comes up fine, but for some reason, when I click to open the album I get:

Fatal error: Call to undefined function getcommenterrors() in /home2/aydensgr/public_html/zenphoto/themes/stopdesign/album.php on line 15

Any ideas?

I'm using Firefox 3.0.13

Comments

  • Alright, so how do I go about enabling the plugin?
  • acrylian Administrator, Developer
    There is a plugin page on the admin backend.
  • alright, thank you so much!
  • This is still an issue with the zenphoto-2009-11-12-trunk build as far as I can tell. I'm redoing a site based on the stoppeddesign and now converting to stopdesign because of a long overdue upgrade.

    With " comment_form v1.2.6 " disabled it throws the error "Fatal error: Call to undefined function getcommenterrors() in /xxxx/xxxxxxx/public_html/zenphoto/themes/stopdesign/album.php on line 15" which is as I see, related tothis line
    `if (function_exists('getCommentErrors') && getCommentErrors()) {`

    I'm just recently back into ZP but it seems there may be an 'else' statement lacking in the 'getCommentErrors' function? If I find it I'll pass what I find along. This affects me right now because the current project doesn't want comments enabled.

    Thanks for all you're hard work there at ZP!
  • acrylian Administrator, Developer
    Are you sure that you really updated all files?
  • Just to make sure, I'm running the zenphoto-2009-11-14-trunk today, will post later on results.

    Thanks
    K
  • acrylian Administrator, Developer
    There is no else needed as there is nothing else if the function does not exist. I could not reproduce it with the svn and the stopdesign theme.
  • What version of PHP are you using? the statement
    `if (function_exists('getCommentErrors') && getCommentErrors()) {` should not be able to execute the getCommentErrors() call unless the function exists (as the test indicates.) So most likely something is set in your PHP that prevents early determination of the boolen evaluation.
  • all clean now, apparently the cp didn't get it all...

    :( Never mind :)
Sign In or Register to comment.