Forums

Problem with database and captcha

fabian85416 22 Jan, 2018
Hi,

I've designed a relatively complex form with a database connection. So far so good. In my test environment it has worked well. Now, implemented on the website, it doesn't work anymore. I always get the message 'You have entered the wrong verification code!' - even if I enter the correct code.

I can't figure out my mistake.... 😟

This is private content



Can you help me, please? Is that a known bug?

Regards,
Fabian
GreyHead 23 Jan, 2018
Hi Fabian,

I checked and the captcha code is being submitted correctly. Do you have caching enabled on the live site? that could affect it.

If you add a Debugger action before the Check Captcha and disable the check do you see the correct captcha code in the form data? (It might be simpler to check this on a little test form that doesn't require three file uploads).

Bob
fabian85416 23 Jan, 2018
Hi Bob,

thanks for your quick answer. Caching is off. I'm gonna simlpify the form an add the debugger and see what happens...

Fabian
fabian85416 23 Jan, 2018
Hi Bob,

after deleting the 3 fileuploads and the 'redirect' at the end of the 'onSubmit' part the form seems to work properly. Debugger shows the correct captcha code.
I don't understand! Does the order of the elements cause the problem? Please, could you have a look on the screenshot attached?


Thanks for your help
Fabian
fabian85416 24 Jan, 2018
Answer
1 Likes
Hi Bob,

the fileupload was obviously the bottleneck: I have no problem with one or two files. If I try to upload three files (this is the default setting), the form is emptied and I see the message 'You have entered the wrong verification code!'...

php.ini says:

php upload_max_filesize = 8M
post_max_size = 8M

8M wasn't enough for hires images! So, the problem had nothing to do with the verification code.

This is the solution. After changing the two php variables it works.
And sorry: No bug in chronoforms! πŸ˜€

Thanks
Fabian
This topic is locked and no more replies can be posted.