• Resolved Milind More

    (@milindmore22)


    Fatal Error when you are trying to delete the plugin

    
    PHP Fatal error:  Uncaught Error: Class 'WC_Data_Store' not found in /var/www/htdocs/current/wp-content/plugins/woocommerce-services/woocommerce-services.php:229
    Stack trace:
    #0 /var/www/htdocs/current/wp-content/plugins/woocommerce-services/woocommerce-services.php(217): WC_Connect_Loader::can_add_wc_admin_notice()
    #1 /var/www/htdocs/current/wp-content/plugins/woocommerce-services/woocommerce-services.php(210): WC_Connect_Loader::delete_notices()
    #2 /var/www/htdocs/current/wp-includes/class-wp-hook.php(292): WC_Connect_Loader::plugin_uninstall('')
    #3 /var/www/htdocs/current/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
    #4 /var/www/htdocs/current/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #5 /var/www/htdocs/current/wp-admin/includes/plugin.php(1286): do_action('uninstall_wooco...')
    #6 /var/www/htdocs/current/wp-admin/includes/plugin.php(967): uninstall_plugin('woocommerce-ser...')
    #7 /var/www/htdocs/current/wp-admin/includes/ajax-actions.php(4581): delete_plugins(Array)
    #8 /var/www/htdocs/cu in /var/www/htdocs/current/wp-content/plugins/woocommerce-services/woocommerce-services.php on line 229
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi @milindmore22,

    Could you please share your System Status Report, it would help us to understand your site setup a bit better. You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, paste it here in your reply.

    Thread Starter Milind More

    (@milindmore22)

    Hello @thup90

    I have deleted WooCommerce here is site info that might help you debug
    This is my test site, so I keep on adding and removing plugins

    
    ### wp-core ###
    
    version: 5.7.1
    site_language: en_US
    user_language: en_US
    timezone: +00:00
    permalink: /%year%/%monthnum%/%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 5
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /var/www/htdocs/current
    wordpress_size: 47.84 MB (50168161 bytes)
    uploads_path: /var/www/htdocs/current/wp-content/uploads
    uploads_size: 121.93 MB (127854364 bytes)
    themes_path: /var/www/htdocs/current/wp-content/themes
    themes_size: 12.94 MB (13565882 bytes)
    plugins_path: /var/www/htdocs/current/wp-content/plugins
    plugins_size: 8.07 MB (8459900 bytes)
    database_size: 39.19 MB (41091072 bytes)
    total_size: 229.97 MB (241139379 bytes)
    
    ### wp-active-theme ###
    
    name: Twenty Twenty-One (twentytwentyone)
    version: 1.3
    author: the WordPress team
    author_website: https://wordpress.org/
    parent_theme: none
    theme_features: core-block-patterns, automatic-feed-links, title-tag, post-formats, post-thumbnails, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-style, editor-font-sizes, custom-background, editor-color-palette, editor-gradient-presets, responsive-embeds, custom-line-height, experimental-link-color, custom-spacing, custom-units, widgets
    theme_path: /var/www/htdocs/current/wp-content/themes/twentytwentyone
    auto_update: Disabled
    
    ### wp-themes-inactive (4) ###
    
    Storefront: version: 3.6.0, author: Automattic, Auto-updates disabled
    Twenty Fifteen: version: 2.9, author: the WordPress team, Auto-updates disabled
    Twenty Nineteen: version: 2.0, author: the WordPress team, Auto-updates disabled
    Twenty Twenty: version: 1.7, author: the WordPress team, Auto-updates disabled
    
    ### wp-plugins-inactive (2) ###
    
    Log in with Google: version: 1.0.10, author: rtCamp, Auto-updates disabled
    WooCommerce Shipping & Tax: version: 1.25.12, author: WooCommerce, Auto-updates disabled
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1690
    imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
    file_uploads: File uploads is turned off
    post_max_size: 100M
    upload_max_filesize: 100M
    max_effective_size: 100 MB
    max_file_uploads: 20
    imagick_limits: 
    	imagick::RESOURCETYPE_AREA: 122 MB
    	imagick::RESOURCETYPE_DISK: 1073741824
    	imagick::RESOURCETYPE_FILE: 786432
    	imagick::RESOURCETYPE_MAP: 512 MB
    	imagick::RESOURCETYPE_MEMORY: 256 MB
    	imagick::RESOURCETYPE_THREAD: 2
    gd_version: bundled (2.1.0 compatible)
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Linux 5.4.0-40-generic x86_64
    httpd_software: nginx/1.17.8
    php_version: 7.4.10 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 300
    memory_limit: 128M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 100M
    php_post_max_size: 100M
    curl_version: 7.64.0 OpenSSL/1.1.1d
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.5.4-MariaDB-1:10.5.4+maria~focal-log
    client_version: mysqlnd 7.4.10
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /var/www/htdocs/current/wp-content
    WP_PLUGIN_DIR: /var/www/htdocs/current/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: true
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    

    Hi there,

    Thanks for reaching out!
    The fix should be available with the next version of WooCommerce Shipping & Tax: https://github.com/Automattic/woocommerce-services/issues/2417

    In the meantime, to avoid this issue and still be able you uninstall WooCommerce Shipping & Tax, you can:
    – Install WooCommerce
    – Delete WooCommerce Shipping & Tax
    – Deactivate & Delete WooCommerce

    I hope this helps!

    Have a good one!

    Francesco

    Thread Starter Milind More

    (@milindmore22)

    Hello @frosso1

    Thanks for the tip, yes it did the trick.

    Thanks for your patience @milindmore22 ! Have a good one!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error and unable to delete plugin.’ is closed to new replies.