![]() |
|
v1.2.6 - Spamassassin - 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: v1.2.6 - Spamassassin (/thread-5692.html) |
v1.2.6 - Spamassassin - TheBLIONCorp - 2009-08-17 Hello, I noticed Spamassassin module was removed from core Zenphoto package. When a comment has to be rejected, I have the following error message: I checked my code. I checked in zp-core/functions.php, zp-core/plugins/comment_form.php but I didn't find anything about this number 3. Could someone provide me some tips on how to track down this error? Here is the end of the (modified) code:
v1.2.6 - Spamassassin - sbillard - 2009-08-18 Check the value of your 'SA_Forgiving' option. 3 is not a valid error result. Positive errors come only from the plugin. v1.2.6 - Spamassassin - TheBLIONCorp - 2009-08-18 Hello, var_dump($forgive) provides me the following information: You can see the offending message here: I modified the source code to print the $forgive variable when the comment has to be rejected / moderated v1.2.6 - Spamassassin - sbillard - 2009-08-18 Sorry, I guess you will have to tract the return value through the process. I've tested with the "none" filter and moderated works. That filter returns the constant "1". v1.2.6 - Spamassassin - TheBLIONCorp - 2009-08-18 Hello, I found the bug ! functions.php, postComment(...), line 992: As the return code of the SpamFilter is 0, This variable is not modified anymore in this file. So, we are getting back to functions-controller.php functions-controller.php, zp_handle_comment(...), line 184: controller.php: $_zp_comment_error is used to determine the error message to send to the spammer. We have two ways to solve that bug:
Try and guess what I did Do you want me to fill a bug with this fix? v1.2.6 - Spamassassin - sbillard - 2009-08-18 Yes, please. File a bug report. v1.2.6 - Spamassassin - sbillard - 2009-08-18 Actually, no need for a ticket. Your fix is the correct one. I'll release the fix for tonight's build. v1.2.6 - Spamassassin - sbillard - 2009-08-18 BTW, we will be happy to post your update to the Spamassassin plugin. It is just that the two of us have no means to test the module, so we removed it from the distribution. v1.2.6 - Spamassassin - TheBLIONCorp - 2009-08-19 Hello, I hope I will have time to do it this week. |