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 "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
Errors using Submission Pre-Parser for Simple Spam Protection - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16)
+--- Thread: Errors using Submission Pre-Parser for Simple Spam Protection (/showthread.php?tid=854)



Errors using Submission Pre-Parser for Simple Spam Protection - Big Al - Sep 20th, 2010

I wasent able to find anything on this subject in the Forums, but if Im missing it, please point me in the right direction.

Im trying to implement "Simple Spam Protection" using the Submission Pre-Parser. It sorta works.

When a submission is made normally, all works as it should. But when the hidden field is filled, ass I get it this:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/triad/public_html/formtools/global/code/submissions.php on line 516

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/triad/public_html/formtools/global/code/submissions.php on line 516

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/triad/public_html/formtools/global/code/submissions.php on line 516

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/triad/public_html/formtools/global/code/submissions.php on line 516

Warning: Cannot modify header information - headers already sent by (output started at /home/triad/public_html/formtools/global/code/submissions.php:516) in /home/triad/public_html/formtools/process.php on line 284


So, line 516 is: $submission = mysql_fetch_assoc($submission_info);
which I did not change.

What am I missing here?
Thanks in advance for your help.
AL


RE: Errors using Submission Pre-Parser for Simple Spam Protection - Ben - Sep 25th, 2010

Hi Al,

Huh! I'll look at this today, see if I can reproduce it & get back to you.

- Ben


RE: Errors using Submission Pre-Parser for Simple Spam Protection - Big Al - Oct 14th, 2010

Any luck Ben?


RE: Errors using Submission Pre-Parser for Simple Spam Protection - thepeel - Jun 29th, 2011

Was there ever a resolution to this? I'm currently in a similar situation. The spam detection works and everything goes through as expected without any mysql/php errors, however, the email is still sent.

How can I get it to keep from sending the email on submission?

Thanks,

-peel


RE: Errors using Submission Pre-Parser for Simple Spam Protection - Ben - Jul 1st, 2011

Hi Peel,

You're right! This is a bug. I'll include a fix for this in 2.1.0, but I won't make a separate patch release for this. Do you have a POST form, or an API form (or both)?

- Ben