Share » Forums » Setup & design » Big problem with the antispam extension

Big problem with the antispam extension

Big problem with the antispam extension

Sunday 18 March 2007 11:02:49 am - 8 replies

Author Message

Sébastien Antoniotti

Wednesday 21 March 2007 6:50:47 am

please, did someone can try to help me a little ?

eZ Publish Freelance
web : http://www.webaxis.fr

Wednesday 21 March 2007 7:18:33 am

No one can see your install, you have http acl authentication on the url,
<i>http://88.191.51.31/index.php/fr/articles/chansons_corses_et_versions_originales</i>

Why not output the expected value and the submitted value to debug this statement ... many people use this extension with success.

//darken

Kristof Coomans

Wednesday 21 March 2007 7:20:04 am

Hi Sébastien

The URL you are referring too seems to be password protected.

Did you recently upgrade to another version of eZ publish, or did you modify some templates which could be related to the issue?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Sébastien Antoniotti

Wednesday 21 March 2007 10:26:36 am

Hi,

Sorry for the htaccess protection, login is "dev" and password is "dev".

I don't made any upgrade or modification into related templates, moreother this bug is present in all classes that uses this datatype.

I have also replaced the extension/antispam folder, with the version avalaible on ez.no to avoid all doubt of file modification, but the bug is still here, and the code is too complex for me.

I know that this extention abitually works very well, I use it on many sites... I don't understand !

eZ Publish Freelance
web : http://www.webaxis.fr

Hans Melis

Wednesday 21 March 2007 3:31:54 pm

Hi Sébastien

I used the link you provided in your original post and I was able to submit a comment without a problem. Do you do anything special when it fails (submitting even though it won't validate, eg not filling out required information)?

Feel free to delete the comment I added :)

Hans
http://blog.hansmelis.be

Sébastien Antoniotti

Wednesday 21 March 2007 10:47:27 pm

Hi Hans,

Yesterday I have tried to install the ezcaptcha extension in order to replace the antispam datatype, just to test.

So I have copied the files, activate the extension, and edited the comment class to replace the antispam datatype by the ezcaptcha datatype, but the edition doesn't save my modifications, I have tried many times, cleared all caches, the antispam datatype is still here, I can't delete it, and I can't add another attribute on my comment class.
Perhaps this is because she has many objects, but why don't I get an ezpublish error message when trying to edit this class ?

So to conclude, since this manipulations, all is ok, comments can be nicely added...

Today I have to check all the parameters (the comment class, extensions, templates, etc.) in order to understand the origin of this bug.

Thanks for your help ! (and for your contrib !)

eZ Publish Freelance
web : http://www.webaxis.fr

Eugene Svirskyy

Wednesday 24 September 2008 6:55:52 am

2 Sébastien Antoniotti

There occurred an error in code of sckantispamtype.php v.1.1. To solve it:

1. Add including file at the top of the script
include_once( 'lib/ezutils/classes/ezinputvalidator.php' );

2. Change the original lines ## 161 and 166 so they look like
return eZInputValidator::STATE_INVALID;
return eZInputValidator::STATE_ACCEPTED;
instead of
return EZ_INPUT_VALIDATOR_STATE_INVALID;
return EZ_INPUT_VALIDATOR_STATE_ACCEPTED;

Hope this fix will help someone who uses eZ Publish 4 + antispam extension :-)

Serhey Dolgushev

Monday 16 March 2009 5:29:04 am

Hi!
http://ez.no/developer/contribs/datatypes/ib_captcha is good alternative for antispam

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu