• Resolved sjallen

    (@sjallen)


    I’ve set following constant in wp-config.php
    define( 'WC_REMOVE_ALL_DATA', true);

    Deactivate works fine, but when deleting the ajax request goes 500

    PHP Warning:  Use of undefined constant WC_PLUGIN_BASENAME - assumed 'WC_PLUGIN_BASENAME' (this will throw an Error in a future version of PHP) in 
    xxx/plugins/woocommerce/includes/class-wc-install.php on line 230
    
    [20-Jul-2022 15:12:06 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wc_get_container() in xxx/plugins/woocommerce/includes/class-wc-install.php:1465
    Stack trace:
    #0 xxx/plugins/woocommerce/includes/class-wc-install.php(1499): WC_Install::get_tables()
    #1 xxx/plugins/woocommerce/uninstall.php(59): WC_Install::drop_tables()
    #2 xxx/wp/wp-admin/includes/plugin.php(1241): include_once('/Users/ratnesh/...')
    #3 xxx/wp/wp-admin/includes/plugin.php(958): uninstall_plugin('woocommerce/woo...')
    #4 xxx/wp/wp-admin/includes/ajax-actions.php(4668): delete_plugins(Array)
    #5 xxx/wp/wp-includes/class-wp-hook.php(307): wp_ajax_delete_plugin('')
    #6 xxx/wp/wp-includes/class-wp-hook.php(331 in xxx/plugins/woocommerce/includes/class-wc-install.php on line 1465
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deactivation and Delete failed on v6.7.0’ is closed to new replies.