Title: Fatal error: Uncaught Error: Class &#8216;ReCaptcha\ReCaptcha&#8217;
Last modified: December 8, 2019

---

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

 *  Resolved [juryiel](https://wordpress.org/support/users/juryiel/)
 * (@juryiel)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-recaptcharecaptcha/)
 * 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](https://wordpress.org/support/users/juryiel/)
 * (@juryiel)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-recaptcharecaptcha/#post-12216490)
 * Ah, requires installing this package:
 * composer require google/recaptcha “^1.2”
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-recaptcharecaptcha/#post-12217217)
 * 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 WordPress.org, and
   then try re-installing.
 * I hope this helps, let me know if I can provide any further infos.
 *  Thread Starter [juryiel](https://wordpress.org/support/users/juryiel/)
 * (@juryiel)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-recaptcharecaptcha/#post-12217965)
 * 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](https://wordpress.org/support/users/juryiel/).
    -  This reply was modified 6 years, 6 months ago by [juryiel](https://wordpress.org/support/users/juryiel/).
    -  This reply was modified 6 years, 6 months ago by [juryiel](https://wordpress.org/support/users/juryiel/).
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-recaptcharecaptcha/#post-12220578)
 * 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.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-class-recaptcharecaptcha/#post-12220578)
 * Status: resolved