IIncorrect SPAM Prevention answer, please try again.

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

IIncorrect SPAM Prevention answer, please try again.

Post by vinman57 »

Script URL: http://www.cybermidi.com/helpdesk
Version of script: 2.6.2
Hosting company: powweb
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: incorrect spam prevention

Write your message below:

I upgraded to 2.6.2 (and now just to 2.6.4)

Trying to implement recaptcha 2.0 - but I get the error incorrect spam prevention answer even though I have the question set to off. (I've double and triple checked the keys and debug mode didn't show anything useful)

thanks
Vin
Klemen
Site Admin
Posts: 10167
Joined: Fri Feb 11, 2005 4:04 pm

Re: IIncorrect SPAM Prevention answer, please try again.

Post by Klemen »

Can you try with original unodified HESK files?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: IIncorrect SPAM Prevention answer, please try again.

Post by mkoch227 »

There is an issue with some users using recaptcha 2.0 who have file_get_contents for remote addresses disabled in their PHP installation. Since the 2.0 lib uses file_get_contents to an external call, the call to the recaptcha API returns false, which HESK (correctly) interprets as an incorrect SPAM answer. A way to check if this is the case is to create a php file that simply calls phpinfo(). Then, load that page, and look for "allow_url_fopen".

If you are unable to enable allow_url_fopen, you can try using this implementation of the lib I modified which attempts to call the API using curl. If curl isn't available, it then uses file_get_contents. You can download it at https://raw.githubusercontent.com/mkoch ... lib_v2.php and then replace your recaptchalib_v2.php file in /inc/recaptcha.
Last edited by mkoch227 on Tue Sep 15, 2015 8:36 pm, edited 1 time in total.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: IIncorrect SPAM Prevention answer, please try again.

Post by vinman57 »

Thank you! That worked

My only concern is remembering the fix when hesk is updated so it's not overwritten.

thanks again
Vin
Klemen
Site Admin
Posts: 10167
Joined: Fri Feb 11, 2005 4:04 pm

Re: IIncorrect SPAM Prevention answer, please try again.

Post by Klemen »

Thanks for the heads-up, I will include this in the next HESK release.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: IIncorrect SPAM Prevention answer, please try again.

Post by vinman57 »

Kleman

Just upgraded to 2.65. Unfrortunaly, the previous fix was overwritten in upgrade and it looks like you didn't include it with release as the incorrect spam prevention answer bug is back

https://raw.githubusercontent.com/mkoch ... lib_v2.php

is now a bad link.

Can I get that file?

thanks
Vin
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: IIncorrect SPAM Prevention answer, please try again.

Post by mkoch227 »

Here you go:

https://raw.githubusercontent.com/mkoch ... lib_v2.php

The link broke when I deleted the curl-for-recaptcha branch, but the master branch is here to stay for the foreseeable future :D
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: IIncorrect SPAM Prevention answer, please try again.

Post by vinman57 »

Hmm, still not working.

http://www.pianowizardacademy.com/helpd ... .php?a=add

This seems to have happened just starting today. I thought it may have been the update. But it is happening to me on two different domains.

Any ideas?

thanks
Klemen
Site Admin
Posts: 10167
Joined: Fri Feb 11, 2005 4:04 pm

Re: IIncorrect SPAM Prevention answer, please try again.

Post by Klemen »

I forgot about this, yes, sorry.

Mike's mod should work though. Try with a clean HESK installation in a test folder, to make sure your modifications are not preventing this from working.

So, try:
- install original HESK in a new test folder
- upload Mike's mod
- test
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply