@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.
Hi @luminus,
thanks for the answer.
It appears inside the product page (look screen: 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 🙁
@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.
The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront and disable all plugins except for WooCommerce. If you can install plugins, install 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 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.