1

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? Feb 22, 2020 at 10:35
  • or are you trying to include the class file anywhere without using require_once or include_once ? Feb 22, 2020 at 10:36
  • Yes I installed a plugin and after activating it that what happened
    – user183165
    Feb 22, 2020 at 10:38
  • 2
    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. Feb 22, 2020 at 11:35
  • 1
    Many thanks to you sir... It worked ... thank you soooooo much
    – user183165
    Feb 22, 2020 at 12:08

1 Answer 1

1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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