Uninstall fails with Class “WC_Plugin_Updates” not found
-
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)
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.