TehTux / jh_captcha

TYPO3 Extension jh_captcha
https://typo3.org/extensions/repository/view/jh_captcha
GNU General Public License v2.0
5 stars 20 forks source link

Oops, an error occurred! Code: 201911251334528cc9d495 - contact form #16

Closed ds2k5 closed 4 years ago

ds2k5 commented 4 years ago

Describe the bug did not work for me with: Typo3 9.5.11 and Bootstrap Package https://extensions.typo3.org/extension/bootstrap_package/

To Reproduce Steps to reproduce the behavior:

  1. Add Ext: jh_captcha add Parmeters

Mastertemplate

https://www.bilder-upload.eu/bild-b3d3c9-1574685814.png.html

Template from ContactForm

https://www.bilder-upload.eu/bild-6aeed9-1574691079.png.html

  1. create contact form

https://www.bilder-upload.eu/bild-a6f831-1574685684.png.html

  1. open the form in Frontend

https://www.bilder-upload.eu/bild-5f0f94-1574685864.png.html

  1. See error

Oops, an error occurred! Code: 201911251334528cc9d495

If I remove reCaptcha from Contact Form, the Contact Form works fine.

Expected behavior A clear and concise description of what you expected to happen.

Affected versions

Additional context Add any other context about the problem here.

TehTux commented 4 years ago

Hello, thanks for your ticket. Your configuration is completely wrong. First you write that you are using form and then you use a configuration for formhandler. In TypoScript you write tx_jmrecaptcha, my extension is called tx_jhcaptcha. Additionally, "Oops, an error occurred!" doesn't say anything. You have to activate the error output to get a meaningful output.

ds2k5 commented 4 years ago

Thank you.

My solution is now this:

on the Contact Site Template:

Constant:

`plugin.tx_jhcaptcha.settings.reCaptcha { v2 { siteKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx secretKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx } v3 { siteKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx secretKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx } }

validators.1.config.fieldConf { jh_captcha_recaptcha.errorCheck { 1 = required 2 = \Haffner\JhCaptcha\Validation\ErrorCheck\ReCaptcha } } plugin.tx_jhcaptcha.settings.reCaptcha.version = 2 plugin.tx_jhcaptcha.settings.powermail.recaptchaId = 0`

Setup:

`

###jh_captcha_recaptcha### ###error_jh_captcha_recaptcha###

master_spamprotection-jh_captcha_recaptcha

`