Forums

captcha in custom form: error in db_save

scott1137 02 Jun, 2015
Basic setup: Chronoform + ChronoConnectivity.

Setting up captcha per https://www.chronoengine.com/faqs/55-cfv4/cfv4-anti-spam/3014-how-can-i-add-a-chronoforms-captcha-to-my-custom-html.html

Initially captcha image did not show. Changed the 'Load Encoded Image' setting in the Load Captcha action to 'Yes'.

Now receive this pair of error messages:
Parse error: syntax error, unexpected '-', expecting '{' in /home/.../.../.../.../com_chronoforms/form_actions/db_save/db_save.php(66) : eval()'d code on line 3

Fatal error: Call to a member function bind() on a non-object in /home/.../.../.../.../com_chronoforms/form_actions/db_save/db_save.php on line 119

Suggestions?

Thanks,
Scott
scott1137 02 Jun, 2015
btw, do not see "chrono_verification.php" in "components/com_chronoforms/chrono_verification.php"
Scott
scott1137 02 Jun, 2015
Alternatively, would you spell out how to either use honeypot or math in captcha for my custom html form?

Thanks,
Scott
scott1137 02 Jun, 2015
Update:

Deleted captcha code (taking form back to when it was working), creating new tables, etc., as usual when editing form.

Error messages remain when submitting form.

Scott
GreyHead 03 Jun, 2015
1 Likes
Hi Scott,

The error messages you are getting looks though they come from the database table name or a column name. Do any of these have a - in them? If so please try changing that to an underscore _

Please see this FAQ about adding a Honeypot to CFv4

Sorry, I don't understand this question: btw, do not see "chrono_verification.php" in "components/com_chronoforms/chrono_verification.php"

Bob
scott1137 03 Jun, 2015
Hi Bob,

Thanks for pointing where to look.

re: Honeypot - I thought I had an issue since I'm using custom html. On close read I see not. How can I know honeypot is working?

re: " btw, do not see "chrono_verification.php" in "components/com_chronoforms/chrono_verification.php" This was where I was trying to solve issue of Captcha image not showing from a faq: https://www.chronoengine.com/faqs/55-cfv4/cfv4-anti-spam/2602-the-captcha-image-doesnt-show.html

Thanks again,

Good wishes,
Scott
GreyHead 03 Jun, 2015
1 Likes
Hi Scott,

The acid test for the HoneyPot is to check if you get any bot spam.

A faster check is would be to try adding &honeypot=xxx to the URL on the form page and then re-load it - replace honeypot with the name of your honeypot input, ChronoForms ought then to set the honeypot value to xxx.

Otherwise, use your browser web developer tools to make the honeypot input visible again and type something into it.

Bob
scott1137 03 Jun, 2015
Hi Bob,

As Always, awesome!

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