![]() |
|
Upgrade 1.2.3 -> error in functions.php when posting comment - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Upgrade 1.2.3 -> error in functions.php when posting comment (/thread-4670.html) |
Upgrade 1.2.3 -> error in functions.php when posting comment - lauravink - 2009-02-11 Hi there, 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. 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? Laura Upgrade 1.2.3 -> error in functions.php when posting comment - sbillard - 2009-02-12 What kind of comment was being posted? (Album, image, other (what))? Upgrade 1.2.3 -> error in functions.php when posting comment - lauravink - 2009-02-12 It was a comment on a album. Upgrade 1.2.3 -> error in functions.php when posting comment - sbillard - 2009-02-12 Thanks. Found the problem. Fix will be in tonight's build. Upgrade 1.2.3 -> error in functions.php when posting comment - lauravink - 2009-02-13 Great!!!!! Upgrade 1.2.3 -> error in functions.php when posting comment - lauravink - 2009-02-14 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? Upgrade 1.2.3 -> error in functions.php when posting comment - sbillard - 2009-02-14 please change functions.php lines 1040-1041 so that they read: Post the contents of the resulting file. Upgrade 1.2.3 -> error in functions.php when posting comment - lauravink - 2009-02-14 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? Upgrade 1.2.3 -> error in functions.php when posting comment - sbillard - 2009-02-14 The Upgrade 1.2.3 -> error in functions.php when posting comment - lauravink - 2009-02-14 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! Upgrade 1.2.3 -> error in functions.php when posting comment - sbillard - 2009-02-14 Thanks, this if very helpful. I will get a fix out for tonight's build. Upgrade 1.2.3 -> error in functions.php when posting comment - sbillard - 2009-02-14 Thanks, this if very helpful. I will get a fix out for tonight's build. Upgrade 1.2.3 -> error in functions.php when posting comment - lauravink - 2009-02-15 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! Upgrade 1.2.3 -> error in functions.php when posting comment - sbillard - 2009-02-15 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. |