Member
Member
lauravink   2009-02-11, 21:46
#1

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

Member
Member
sbillard   2009-02-12, 21:14
#2

What kind of comment was being posted? (Album, image, other (what))?

Member
Member
lauravink   2009-02-12, 22:07
#3

It was a comment on a album.

Member
Member
sbillard   2009-02-12, 22:33
#4

Thanks. Found the problem. Fix will be in tonight's build.

Member
Member
lauravink   2009-02-13, 07:19
#5

Great!!!!!

Member
Member
lauravink   2009-02-14, 11:27
#6

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?

Member
Member
sbillard   2009-02-14, 17:34
#7

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.

Member
Member
lauravink   2009-02-14, 17:55
#8

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?

Member
Member
sbillard   2009-02-14, 18:27
#9

The zp-core folder needs to be writable.

Member
Member
lauravink   2009-02-14, 20:43
#10

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.

Member
Member
sbillard   2009-02-14, 21:11
#11

Thanks, this if very helpful. I will get a fix out for tonight's build.

Member
Member
sbillard   2009-02-14, 21:11
#12

Thanks, this if very helpful. I will get a fix out for tonight's build.

Member
Member
lauravink   2009-02-15, 09:54
#13

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!

Member
Member
sbillard   2009-02-15, 18:35
#14

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.