• Resolved guymal

    (@guymal)


    I added the form block to a page and enabled Google reCAPTCHA.

    I enter my site key and secret key but when I try to save them the button always changes to “Saving” and never actually saves the keys.

    I looked in the console and this is the error when cliking on save: “react-dom.min.js?ver=18.2.0:10 Uncaught TypeError: wp.api.models.Settings is not a constructor”.

    I tried both ReCaptcha v2 and v3 but I get the same error every time.

    How can I save the Recapchta keys?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @guymal,

    What form block did you use? Is it the Advanced Form? If not, I recommend the Advanced Form. However, everything works as expected when I add my keys to a Captcha field. Could you let us know if you used the standard Form, or the Advanced Form block.

    Thread Starter guymal

    (@guymal)

    Hi @ghernkadence

    I was using the regular form and now I added “Form (Adv)”.

    But that doesn’t have the options for adding a reCaptcha.

    Here’s what I see:

    And the settings:

    The regular form had more settings:

    I think I’m missing something here.

    Thanks!

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @guymal,

    The Advanced Form uses a Captcha field. You add the field like a block in the Advanced Form. The Captcha block, like in the picture in my previous response, has block settings for the API key.

    Thread Starter guymal

    (@guymal)

    Oh, now I see. I added it now but when I try to save the reCaptcha keys I get the exact same thing: the button is stuck on “Saving” and in the console I see this error:

    react-dom.min.js?ver=18.2.0:10 Uncaught TypeError: wp.api.models.Settings is not a constructor

    • This reply was modified 11 months, 2 weeks ago by guymal.
    • This reply was modified 11 months, 2 weeks ago by guymal.
    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @guymal,

    Unfortunately, I can’t recreate the error in my site, and the captcha works as expected for the standard and advanced forms.

    Please follow the steps in Kadence’s troubleshooting article, including clearing your cache and checking for plugin conflicts.

    I’ve come across similar errors which had to do with cached REST API. For example, LiteSpeed has an option to cache the REST API. Use the troubleshooting plugin to disable optimization plugins to see if it helps solve the problem.

    Thread Starter guymal

    (@guymal)

    I couldn’t manage to figure out what is causing the problem.

    Any idea what tables in the database store these keys?

    Maybe I can just save them directly in the database.

    Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @guymal,

    I recommend contacting Kadence support directly: https://www.kadencewp.com/contact-us/. Mention this forum thread.

    Plugin Support michael-levelup

    (@michaeltarongoy)

    Hi there,

    This topic has been inactive for more than 2 months. I’ll proceed to marking this as resolved.

    If you have further questions or need additional assistance, feel free to start a new topic or refer to our Kadence Blocks documentation here: https://www.kadencewp.com/help-center/knowledge-base/kadence-blocks/

    Thank you for your understanding!
     
    Kind Regards,
    Michael Taro

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t save Google reCAPTCHA keys’ is closed to new replies.