• Newbie here!

    I did a series of stupid things and now I’m getting a fatal error. I tried to replace a cart page by renaming it cart-2. Even though I create and configured a cart page, whenever I tried to test the page it always went back cart-2. After trying to clear cache, etc. I deleted WooCommerce. When I attempted to reinstall, I got the following error. I have no idea what to do next. Any help much appreciated.

    Fatal error: Uncaught Error: Class ‘WC_Data’ not found in /home/customer/www/radezyne.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php:15 Stack trace: #0 /home/customer/www/radezyne.com/public_html/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php(87): require() #1 [internal function]: Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3cjetpack\PHP_Autoloader::load_class(‘Automattic\\WooC…’) #2 [internal function]: spl_autoload_call(‘Automattic\\WooC…’) #3 /home/customer/www/radezyne.com/public_html/wp-content/plugins/optinmonster/OMAPI/WooCommerce.php(542): class_exists(‘Automattic\\WooC…’) #4 /home/customer/www/radezyne.com/public_html/wp-includes/class-wp-hook.php(292): OMAPI_WooCommerce->maybe_store_note(”) #5 /home/customer/www/radezyne.com/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #6 /home/customer/www/radezyne.com/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #7 / in /home/customer/www/radezyne.com/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/Note.php on line 15

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    This kind of problem is usually caused by a conflict with your theme or with another plugin.
    ?
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Before you start

    1. First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like?Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    2. Second, I would suggest installing a plugin called?Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.

    I hope that helps ??

    Thread Starter vmdials

    (@vmdials)

    Gabriel,
    Thanks for responding. Unfortunately, I cannot follow your instructions as the problem is that I deleted woocommerce and am unable to add it back.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    @vmdials ??

    Yes, I can see that. The error that you are receiving is probably due to a conflict with your theme or with one of your plugins.

    So by following the steps above you should be able to install WooCommerce on your site one more time (In case that you would like to install it once again).

    Please let me know how it goes!

    Thread Starter vmdials

    (@vmdials)

    ok. i’ll give it a try. thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Uncaught Error: Class ‘WC_Data’ not found in’ is closed to new replies.