The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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 property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Post- reCAPTCHA (takes all entries) - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: Post- reCAPTCHA (takes all entries) (/showthread.php?tid=259)

Pages: 1 2


Post- reCAPTCHA (takes all entries) - stonerome - Aug 24th, 2009

Hi all

Just setting up the reCAPTCHA - created the account, put the code into the form, everything appears to be working. (You see the Captcha box)

BUt - I can enter ANYTHING in the captcha box - and it accepts and processes the form (I should be getting an error). Any idea what I'm doing wrong?

Thanks! Cory


RE: Post- reCAPTCHA (takes all entries) - Ben - Aug 24th, 2009

Huh! That's a new one.

Check your API version - the latest version is 1.0.0-beta-20090815. The option to include it in your POST forms was only added in a recent version.

Let me know!


RE: Post- reCAPTCHA (takes all entries) - dethompsOWU - Aug 28th, 2009

FYI, after the initial problems I had setting up reCAPTCHA a couple weeks ago, I decided to try again today "from scratch", only to run into the same issue that stonerome has encountered...

The CAPTCHA appears on the form page as expected (so that[/] part of the functionality seems to be working fine), but the form successfully submits [i]regardless of what I enter in the form, including if I leave the form blank.

So, it's as if the CAPTCHA isn't getting processed at all for some reason.

I am using the latest versions of everything (I checked for updates today before I started working on this):

Core Version: 2.0.0-beta-20090826
API Version: 1.0.0-beta-20090815

A couple weeks ago when I was first exploring reCAPTCHA and FormTools2, the CAPTCHA processed properly (it submitted when correct but didn't when incorrect) but the error messaging for an improper CAPTCHA didn't show up at all.

So, this new issue seems to be unrelated to the last issue.

Any ideas?

Thanks,


RE: Post- reCAPTCHA (takes all entries) - andrejj - Aug 28th, 2009

(Aug 24th, 2009, 12:53 PM)stonerome Wrote: Hi all

Just setting up the reCAPTCHA - created the account, put the code into the form, everything appears to be working. (You see the Captcha box)

BUt - I can enter ANYTHING in the captcha box - and it accepts and processes the form (I should be getting an error). Any idea what I'm doing wrong?

Thanks! Cory

Maybe stuppid question but anyway. Did you put captcha keys into config.php?


RE: Post- reCAPTCHA (takes all entries) - dethompsOWU - Aug 28th, 2009

A followup...I converted the form from a POST form to an API form, and the CAPTCHA works!...sort of.

It appears to be processing properly, in that if I don't enter the correct words (or don't enter anything), I am taken back to the form without the rest of the form being submitted to FormTools or anything.

However, now I'm running into the same issue I encountered a couple weeks ago...I'm not seeing the error message (despite including the code that supposedly makes it show up) and session variables do not appear to be maintained (so the code that is supposed to populate the various form fields with the data that was in them prior to the submission doesn't do anything).

So, something is still amiss...


RE: Post- reCAPTCHA (takes all entries) - andrejj - Aug 28th, 2009

(Aug 28th, 2009, 1:03 PM)dethompsOWU Wrote: A followup...I converted the form from a POST form to an API form, and the CAPTCHA works!...sort of.

It appears to be processing properly, in that if I don't enter the correct words (or don't enter anything), I am taken back to the form without the rest of the form being submitted to FormTools or anything.

However, now I'm running into the same issue I encountered a couple weeks ago...I'm not seeing the error message (despite including the code that supposedly makes it show up) and session variables do not appear to be maintained (so the code that is supposed to populate the various form fields with the data that was in them prior to the submission doesn't do anything).

So, something is still amiss...
You said you converted from POST to API? I have correctly working API form with working captcha. Sounds quite strange since for using captcha in form you suppose to use only this line <?php ft_api_display_captcha(); ?>


RE: Post- reCAPTCHA (takes all entries) - dethompsOWU - Aug 31st, 2009

It's a very basic form, so converting it from a POST form to an API form was a trivial matter.

In the case of it being a POST form, the CAPTCHA shows up onscreen as expected, but doesn't appear to process in any way (no matter what I put in it, including leaving it blank, the form still processes).

In the case of it being an API form, the CAPTCHA also shows up onscreen as expected, but this time it [does] appear to process correctly. However, in the case of me typing it in incorrectly or leaving it blank, the form just refreshes with a new CAPTCHA. No error code shows up (despite me including the <?=ft_api_display_post_form_captcha_error();?> in the appropriate place).

This second case (CAPTCHA works, processes, but doesn't print an error or anything) is the same thing that I ran into a few weeks ago when I initially started trying to implement CAPTCHA on a POST form.

Why the POST method didn't work properly [i]this[/] time around, I do not know. In all cases, I followed the tutorials in the documentation to the letter.


RE: Post- reCAPTCHA (takes all entries) - mja850 - Sep 18th, 2009

(Aug 24th, 2009, 12:53 PM)stonerome Wrote: Hi all

Just setting up the reCAPTCHA - created the account, put the code into the form, everything appears to be working. (You see the Captcha box)

BUt - I can enter ANYTHING in the captcha box - and it accepts and processes the form (I should be getting an error). Any idea what I'm doing wrong?

Thanks! Cory

Hi Cory,

I had the same problem. It seems that changing the spacing in the config.php file works.

<?php

// main program paths - no trailing slashes!
$g_root_url = "xxxxxxxxxxx";
$g_root_dir = "/xxxxxxxxxxx";

// database settings
$g_db_hostname = "localhost";
$g_db_name = "xxxxxxxxxxx";
$g_db_username = "xxxxxxxxxxx";
$g_db_password = "xxxxxxxxxxx";
$g_table_prefix = "ft2_";

$g_api_recaptcha_private_key = "xxxxxxxxxxxxxxxxxxxxxxxxxx";
$g_api_recaptcha_public_key = "yyyyyyyyyyyyyyyyyyyyyy";

?>


RE: Post- reCAPTCHA (takes all entries) - sujith - Nov 18th, 2009

Ben.. please help. i changed my form to a php one and implemented re-captcha succesfully. but now, even if i enter nothing, the form submitts. No error is returned.


RE: Post- reCAPTCHA (takes all entries) - Ben - Nov 24th, 2009

Hi Sujith,

Sorry for the wait! Could you provide a link to your form so I could take a look?

- Ben