• Resolved pacethepanceqbank

    (@pacethepanceqbank)


    Greetings,

    I need help with my reCAPTCHA. It seems to always generate an error message sent to my email (see below). I have tried many attempts to resolve, but without any luck. It seems the error occurs at the registration page. I have the reCAPTCHA on my login and registration pages. I am messaging here today because I don’t know what to do next. Any help appreciated, thank you.

    Error Details
    =============
    An error of type E_ERROR was caused in line 51 of the file /srv/htdocs/wp-content/plugins/learndash-integrity/includes/class-recaptcha-v2.php. Error message: Uncaught TypeError: LearnDash\Integrity\reCaptcha_V2::verify_captcha(): Argument #1 ($token) must be of type string, array given, called in /srv/htdocs/wp-content/plugins/learndash-integrity/includes/class-recaptcha.php on line 138 and defined in /srv/htdocs/wp-content/plugins/learndash-integrity/includes/class-recaptcha-v2.php:51
    Stack trace:
    #0 /srv/htdocs/wp-content/plugins/learndash-integrity/includes/class-recaptcha.php(138): LearnDash\Integrity\reCaptcha_V2->verify_captcha(Array)
    #1 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(326): LearnDash\Integrity\ReCaptcha->verify_captcha_register(Object(WP_Error))
    #2 /wordpress/core/6.4.2/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(WP_Error), Array)
    #3 /wordpress/core/6.4.2/wp-includes/user.php(3407): apply_filters(‘registration_er…’, Object(WP_Error), ‘test15313458’, ‘test15313458@em…’)
    #4 /wordpress/core/6.4.2/wp-login.php(1118): register_new_user(‘test15313458’, ‘test15313458@em…’)
    #5 {main}
    ? thrown

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author robertabela

    (@robert681)

    Hello Pacethepanceqbank

    Thank you for your forum post. The error is not from our CAPTCHA 4WP plugin, but from a plugin / extension with the slug learndash-integrity.

    If you are using our plugin and enabling CAPTCHA along with other extensions or plugins that also offer captcha integration to your forms, you need to disable the CAPTCHA on the other solution, and keep only one plugin solution that offers captcha to your site’s forms.

    If you are unsure of where the problem could be, I would start by disabling all the other plugins and switching to a default theme, then enable the plugins one by one until the error starts to reproduce again. That will provide you with the culprit for sure, and it will be way easier to deal with the problem after you narrow it down.

    Therefore, I would first check all forms and see if there are multiple captcha integrations on the site, as well as inform the plugin developers of “learndah-integrity” as well, as they might be able to offer you some help with this one.

    Good luck on this, and feel free to reach back on how it all went!

    Thread Starter pacethepanceqbank

    (@pacethepanceqbank)

    Thank you so much!

    Plugin Author robertabela

    (@robert681)

    I am glad the issue has been resolved. If you are using our plugin and you are happy with it and our service, please do not forget to spare a minute and rate our plugin.

    These ratings and reviews are really helpful.

    Thank you and have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘reCAPTCHA fatal error’ is closed to new replies.