The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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
          require_once('forms/recaptchalib.php');
          $publickey = "my public key number was entered here"; // you got this from the signup page
          echo recaptcha_get_html($publickey);
        ?>

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');
  $privatekey = "my private key number was entered here";
  $resp = recaptcha_check_answer ($privatekey,
                                $_SERVER["REMOTE_ADDR"],
                                $_POST["recaptcha_challenge_field"],
                                $_POST["recaptcha_response_field"]);

  if (!$resp->is_valid) {
    // What happens when the CAPTCHA was entered incorrectly
    die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
         "(reCAPTCHA said: " . $resp->error . ")");
  } else {

...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
  process_form();

...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.