Recaptcha Pass/Failing

efh68 23 Sep, 2019
I am having this weird issue where recaptcha is failing and the system message saying the form has been successfully submitted. In this case I am trying to get recaptcha to fail, but the email are still being sent. The forms were set up using the easy builder mode. Joomla 3.9.11 and PHP 7.3.0.
efh68 25 Sep, 2019
[pre]Array
(
[chronoform[li] => contact-us-copy
[event] => submit
[name] => Testing Test
[email] => edmund.harvey@aciwebs.com
[message] => test
[g-recaptcha-response] =>
[button4] =>
[format] => html
[Itemid] => 112
[option] => com_content
[view] => article
[id] => 11
)[/li][/pre]

​[pre]Array
(
=> Array
(
[response[li] => Array
(
[success] =>
[error-codes] => Array
(
[0] => missing-input-response
)

)

[_error] => The NoCaptcha verification has failed.
[log] => Automatic validation enabled.
[recipients] => Array
(
[0] => xxxxxxxxxxxxxx
)

[subject] => Contact Us Request from BRMC website
[body] => [table width="100%" cellpadding="5" cellspacing="3" border="0"][tbody][tr][td width="30%" valign="top" align="right"][strong]Name[/strong][/td][td width="70%" valign="top" align="left"]Testing Test[/td][/tr][tr][td width="30%" valign="top" align="right"][strong]Email[/strong][/td][td width="70%" valign="top" align="left"]edmund.harvey@aciwebs.com[/td][/tr][tr][td width="30%" valign="top" align="right"][strong]Message[/strong][/td][td width="70%" valign="top" align="left"]test[/td][/tr][/tbody][/table]
[result] => the Mail sent successfully.
[var] => Array
(
[controller] =>
[action] =>
[chronoform] => contact-us-copy
[event] => submit
[__connection] => Array
(
[id] => 5
[title] => Contact BRMC
[alias] => contact-us-copy
[published] => 1
[public] => 1
[description] =>
[params] => Array
(
[default_event] => load
[mode] => easy
[limited_edition] => 1
)

[events] => Array
(
[load] => Array
(
[name] => load
)

[submit] => Array
(
[name] => submit
)

)

[sections] => Array
(
[one] => Array
(
[name] => one
)

)

[views] => Array
(
[5] => Array
(
[designer_label] => CONTACT US
[name] => header5
[_section] => one
[type] => header
[tag] => h2
[text] => CONTACT US
[subtext] =>
[class] => ui header dividing
)

[1] => Array
(
[designer_label] => Name
[name] => field_text1
[_section] => one
[type] => field_text
[label] => Name
[params] => Array
(
[placeholder] =>
[name] => name
[id] => name
[value] =>
)

[dynamics] => Array
(
[email] => Array
(
[enabled] => 1
)

[save] => Array
(
[enabled] => 1
)

)

[validation] => Array
(
[required] => true
[optional] =>
[email] =>
[url] =>
[integer] =>
[decimal] =>
[number] =>
[regExp] =>
[match] =>
[different] =>
[minLength] =>
[maxLength] =>
[contains] =>
[disabled] =>
[rules] =>
)

[verror] =>
[inputmask] =>
[description] => Array
(
[text] =>
)

[tooltip] => Array
(
[text] =>
[class] => icon info circular blue inverted small
)

[states] => Array
(
[hidden] =>
[disabled] =>
)

[reload] => Array
(
[event] =>
)

[attrs] =>
[container] => Array
(
[class] => field
[width] =>
)

[events] => Array
(
[0] => Array
(
[sign] => =
[value] =>
[identifier] =>
)

)

)

[2] => Array
(
[designer_label] => Email
[name] => field_text2
[_section] => one
[type] => field_text
[label] => Email
[params] => Array
(
[placeholder] =>
[name] => email
[id] => email
[value] =>
)

[dynamics] => Array
(
[email] => Array
(
[enabled] => 1
)

[save] => Array
(
[enabled] => 1
)

)

[validation] => Array
(
[required] => true
[optional] =>
[email] => true
[url] =>
[integer] =>
[decimal] =>
[number] =>
[regExp] =>
[match] =>
[different] =>
[minLength] =>
[maxLength] =>
[contains] =>
[disabled] =>
[rules] =>
)

[verror] =>
[inputmask] =>
[description] => Array
(
[text] =>
)

[tooltip] => Array
(
[text] =>
[class] => icon info circular blue inverted small
)

[states] => Array
(
[hidden] =>
[disabled] =>
)

[reload] => Array
(
[event] =>
)

[attrs] =>
[container] => Array
(
[class] => field
[width] =>
)

[events] => Array
(
[0] => Array
(
[sign] => =
[value] =>
[identifier] =>
)

)

)

[3] => Array
(
[designer_label] => Message
[name] => field_textarea3
[_section] => one
[type] => field_textarea
[label] => Message
[params] => Array
(
[rows] => 5
[name] => message
[id] => message
[value] =>
[placeholder] =>
)

[editor] => Array
(
[enabled] =>
)

[resize] => Array
(
[enabled] =>
)

[dynamics] => Array
(
[email] => Array
(
[enabled] => 1
)

[save] => Array
(
[enabled] => 1
)

)

[validation] => Array
(
[required] => true
[optional] =>
[regExp] =>
[minLength] =>
[maxLength] =>
[contains] =>
[disabled] =>
[rules] =>
)

[verror] =>
[description] => Array
(
[text] =>
)

[tooltip] => Array
(
[text] =>
[class] => icon info circular blue inverted small
)

[states] => Array
(
[hidden] =>
[disabled] =>
)

[reload] => Array
(
[event] =>
)

[attrs] =>
[container] => Array
(
[class] => field
[width] =>
)

[events] => Array
(
[0] => Array
(
[sign] => empty
[value] =>
[identifier] =>
)

)

)

[6] => Array
(
[designer_label] =>
[name] => google_nocaptcha6
[_section] => one
[type] => google_nocaptcha
[label] =>
[site_key] => 6LfQZrkUAAAAADZQfmU3S2K3VzShh_rXqpm6m1IZ
[secret_key] => 6LfQZrkUAAAAACYVVfwFeNDTtVjiNLzbOnOWgopH
[failed_error] => You didn't pass the NoCaptcha verification.
[theme] => light
[lang] => {language:short}
)

[4] => Array
(
[designer_label] =>
[name] => field_button4
[_section] => one
[type] => field_button
[params] => Array
(
[type] => submit
[name] => button4
[id] => button4
[value] =>
[data-selections] => 0
[data-message] => Please make a selection from the list
)

[content] => Send Message [i aria-hidden="true"][/i]
[color] => green
[class] =>
[fluid] => 0
[attrs] =>
[container] => Array
(
[class] =>
)

[toolbar] => Array
(
[enabled] => 0
)

[events] => Array
(
[0] => Array
(
[sign] => click
[identifier] =>
)

)

)

)

[functions] => Array
(
[0] => Array
(
[_event] => load
[type] => display_section
[sections] => one
[display_type] => form
[data_provider] =>
[validation] => Array
(
[type] => inline
)

[event] => submit
[submit_animation] => 1
[parameters] =>
[dynamic] =>
[invisible] =>
[keepalive] => 1
[formid] =>
[attrs] =>
[class] => ui form
[size] =>
[modal] => Array
(
[enabled] =>
[pageload] => 1
[header] =>
[delay] =>
[scroll] =>
[trigger] =>
[replacement] =>
[size] => fullscreen
[basic] =>
[close_icon] => 1
[closable] => 1
[inverted] => 1
)

)

[4] => Array
(
[_event] => submit
[type] => google_nocaptcha
[enabled] => 1
[secret_key] => 6LfQZrkUAAAAACYVVfwFeNDTtVjiNLzbOnOWgopH
[failed_error] => You didn't pass the NoCaptcha verification.
)

[5] => Array
(
[_event] => google_nocaptcha4/fail
[type] => event_load
[event_name] => load
[stop] => 1
)

[1] => Array
(
[_event] => submit
[type] => validate_fields
[enabled] => 1
[list_errors] => 1
[data_provider] => {data:}
[error_message] => Please provide all the required info.
[fields_selection] =>
[fields_list] =>
)

[2] => Array
(
[_event] => validate_fields2/fail
[type] => event_load
[event_name] => load
[stop] => 1
)

[6] => Array
(
[_event] => submit
[type] => upload
[enabled] =>
[path] => {path:front}/uploads/
[extensions] => jpg,png,gif,pdf,doc,docx,txt,zip
[autofields] => 1
[config] =>
[filename_provider] =>
[max_size] => 1000
[min_size] => 0
[max_size_error] => The file has exceeded the maximum size limit.
[min_size_error] => The file is below the minimum size limit.
[file_extension_error] => The file extension is not permitted.
)

[7] => Array
(
[_event] => upload6/fail
[type] => event_load
[event_name] => load
[stop] => 1
)

[12] => Array
(
[_event] => submit
[type] => save_data
[enabled] =>
[autotable] =>
[autofields] => 1
[db_table] =>
[action] => save
[data_provider] =>
[model_name] => Data12
[overrides] => Array
(
[1] => Array
(
[name] => created
[value] => {date:Y-m-d H:i:s}
[action] => insert
)

[2] => Array
(
[name] => user_id
[value] => {user:id}
[action] => insert
)

[3] => Array
(
[name] => modified
[value] => {date:Y-m-d H:i:s}
[action] => update
)

)

[_save] => 1
[viewfields] => {"field_text1":"name","field_text2":"email","field_textarea3":"message","field_button4":"button4"}
[db] => Array
(
[enabled] =>
[user] => admin
[pass] => admin
[name] =>
[type] =>
[host] =>
[prefix] =>
)

)

[13] => Array
(
[_event] => save_data12/fail
[type] => event_load
[event_name] => load
[stop] => 1
)

[8] => Array
(
[_event] => submit
[type] => email
[enabled] => 1
[recipients] => ryan.patterson@scouting.org
[subject] => Contact Us Request from BRMC website
[body] =>
[autoemail] => 1
[mode] => html
[advanced_template] =>
[autofields] => 1
[attachments] =>
[reply_email] =>
[reply_name] =>
[from_email] =>
[from_name] =>
[cc] =>
[bcc] =>
[template] => Array
(
[header] =>
[body] =>
[footer] =>
)

[encrypted] => [br] [gpg_sec_key] => [br] )[br][br] [9] => Array[br] ([br] [_event] => submit[br] [type] => email[br] [enabled] => [br] [recipients] => [br] [subject] => [br] [body] => [br] [autoemail] => 1[br] [mode] => html[br] [advanced_template] => [br] [autofields] => 1[br] [attachments] => [br] [reply_email] => [br] [reply_name] => [br] [from_email] => [br] [from_name] => [br] [cc] => [br] [bcc] => [br] [template] => Array[br] ([br] [header] => [br] [body] => [br] [footer] => [br] )[br][br] [encrypted] => [br] [gpg_sec_key] => [br] )[br][br] [10] => Array[br] ([br] [_event] => submit[br] [type] => message[br] [message_type] => success[br] [location] => body[br] [content] => Thank you for contact the Blue Ridge Mountain Council.[br] )[br][br] [14] => Array[br] ([br] [_event] => submit[br] [type] => redirect[br] [event] => [br] [time] => [br] [url] => [br] [parameters] => [br] )[br][br] [11] => Array[br] ([br] [_event] => submit[br] [type] => debugger[br] [enabled] => 1[br] [var_name] => [br] )[br][br] )[br][br] [locales] => Array[br] ([br] [en_GB] => Array[br] ([br] [name] => en_GB[br] [content] => [br] )[br][br] )[br][br] [rules] => Array[br] ([br] [access] => Array[br] ([br] [1] => [br] [2] => [br] [3] => [br] [4] => [br] [5] => [br] [10] => [br] [11] => [br] [34] => [br] [12] => [br] [13] => [br] [15] => [br] [14] => [br] [16] => [br] [17] => [br] [18] => [br] [19] => [br] [20] => [br] [21] => [br] [22] => [br] [23] => [br] [24] => [br] [25] => [br] [26] => [br] [27] => [br] [28] => [br] [29] => [br] [30] => [br] [31] => [br] [32] => [br] [33] => [br] [6] => [br] [7] => [br] [8] => [br] [9] => [br] )[br][br] )[br][br] )[br][br] [__blocks] => Array[br] ([br] )[br][br] [__default_event] => load[br] [__event] => submit[br] [__viewslimit] => 15[br] [__active_event] => submit[br] [/li] => 1[br] )[br][br] )[br][br])[/pre]
efh68 25 Sep, 2019
How can I turn of Automatic validation enabled. in the easy mode?
healyhatman 26 Sep, 2019
Just switch to advanced mode
efh68 26 Sep, 2019
Same problem in advanced mode.
GreyHead 27 Sep, 2019
Hi efh68,

Did you turn off Automatic Validation after switching to Advanced Mode?

Bob
efh68 27 Sep, 2019
Is that the "Check Security Fields" toggle switch? By fault it was off. I tried with on and off, the problem would not go away either way.
GreyHead 27 Sep, 2019
Hi efh68,

I believe that switch turns the Captcha check on and off. You want the one above it: Enable Server Validations - Fields with validation rules will be auto validated.

Bob
efh68 27 Sep, 2019
That was off by default as well. I toggled it on and off for testing and got the same results.
healyhatman 27 Sep, 2019

missing-input-response


Do you actually have the recaptcha view on the front end?
efh68 27 Sep, 2019
Yes, http://bsa-brmc.org/index.php/test-form
healyhatman 27 Sep, 2019
And have you got something in the "fail" event to make it go back if it fails?
efh68 27 Sep, 2019
Yes I have a "Check Google Recaptcha" with the security key in it's settings and an event loop in the fail section of that. I had the email block under the "Check Google Recaptcha" instead of in the "Success". That fixed the problem. Someday I hope to be able to figure this all out. Sorry for wasting your time.
healyhatman 27 Sep, 2019
You shouldn't have to put it in success, having an event load in the fail action should be enough. What does your event load look like
healyhatman 30 Sep, 2019
Answer
Yeah that's your problem. You need an EVENT LOAD not a LOOP EVENT.
efh68 30 Sep, 2019
Thank You!
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger