• Resolved juryiel

    (@juryiel)


    When enabling Recaptcha I’m getting the following message:

    Fatal error: Uncaught Error: Class ‘ReCaptcha\ReCaptcha’

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter juryiel

    (@juryiel)

    Ah, requires installing this package:

    composer require google/recaptcha “^1.2”

    Plugin Author Jeff Starr

    (@specialk)

    I’m not sure what you are looking at, but can tell you that the plugin provides all of the required classes/code for Google reCaptcha. You can find it all in the /recaptcha/ directory. If that directory is missing from your install, best advice is to re-download the plugin only from here at ww.wp.xz.cn, and then try re-installing.

    I hope this helps, let me know if I can provide any further infos.

    Thread Starter juryiel

    (@juryiel)

    When I installed the USP plugin recaptcha did not work, and gave that error. The error was occurring when someone clicked the “I am not a robot” checkbox. I looked into the error, and it appears that if you don’t install recapthca via composer, recaptcha may not always work right (depending on your specific server setup) and might give this error. The suggestion was to re-install recaptcha manually using composer, which I did, and it fixed my problem.

    Not sure what installation method your plugin uses for recaptcha, but I can verify it did not work for me without installing recaptcha myself following recaptcha’s install instruction on their github repo.

    • This reply was modified 6 years, 6 months ago by juryiel.
    • This reply was modified 6 years, 6 months ago by juryiel.
    • This reply was modified 6 years, 6 months ago by juryiel.
    Plugin Author Jeff Starr

    (@specialk)

    Well I’m glad you got it sorted either way, good news.

    Also I should add (for the sake of anyone else reading, to help avert any confusion):

    The plugin has always (like for 10+ years) included all the required scripts/code in each release, and never has composer been required for anything. Also, 30,000+ active users and this is the first time anyone has mentioned composer or the need to use composer for anything USP-related.

    So again, glad you got it all figured out, but I can assure anyone reading that normally composer or any other PHP file manager is *not* required to use this plugin. Everything needed is included in the plugin download zip file, as can be verified on a default WP install. Or by simply examining the source code.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: Uncaught Error: Class ‘ReCaptcha\ReCaptcha’’ is closed to new replies.