evoWeb / recaptcha

TYPO3 Extension to make use of googles nocaptcha
GNU General Public License v2.0
6 stars 18 forks source link

CaptchaService.php broken - Return value must be of type array, null returned #56

Closed tenkraD closed 2 years ago

tenkraD commented 2 years ago

Prerequisites

Versions

Typo3 11.5.8 reCaptcha 11.0.2 Edit: i tried your latest developer build because i couldn't set the robotMode Parameter in the latest stable typo3 captcha extension

Description

Captcha Extension dose not work. I use the typo3 form extension and placing the captcha there. Captcha is displayed in the frontend and can be clicked (im not a robot captcha v2) but after submit i get following error

Steps to Reproduce

  1. place the captcha in a form (EXT:Form)
  2. set typo3 constants plugin.tx_recaptcha.public_key = public_key-from-google & plugin.tx_recaptcha.private_key = private_key-from-google
  3. show form in frontend
  4. check captcha extension
  5. submit form

Expected behavior

after checking the captcha and submit form, formdata gets submitted & no error is displayed

Actual behavior

(1/1) TypeError Evoweb\Recaptcha\Services\CaptchaService::queryVerificationServer(): Return value must be of type array, null returned

image

mjpr263 commented 1 year ago

Would like to re-open this issue.

Error occures under Typo3 11.5.20 and reCaptcha 11.0.3. Downgrading to reCaptcha 11.0.2 helps to avoid the error.

sascha-egerer commented 1 year ago

@mjpr263 It's just not released yet... @garbast Any plan to release this change soonish?

mjpr263 commented 1 year ago

@sascha-egerer Installing it via composer without any version-string, version 11.0.3 is installed

sascha-egerer commented 1 year ago

@mjpr263 The fix is not included in 11.0.3. It's only in develop https://github.com/evoWeb/recaptcha/compare/11.0.3...develop