The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Can reCaptcha be installed on Version 1.5.1? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Can reCaptcha be installed on Version 1.5.1? (/showthread.php?tid=2909) |
Can reCaptcha be installed on Version 1.5.1? - waizen - Feb 12th, 2014 I've been asked to install reCaptcha on an old Form Tools form...version 1.5.1. I am not to upgrade this system. Is it possible to install reCaptcha on this system? I ask because I'm reading that I need to add API but on this page: http://docs.formtools.org/api_changelog.php , I don't even see version 1.5.1 listed anywhere. Any thoughts? Thank you in advance. RE: Can reCaptcha be installed on Version 1.5.1? - Joe - Feb 12th, 2014 Hey there, You might run into some difficulties with the older version of Form Tools. Instead of the API method you might want to consider the POST method instead: http://docs.formtools.org/tutorials/post_form_captchas/ Cheers, Joe RE: Can reCaptcha be installed on Version 1.5.1? - waizen - Feb 13th, 2014 Thank you, Joe, for your prompt reply. I appreciate it. I guess you're right...I have started running into problems. I've started to implement the reCaptcha utilizing the reCaptcha installation for php instructions on the Google Developer's page, located here: https://developers.google.com/recaptcha/docs/php?hl=zh-TW . I've had success using this method on other systems but I'm now trying to make it work with Form Tools. When I test the installation, I first submit the form without the challenge field entered within my reCaptcha. It successfully sees that I've failed to enter anything and spanks me for it. So far so good. I then enter the challenge answer in the reCaptcha field, submit the form and I get the following error message: "Fatal error: Call to undefined function: process_form() in /home/xxxxx/domains/sample.com/public_html/forms/process.php on line 39" (the installation has the form tools name changed to 'forms') In the form, right before the submit button, I have the following code calling up the reCaptcha widget: Code: <?php In the top of process.php, I had entered the following code, as per Google's instructions, right after the opening php tag: Code: require_once('recaptchalib.php'); ...then the rest of the process.php file, followed by another closing bracket (}) at the end of the file, right before the closing php tag. The error above is referring to the part of the process.php code that reads: Code: else ...that's where it fails. BTW, without my added reCaptcha code added at the top of the page, that part of the code would normally fall on line 25. I tried adding the reCaptcha code right after the "process_form()" line but that didn't work, either. Is there something else I need to do? Should I have entered the opening code at another location within process.php? I'm assuming process.php is where it should have gone, right? Anything I need to do to the global/config.php file? Again, any help is appreciated. Thanks. Oh... one last thing: the link you offered seemed to be covering the API version only. Within that page, however, there is something that reads: "You can add submissions to Form Tools by two methods: the API or by directly posting your form to the process.php script. The second type is known as a POST form; this tutorial explains how to add a CAPTCHA to that form type." ...and then fails to do that. It seems that failure was mentioned in an old 2009 thread, which you can read here: http://forums.formtools.org/archive/index.php/thread-199.html. Unless, of course, I'm missing something really obvious (I hope). RE: Can reCaptcha be installed on Version 1.5.1? - Joe - Feb 13th, 2014 Hey, Here's another thread on bypassing the API for reCAPTCHA: http://forums.formtools.org/showthread.php?tid=2306 Cheers, Joe RE: Can reCaptcha be installed on Version 1.5.1? - waizen - Feb 17th, 2014 Thanks, Joe. Unfortunately, that thread didn't work for me. I went ahead and installed a brand new install of Form Tools. Unfortunately, I'm having the same issues that are/were outlined in this old thread: http://forums.formtools.org/showthread.php?tid=220&pid=9468#pid9468. It doesn't appear that that problem was ever resolved, so it's looking pretty bleak here. |