Upgrade 1.2.3 -> error in functions.php when posting comment

Hi there,
I updated Zenphoto to 1.2.3 yesterday, but I have been struggeling with the comments since then, I get an error message. Because some other people had problems with the comments after the update I've updated to nightly build 2009-02-10, but the problem still remains.

When trying to post a comment I get the message:

Fatal error: Call to undefined function: getalbumname() in /home/linkylog/domains/lauravink.nl/public_html/gallery/zp-core/functions.php on line 1041

This is the line:

$on = $receiver->getAlbumName() . " about " . $receiver->getTitle();

The same line gave me trouble at 1.2.3 and NB 2009-02-09.

I've have turned of the email notification in the admin panel.
I've also used other templates, no difference.
I'm not using any spam control, except captcha.

The comment IS posted though, but you are just not redirected back to the page.

My gallery can be found here: http://lauravink.nl/gallery

Somebody any suggestions?
Thanks in advance.

Laura

Comments

  • What kind of comment was being posted? (Album, image, other (what))?
  • It was a comment on a album.
  • Thanks. Found the problem. Fix will be in tonight's build.
  • Great!!!!!
  • I've updated to nighly build 2009-02-13. Deleted previous files, uploaded new and run setup, but still get this message:

    Fatal error: Call to undefined function: getalbumname() in /home/linkylog/domains/lauravink.nl/public_html/gallery/zp-core/functions.php on line 1041

    Could it have something to do with Captcha?
  • please change functions.php lines 1040-1041 so that they read:
    `
    default: // all image types
    debugLog('post for '.$class);
    $on = $receiver->getAlbumName() . " about " . $receiver->getTitle();
    `
    That is, insert the debugLog line. This will create a file `zp-core/debug-log.txt` that will have some information I need to understand what is going on here.

    Post the contents of the resulting file.
  • Ok sbillard, I've posted the code into the functions.php, and tried to post a comment. No debug_log.txt was formed; instead I got this on my screen:

    Warning: fopen(/home/linkylog/domains/lauravink.nl/public_html/gallery/zp-core/debug_log.txt) [function.fopen]: failed to open stream: Permission denied in /home/linkylog/domains/lauravink.nl/public_html/gallery/zp-core/functions-basic.php on line 684

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/linkylog/domains/lauravink.nl/public_html/gallery/zp-core/functions-basic.php on line 685

    Warning: fclose(): supplied argument is not a valid stream resource in /home/linkylog/domains/lauravink.nl/public_html/gallery/zp-core/functions-basic.php on line 686

    Fatal error: Call to undefined function: getalbumname() in /home/linkylog/domains/lauravink.nl/public_html/gallery/zp-core/functions.php on line 1042

    Do I need to change permission/chmod somewhere?
  • The `zp-core` folder needs to be writable.
  • Ok, I had zp-core folder set to 755, now changed is to 777.

    The debug-log.txt only says:

    post for album

    I don't see if this is helpful for you, I hope it is!
    By the way; still all testing comments do get posted, but I just get an error message after the post is sent.
  • Thanks, this if very helpful. I will get a fix out for tonight's build.
  • Thanks, this if very helpful. I will get a fix out for tonight's build.
  • Sbillard, thank you very much for all the effort. I've update to nightly build 2009-02-14 and the problem is fixed indeed! =) Keep on the good work!
  • Thanks for the update. But mostly, thanks for running the debug code. The problem was that for some reason on your install the "album" object was lowercase where it usually is "Album". Not sure why, but I adjusted the code to accept any case.
Sign In or Register to comment.