• The WooCommerce uninstallation fails with:

    [22-Jun-2023 09:43:10 UTC] PHP Fatal error:  Uncaught Error: Class "WC_Plugin_Updates" not found in /.../wp-content/plugins/woocommerce/includes/wc-core-functions.php:2301
    Stack trace:
    #0 /.../wp-includes/class-wp-hook.php(308): wc_enable_wc_plugin_headers(Array)
    #1 /.../wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #2 /.../wp-includes/functions.php(6670): apply_filters('extra_plugin_he...', Array)
    #3 /.../wp-admin/includes/plugin.php(91): get_file_data('/...', Array, 'plugin')
    #4 /.../wp-admin/includes/plugin.php(337): get_plugin_data('/...', false, false)
    #5 /.../wp-content/plugins/wordpress-seo/inc/class-addon-manager.php(758): get_plugins()
    #6 /.../wp-content/plugins/wordpress-seo/inc/class-addon-manager.php(672): WPSEO_Addon_Manager->get_plugins()
    #7 /.../wp-content/plugins/wordpress-seo/inc/class-addon-manager.php(330): WPSEO_Addon_Manager->get_installed_addons()
    #8 /.../wp-includes/class-wp-hook.php(310): WPSEO_Addon_Manager->check_for_updates(Object(stdClass))
    #9 /.../wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array)
    #10 /.../wp-includes/option.php(2036): apply_filters('pre_set_site_tr...', Object(stdClass), 'update_plugins')
    #11 /.../wp-admin/includes/plugin.php(1027): set_site_transient('update_plugins', Object(stdClass))
    #12 /.../wp-admin/includes/ajax-actions.php(4705): delete_plugins(Array)
    #13 /.../wp-includes/class-wp-hook.php(308): wp_ajax_delete_plugin('')
    #14 /.../wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #15 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #16 /.../wp-admin/admin-ajax.php(188): do_action('wp_ajax_delete-...')
    #17 {main}
      thrown in /.../wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 2301
    
    [22-Jun-2023 09:43:11 UTC] PHP Fatal error:  Uncaught Error: Class "WC_Log_Levels" not found in /.../wp-content/plugins/woocommerce/includes/class-wc-logger.php:204
    Stack trace:
    #0 /.../wp-content/plugins/woocommerce/includes/class-woocommerce.php(271): WC_Logger->critical('Uncaught Error:...', Array)
    #1 [internal function]: WooCommerce->log_errors()
    #2 {main}
      thrown in /.../wp-content/plugins/woocommerce/includes/class-wc-logger.php on line 204

    The uninstall stops there and after reloading the plugins admin page the WooCommerce plugin is gone. Database tables seems to be OK but all shop users are still there.

    All plugins are the latest version. Yoast SEO is also part of the stack trace. Maybe there is a relationship.

    This is fully reproducible. wp-config.php contains define(‘WC_REMOVE_ALL_DATA’, true);.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Uninstall fails with Class “WC_Plugin_Updates” not found...

    All plugins are the latest version. Yoast SEO is also part of the stack trace. Maybe there is a relationship.

    Sorry to hear about that, can you temporarily disable Yoast SEO, and then uninstall and reinstall your WooCommerce to see if that works for you?

    https://woocommerce.com/document/installing-uninstalling-woocommerce/

    If that does not help, you can run a full conflict test to see if that helps to find the cause of the issue, more details with instructions here: https://woocommerce.com/document/how-to-test-for-conflicts/

    Let us know if there are any questions.

    Thread Starter Christoph Bratschi

    (@cbratschi)

    Deactivated Yoast SEO but it is still failing:

    [28-Jun-2023 17:21:50 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/.../wp-content/plugins/woocommerce/src/Internal/Admin/Analytics.php' (include_path='.:/usr/local/share/pear') in /.../wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php:87
    Stack trace:
    #0 /.../wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php(469): Automattic\Jetpack\Autoloader\jp741993bb9566fe1702f83908718d3a93\PHP_Autoloader::load_class('Automattic\\WooC...')
    #1 /.../wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php(453): Automattic\WooCommerce\Internal\Features\FeaturesController->process_updated_option('_transient_time...', false, 1687973810)
    #2 [internal function]: Automattic\WooCommerce\Internal\Features\FeaturesController->process_added_option('_transient_time...', 1687973810)
    #3 /.../wp-content/plugins/woocommerce/src/Internal/Traits/AccessiblePrivateMethods.php(158): call_user_func_array(Array, Array)
    #4 /.../wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\Internal\Features\FeaturesController->__call('process_added_o...', Array)
    #5 /.../wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #6 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /.../wp-includes/option.php(724): do_action('added_option', '_transient_time...', 1687973810)
    #8 /.../wp-includes/option.php(986): add_option('_transient_time...', 1687973810, '', 'no')
    #9 /.../wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php(1297): set_transient('_woocommerce_he...', Array, 900)
    #10 /.../wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php(171): WC_Helper::get_subscriptions()
    #11 /.../wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php(40): WC_Helper_Updater::get_update_data()
    #12 /.../wp-includes/class-wp-hook.php(310): WC_Helper_Updater::transient_update_plugins(Object(stdClass))
    #13 /.../wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array)
    #14 /.../wp-includes/option.php(2036): apply_filters('pre_set_site_tr...', Object(stdClass), 'update_plugins')
    #15 /.../wp-admin/includes/plugin.php(1027): set_site_transient('update_plugins', Object(stdClass))
    #16 /.../wp-admin/includes/ajax-actions.php(4705): delete_plugins(Array)
    #17 /.../wp-includes/class-wp-hook.php(308): wp_ajax_delete_plugin('')
    #18 /.../wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #19 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #20 /.../wp-admin/admin-ajax.php(188): do_action('wp_ajax_delete-...')
    #21 {main}
      thrown in /.../wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php on line 87
    [28-Jun-2023 17:21:50 UTC] PHP Warning:  require(/.../wp-content/plugins/woocommerce/src/Internal/Admin/Analytics.php) [<a >function.require.php</a>]: Failed to open stream: No such file or directory in /.../wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php on line 87

    This appears twice in the log. This time happens only in WooCommerce code.

    Other plugins cannot be removed because they are required by our theme.

    Hi @cbratschi ,

    Its possible that there are other plugins causing a conflict which is stopping the uninstallation process from completing.

    I understand that you have plugins which cannot be removed as they are required by your theme, however I’d suggest temporarily deactivating them and see if you are able to uninstall WooCommerce successfully.

    On another note, is there any particular areas of WooCommerce you may be facing difficulties with which has lead to unistalling WooCommerce?

    We’d be happy to help you get your site running to its full potential ??

    Cheers!

    Hi @cbratschi ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if you need any further help with this.

    Cheers!

    Thread Starter Christoph Bratschi

    (@cbratschi)

    The website had an online store which is no longer required. This is the reason why we have to remove WooCommerce. All shop and user data is no longer needed.

    The remaining stack trace is from WooCommerce only we do not see any other plugin being involved here. Is there a way to debug the uninstall process? We could check which steps keeps failing.

    Saif

    (@babylon1999)

    Hello @cbratschi,

    Sorry to hear you’re still experiencing this.

    It appears that most of the errors are stemming from a missing file. Is it possible that you might have deleted some WooCommerce files via SFTP?

    Perhaps updating WooCommerce can help, as it will regenerate the plugin files.

    If this doesn’t resolve the issue, could you please provide your site’s system status, given that WooCommerce is still installed?

    You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support” (after you scroll down a bit)”. Once done, please paste it here in your reply or via a text-sharing service like https://gist.github.com/.

    Look forward to hearing back from you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uninstall fails with Class “WC_Plugin_Updates” not found’ is closed to new replies.