Switching to Captcha (v2025)

v2025.12

switching back to the Captcha control from reCaptcha

before chaning, the control totally vanished, no errors. suspect due to closing my google account
flipped to captcha, regenerated but nothing displays no errors nothing.
everyhting looks good, use captcha is enabled on all the various forms

but did notice in config.php that

    // Extensions
    "USE_PHPCAPTCHA_FOR_LOGIN" => false,

is still false even after regenerating

not sure what we missed
and also checked my google account, the recap is still there and i resynced it , same keys, but it does not also appear, no errors whatsoever, list literally disappeared all of a sudden

thanks
JS

  1. Note that the USE_PHPCAPTCHA_FOR_LOGIN is set to true by ConfigurationEvent in userfn.php, and that only affects the login page.
  2. Make sure you re-generated and re-uploaded all files.
  3. If you use Use route cache for production, you need to delete old route cache so the route for captcha will be used.
  4. Enable debugging and check log for errors.

I can't see anything to note.

in layout.php i stepped through and noticed:

            var recaptchaCallback = function() {
                let $ = jQuery;
                ew.initReCaptcha = function(e) {
                    let $recaptcha = $(e?.target ?? document).find(".g-recaptcha:not([data-id])");
                    if ($recaptcha[0]) {}

e = undefined
in network: recaptcha__en.js 
Request URL:
https://www.gstatic.com/recaptcha/releases/XXXXXXXX_yVx6IdpLbpXdiLy/recaptcha__en.js

Request Method GET
Status Code 200 OK

In preview tab:
(function() {
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
 Copyright Google LLC
...code
}

i rechecked and re-entered the api keys, deleted cache, same behaviour on local and remove servers
google package loaded in .json ( "google/recaptcha": "^1.3")

not sure what i;m missing

The code you posted shows that you are still using reCaptcha. You better delete all scripts and generate again.

resolved.... userfn.php was missing the captcha code :see_no_evil_monkey: as we don't use the app to manage userfn.php and don't regen too often.