0

I am New to wordpress After installing and activating a plugin I got the following error

( ! ) Fatal error: Cannot declare class WP_Importer, because the name is already in use in C:\wamp2\www\wordpress\wp-admin\includes\class-wp-importer.php on line 5

Please help me, how to fix this error...

6
  • 1
    You have another plugin/theme adding the WP_Importer class. Did you install any recent plugin/theme that broke the website? – Cornel Raiu Feb 22 '20 at 10:35
  • or are you trying to include the class file anywhere without using require_once or include_once ? – Cornel Raiu Feb 22 '20 at 10:36
  • Yes I installed a plugin and after activating it that what happened – user183165 Feb 22 '20 at 10:38
  • 1
    go in the wp-content/plugins folder and change/delete the folder of the plugin you installed. It will work again after that. You should also open a ticket with the plugin developer and describe the problem. – Cornel Raiu Feb 22 '20 at 11:35
  • Many thanks to you sir... It worked ... thank you soooooo much – user183165 Feb 22 '20 at 12:08
0

You have another plugin/theme adding the WP_Importer class. Did you install any recent plugin/theme that broke the website?

If you did install a plugin that broke the website go in the wp-content/plugins folder and change/delete the folder of the plugin you installed. It will work again after that.

You should also open a ticket with the plugin developer and describe the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.