Forums

Problems with antispam

bubila 22 Feb, 2016
Hi there, even thought I've searched the forum for the last hour I couldn't find the answer to my problem. I have a contact form, it has been working for a long time, but now the captcha image is not showing so I've used the security question. The fact is that even though the answer is correct the system shows the error message and the email is sent. Moreover sometimes I get a blank page when clicking on the submit button. I've decided to try the Google no recaptcha but still the system show the error message.
I really can't figure out where is the error
Thanks a lot
Elisa
bubila 22 Feb, 2016
maybe this could be helpful...I also tried using Honeypot but still the same result, each antispam fails
GreyHead 22 Feb, 2016
Hi Elisa,

Please take a Form Backup using the icon in the Forms Manager and post it here and I'll take a closer look.

Bob
bubila 22 Feb, 2016
Hi Bob
I guess I found out that the problem is not the verification code or antispam, I've created a new form without antispam and when I click on submit nothing happens and a blank page is displayed (URL is XXXX&event=Submit).
When I tried earlier with the attached form I reloaded the page and it worked (the email was sent) but the verification code was wrong (because the page was reloaded). I hope I made it clearer for you😟 I've been searching and trying everything since this morning with no luck. And the strangest thing is that those forms worked properly until a few days ago a no one touched them.
Thanks!
GreyHead 22 Feb, 2016
Hi Elisa,

The form looks Ok and appears to be working correctly when I test on my site.

Testing on your site I see a blank page when the form submits which is usually a sign of a PHP Error of some kind. Do you see this? If you do, please set site error reporting temporarily to Maximum to see if you see a more helpful message.

Bob
bubila 22 Feb, 2016
Hi Bob, unfortunately no error found, only a few warning like this
Warning: Cannot modify header information - headers already sent by (output started at /home/ftpbiot/public_html/libraries/theme.php:414) in /home/ftpbiot/public_html/libraries/cegcore/libs/env.php on line 15

and this

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ftpbiot/public_html/libraries/theme.php:414) in /home/ftpbiot/public_html/libraries/joomla/session/session.php on line 658

The only error I can see on the console is this one: Uncaught TypeError: $ is not a function on a js file in the template folder, but it was there before when the form was working properly. And the email is sent (I've just tried to check errors) but a blank page is displayed. I also tried to disable the SEF url but stil no luck.
I cannot even get the debugger to work, if I add a debbuger action to the Submit event nothing will show up😟
Php version is 5.3.29.
I also checked the error log and nothing strange was there. I also update the CF extension (I was using an old one without Google no Recaptcha), is there something else I should try?
Could it be that the host company changed some setting and now the form is broken?
bubila 22 Feb, 2016
I've got a test site on the same server and when I try to use captcha on that it works perfectly but as I try to backup the test site form and restore it in the actual site the captcha image does not show and the form isn't working,
by the way the error "$ is not a function" is also there and the form works😟
bubila 23 Feb, 2016
'morining everyone😀 here's a quick update: just unsintalled and re installed CF5, nothing changed. I've just noticed though, that another form has issues (a script that shows or hides a field based on a select now gives this error "Uncaught TypeError: window.addEvent is not a function").
After re installing CF5 I've tried again to use the form and the result was that the email was sent but I got all those errors in the attached file (and the URL is still "xxx/l?chronoform=Contatti&event=submit" rather than the redirect URL) .
It seems like a Jquery/Mootols issue, or am I wrong?
The fact is that same form on test site still works properly and I couldn't find differences betweens scripts or other stuff in the two sites except for the cegcore folder files.
bubila 23 Feb, 2016
Answer
1 Likes
SOLVEEEDDD!!!!
I can't believe it was so easy.... mootools was loaded after jquery and the result was that everything was messed up, I managed to load mootools before Jquery and all problmes are solved. The mistery is how on earth it stopped suddenly... and another mistery is that on the test site mootools and Jquery are loaded the same way and it still works...
By the way thanks as usual for the support!
Hope this can help someone who's got the same problem!
This topic is locked and no more replies can be posted.