skip to Main Content

I have running WordPress Site but now a error occurs when I login to Admin Panel of WordPress and site is also not live now. A ‘Fatal Error’ is showing:

Fatal error: Cannot redeclare class WP_Theme_Handler_Checker in /home/niteshvyas84/public_html/shreejeeexcellency.restaurant/wp-content/themes/resca/inc/theme-checker.php on line 4 

Does anyone know how to fix this or do I have to uninstall WordPress and start from scratch?

4

Answers


  1. Chosen as BEST ANSWER

    This Best Solution which really works For Me

    I add My Website in Google Search Console after Website Ownership Verify, I see the same Malware attack message with full details in Website Security option in Search Console Dashboard. Then I submit request to Google look into this web page and do the necessary task. After submitting the, request in review and within 48 hours I got mail from Search Console that your Affected Malware attack hacked website successfully reviewed and Malware was removed successfully from your root directory too. Now No Dangerous message shown in Google Chrome visiting your Site but it still take few hour too. Overall in Max 72 hours the website Ready and no Treats shown and no Dangerous message shown in Chrome Now. Thanks to Google Search Console.


  2. There must be something wrong with your theme. Connect to your site’s FTP server and move the folder wp-content/themes/resca to another folder (such as the root) or download and then delete it. You should then be able to log into the backend and set another theme.

    Login or Signup to reply.
  3. The problem is in your theme somewhere. If you have another theme installed (but obviously inactive), use this guide to change your theme to something else while you troubleshoot the problem.

    Login or Signup to reply.
  4. Try opening theme-checker.php file and then wrap the class declaration code with the class_exists() function, something like:

    if ( !class_exists( 'WP_Theme_Handler_Checker' ) {
    //The existing class declaration
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search