Same Zen Cart 2.0.1, PHP 8.3
Printable View
the latest version by @swguy, perhaps addresses this issue. i have not tested. the line versions look different.
i have addressed this issue (for the version that both of you seem to be running) in a different manner. change line 40 as such:
best.PHP Code:
//from
$resp = $recaptcha->verify($_POST['g-recaptcha-response'], $_SERVER['REMOTE_ADDR']);
//to
$resp = $recaptcha->verify($_POST['g-recaptcha-response'] ?? 'nothingPosted', $_SERVER['REMOTE_ADDR']);
In my version I checked previously that this post was already set, to set a corresponding error message.
I followed every step in the readme file. I get "ERROR for site owner: Invalid site key". I deleted my key, started over - same thing. What did I overlook?
so how do I do that?
HI David,
I install this version of recaptcha in my cart 2.1.0 nothing added to the basic installation and now when I go to sign into admin I just get a white page. Ideas?
Thanks,
Mark:smile:
HI here is what myDebug log says
[29-Dec-2024 17:22:04 UTC] PHP Fatal error: Uncaught Error: Class "google_recaptcha" not found in /home/costumemark/public_html/test/includes/autoload_func.php:47
Stack trace:
#0 /home/costumemark/public_html/test/bluFf-XFT-spRay/includes/application_top.php(40): require()
#1 /home/costumemark/public_html/test/bluFf-XFT-spRay/login.php(8): require('/home/costumema...')
#2 /home/costumemark/public_html/test/bluFf-XFT-spRay/index.php(16): require('/home/costumema...')
#3 {main}
thrown in /home/costumemark/public_html/test/includes/autoload_func.php on line 47
[29-Dec-2024 17:22:04 UTC] Request URI: /test/bluFf-XFT-spRay/index.php?cmd=login&camefrom=index.php, IP address: 107.5.67.145
--> PHP Fatal error: Uncaught Error: Class "google_recaptcha" not found in /home/costumemark/public_html/test/includes/autoload_func.php:47
Stack trace:
#0 /home/costumemark/public_html/test/bluFf-XFT-spRay/includes/application_top.php(40): require()
#1 /home/costumemark/public_html/test/bluFf-XFT-spRay/login.php(8): require('/home/costumema...')
#2 /home/costumemark/public_html/test/bluFf-XFT-spRay/index.php(16): require('/home/costumema...')
#3 {main}
thrown in /home/costumemark/public_html/test/includes/autoload_func.php on line 47.
[29-Dec-2024 17:22:04 UTC] Request URI: /test/bluFf-XFT-spRay/index.php?cmd=login&camefrom=index.php, IP address: 107.5.67.145
--> PHP Fatal error: Uncaught Error: Class "google_recaptcha" not found in /home/costumemark/public_html/test/includes/autoload_func.php:47
Stack trace:
#0 /home/costumemark/public_html/test/bluFf-XFT-spRay/includes/application_top.php(40): require()
#1 /home/costumemark/public_html/test/bluFf-XFT-spRay/login.php(8): require('/home/costumema...')
#2 /home/costumemark/public_html/test/bluFf-XFT-spRay/index.php(16): require('/home/costumema...')
#3 {main}
thrown in /home/costumemark/public_html/test/includes/autoload_func.php on line 47.
THanks:smile: