PHP 8.4 fix: includes/classes/observers/google/ReCaptcha/ReCaptcha.php line 84
change to
public function __construct($secret, ?RequestMethod $requestMethod = null)
(question mark before class on 2nd parameter)
PHP 8.4 fix: includes/classes/observers/google/ReCaptcha/ReCaptcha.php line 84
change to
public function __construct($secret, ?RequestMethod $requestMethod = null)
(question mark before class on 2nd parameter)
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
While a heads up is always appreciated, that was fixed months ago in the version I am maintaining on Github.
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
I have an issue with my site's contact us form page.
I have installed Google Captcha, and it all works fine apart from that on the main page i am unable to send any messages.
The error i get is Response not set.
I have no errors in my log file that relate to google captcha or contact us form.
The version of zencart that i am using is V1.5.8a and we have the bootstrap template.
PHP version is 7.4.33
Any help would be appreciated.
Thank you
I am seeing this error come up in my ZenCart 2.2.2 install:
[05-Jun-2026 20:12:31 America/Los_Angeles] Request URI: /store/index.php?action=send&main_page=ask_a_question&pid=995, IP address: 152.39.130.149, Language id 1
#0 /includes/classes/observers/class.google_recaptcha.php(49): zen_debug_error_handler()
#1 /includes/classes/traits/NotifierManager.php(112): google_recaptcha->update()
#2 /includes/modules/pages/ask_a_question/header_php.php(83): base->notify()
#3 /index.php(40): require('/home/username/...')
--> PHP Warning: Undefined array key "NOTIFY_ASK_A_QUESTION_CAPTCHA_CHECK" in /includes/classes/observers/class.google_recaptcha.php on line 49.
- Jeff
Update to fix PHP 8.4 issue just submitted to fix this log:
PHP Deprecated: ReCaptcha\ReCaptcha::__construct(): Implicitly marking parameter $requestMethod as nullable is deprecated, the explicit nullable type must be used instead in /home/twistedq/public_html/includes/classes/observers/google/ReCaptcha/ReCaptcha.php on line 58
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
So here are two Google reCAPTCHA plugins. One is zen cart forum edition. One is github edition from torvista. I'm currently using the github version and it worked fine. zencart 2.1.0, php 8.3
I just downloaded the forum edition v3.8 and it seems to be significantly different than torvista's version. The forum fix from v3.8 to v3.7 can also found in the github version.
\includes\classes\observers\google\ReCaptcha\ReCaptcha.php
from
public function __construct($secret, RequestMethod $requestMethod = null)
to
public function __construct($secret, ?RequestMethod $requestMethod = null)
This line can also be found in github version
\classes\vendors\Google\recaptcha\src\ReCaptcha\ReCaptcha.php