Title: Fatal error Cannot redeclare class
Last modified: February 14, 2018

---

# Fatal error Cannot redeclare class

 *  Resolved [teddyfm17](https://wordpress.org/support/users/teddyfm17/)
 * (@teddyfm17)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-17/)
 * HI,
 * I have that problem: Fatal error: Cannot redeclare class WC_Settings_Products.
 * Someone know how resolve?
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-17/#post-9976074)
 * [@teddyfm17](https://wordpress.org/support/users/teddyfm17/),
 * What is the context of this error? Where and when are you encountering it?
 * It would also be helpful if you shared your System Status Report.
 * Generally, a `Cannot redeclare class` error means that you have a class of the
   same name declared more than once. Possibly via multiple includes, having custom
   code that declares the class in your `functions.php` file or having a plugin 
   installed that declares a class of the same name.
 *  Thread Starter [teddyfm17](https://wordpress.org/support/users/teddyfm17/)
 * (@teddyfm17)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-17/#post-9976480)
 * Hi [@luminus](https://wordpress.org/support/users/luminus/),
 * thanks for the answer.
 * It appears inside the product page (look screen: [http://it.tinypic.com/r/16j4k08/9](http://it.tinypic.com/r/16j4k08/9))
   and makes the tags, product image and gallery unusable.
 * now the error has become Fatal error: Cannot declare class WC_Settings_Products,
   because the name is already in use in /../class-wc-settings-products.php on line
   0
 * I don’t understand 🙁
 *  [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * (@luminus)
 * Automattic Happiness Engineer
 * [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-17/#post-9980750)
 * [@teddyfm17](https://wordpress.org/support/users/teddyfm17/),
 * You’ve clearly got a plugin (or some custom code in your theme) that is trying
   to declare a class with the same name as one already declared in WooCommerce.
 *  and disable all plugins except for WooCommerce. If you can install plugins, 
   install [Health Check](https://wordpress.org/plugins/health-check/). On the troubleshooting
   tab, you can click the button to disable all plugins and change the theme for
   you while you’re logged in to that session without affecting normal visitors 
   to your site. Note that Health Check may not count Storefront as a default theme,
   so you can also use [Twenty Seventeen](https://wordpress.org/themes/twentyseventeen/)
   as well.
 * If that resolves the issue, then one-by-one you can switch back your theme and
   re-enable your plugins, testing in between, until you find the one causing the
   conflict.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error Cannot redeclare class’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Luminus Alabi](https://wordpress.org/support/users/luminus/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-class-17/#post-9980750)
 * Status: resolved