• I had been modifying my code, but when I updated it, I didn’t realize that I mistype some of the line (line 22).

    I did change way far from line 22 (line 102 or something I think), but I think it won’t affect anything above.

    The error says:
    Fatal error: Cannot redeclare WPCF7_RECAPTCHA::__construct() in /home/u821671033/public_html/wp-content/plugins/contact-form-7/modules/recaptcha.php on line 22

    Could you please give me default code so I can start from the begining again? This error makes me can’t do anything.

    https://wordpress.org/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • My suggestion would be to download a clean copy of the plugin from https://wordpress.org/plugins/contact-form-7/ to your local system and then extract the files into a location other than your WordPress installation or working directory. For example, I have a folder in my Downloads directory for WordPress Plugins where I keep clean copies of all of the plugins that I use on the various sites I work on. You can then either replace your plugin file with the one from the clean copy, or simply compare the two to find where your issue is coming from.

    I will offer a note of caution though, modifying the core files of any plugin is not recommended, as these changes will be over-written if you update the plugin through WordPress. It is better to use your functions.php file and attach changes to the various hooks throughout the plugin instead.

Viewing 1 replies (of 1 total)
  • The topic ‘Please give me the defaul of contact-form-7/modules/recaptcha.php’ is closed to new replies.