Page 1 of 1

spam block problem...

Posted: Fri Jan 27, 2006 7:17 pm
by oxygenws
i used spamblock in my weblog, but sometime it NEVER accept any comment....

i log all event in the DB and it said:
"Invalid captcha (Entered: AMV, Expected: )"

i checked the session, it is ok and contains:
"{some characters};spamblock|a:1:{s:7:"captcha";s:3:"AMV";}"

the cookie in my browser stored fine (checked it)

i didn't find the reason yet!

note: i used the last version.

regards.

Re: spam block problem...

Posted: Fri Jan 27, 2006 7:20 pm
by garvinhicking
Can you reproduce that somehow? It might be a difference in the used URL? (maybe www.yourhost.com vs. yourhost.com and then the session cookie differs)

REgards,
Garvin

Posted: Fri Jan 27, 2006 7:34 pm
by oxygenws
reproduced, nothing chaged.

at lines around 560, i added:

if ($show_captcha && $addData['type'] == 'NORMAL') {
@session_start();
var_dump($_SESSION['spamblock']);

if (!isset($_SESSION['spamblock']['captcha']) || !isset($sere.....

and it returns NULL!

Posted: Fri Jan 27, 2006 7:36 pm
by garvinhicking
Did you check the URL thing I mentioned? Do you make sure you access the same URL?

Regards,
Garvin

Posted: Fri Jan 27, 2006 7:40 pm
by oxygenws
yes, it answers without www! but with www it cannot!
any solution?!

Posted: Fri Jan 27, 2006 8:04 pm
by garvinhicking
Yes, you must use ONE hostname to access your blog. The one you configured, to be exact.

Or enable the "Autodetect HTTP host" setting in your s9y config.

Regards,
Garvin