• Even if I deleted all themes and plugins and installed only WooCommerce, the error still occurred.
    When I reinstalled WooCommerce, I saw the message ‘This plugin caused a fatal error in WordPress and cannot be activated

    [09-Jan-2024 10:35:05 UTC] PHP Fatal error: Uncaught Error: Non-static method Automattic\WooCommerce\Internal\Features\FeaturesController::change_feature_enable() cannot be called statically in /var/www/123.com/html/wp-content/plugins/woocommerce/src/Internal/Admin/Marketplace.php:23
    Stack trace: 0 [internal function]: Automattic\WooCommerce\Internal\Admin\Marketplace->init() 1 /var/www/123.com/html/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(59): call_user_func_array() 2 /var/www/123.com/html/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/Definition.php(29): Automattic\WooCommerce\Internal\DependencyManagement\Definition->invokeInit() 3 /var/www/123.com/html/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/Definition.php(212): Automattic\WooCommerce\Internal\DependencyManagement\Definition->resolveClass() 4 /var/www/123.com/html/wp-content/plugins/woocommerce/lib/packages/League/Container/Definition/DefinitionAggregate.php(94): Automattic\WooCommerce\Vendor\League\Container\Definition\Definition->resolve() 5 /var/www/123.com/html/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(157): Automattic\WooCommerce\Vendor\League\Container\Definition\DefinitionAggregate->resolve() 6 /var/www/123.com/html/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(158): Automattic\WooCommerce\Vendor\League\Container\Container->get() 7 /var/www/123.com/html/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(178): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get() 8 /var/www/123.com/html/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(158): Automattic\WooCommerce\Vendor\League\Container\Container->get() 9 /var/www/123.com/html/wp-content/plugins/woocommerce/src/Container.php(116): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->get() 10 /var/www/123.com/html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(267): Automattic\WooCommerce\Container->get() 11 /var/www/123.com/html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(189): WooCommerce->init_hooks() 12 /var/www/123.com/html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(147): WooCommerce->__construct() 13 /var/www/123.com/html/wp-content/plugins/woocommerce/woocommerce.php(53): WooCommerce::instance() 14 /var/www/123.com/html/wp-content/plugins/woocommerce/woocommerce.php(68): WC() 15 /var/www/123.com/html/wp-settings.php(473): include_once(‘…’) 16 /var/www/123.com/html/wp-config.php(111): require_once(‘…’) 17 /var/www/123.com/html/wp-load.php(50): require_once(‘…’) 18 /var/www/123.com/html/wp-blog-header.php(13): require_once(‘…’) 19 /var/www/123.com/html/index.php(17): require(‘…’) 20 {main}

    thrown in /var/www/123.com/html/wp-content/plugins/woocommerce/src/Internal/Admin/Marketplace.php on line 23

Viewing 15 replies - 16 through 30 (of 39 total)
  • I’m using Twenty Twenty One theme. On one page, WooCommerce updates without any problem, the other site crashes with the error mentioned in the first message.

    Took the crashed site back to 8.4 by copying the files. Seems to work fine again.

    • This reply was modified 7 months, 3 weeks ago by mw815371.

    Same issue. Had to revert to 8.4

    @scollonp Nope, the problem started with my custom theme installed as I was working on it. First thought was I made a mistake, but it wasn’t me ;-/

    My other working stores with v8.5.0 use a variety of custom themes or child themes and standard and custom plug-ins and other customizations. The only significant difference I can think of is maybe platform (my Dev platform vs my Production platform)?

    Same

    Same here! To solve it, I uploaded version 8.4 from ftp.

    This is my site info:

    ### WordPress Environment ###
    
    WC Version: 8.4.0
    
    REST API Version: ✔ 8.4.0
    
    WC Blocks Version: ✔ 11.6.2
    
    Action Scheduler Version: ✔ 3.7.0
    
    Log Directory Writable: ✔
    
    WP Version: 6.4.2
    
    WP Multisite: –
    
    WP Memory Limit: 3 GB
    
    WP Debug Mode: –
    
    WP Cron: –
    
    Language: es_AR
    
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    
    PHP Version: 8.1.26
    
    PHP Post Max Size: 64 MB
    
    PHP Time Limit: 340
    
    PHP Max Input Vars: 1000
    
    cURL Version: 7.87.0
    
    OpenSSL/1.1.1w
    
    SUHOSIN Installed: –
    
    MySQL Version: 8.0.35-cll-lve
    
    Max Upload Size: 64 MB
    
    Default Timezone is UTC: ✔
    
    fsockopen/cURL: ✔
    
    SoapClient: ✔
    
    DOMDocument: ✔
    
    GZip: ✔
    
    Multibyte String: ✔
    
    Remote Post: ✔
    
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 8.4.0
    
    ### Theme ###
    
    Name: Flatsome Child
    
    Version: 3.0
    
    Author URL:
    
    Child Theme: ✔
    
    Parent Theme Name: Flatsome
    
    Parent Theme Version: 3.18.2
    
    Parent Theme Author URL: https://uxthemes.com
    
    WooCommerce Support: ✔
    
    ### Admin ###
    
    Enabled Features: activity-panels
    
    analytics
    
    product-block-editor
    
    coupons
    
    core-profiler
    
    customer-effort-score-tracks
    
    import-products-task
    
    experimental-fashion-sample-products
    
    shipping-smart-defaults
    
    shipping-setting-tour
    
    homescreen
    
    marketing
    
    mobile-app-banner
    
    navigation
    
    onboarding
    
    onboarding-tasks
    
    product-variation-management
    
    product-virtual-downloadable
    
    remote-inbox-notifications
    
    remote-free-extensions
    
    payment-gateway-suggestions
    
    shipping-label-banner
    
    subscriptions
    
    store-alerts
    
    transient-notices
    
    woo-mobile-welcome
    
    wc-pay-promotion
    
    wc-pay-welcome-page
    
    Disabled Features: customize-store
    
    minified-js
    
    new-product-management-experience
    
    product-external-affiliate
    
    settings
    
    async-product-editor-category-field
    
    Daily Cron: ✔ Next scheduled: 2024-01-09 12:37:03 -03:00
    
    Options: ✔
    
    Notes: 7
    
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Completar: 244
    
    Oldest: 2023-12-09 17:17:26 -0300
    
    Newest: 2024-01-08 17:29:42 -0300
    
    Pendiente: 1
    
    Oldest: 2024-01-09 17:29:42 -0300
    
    Newest: 2024-01-09 17:29:42 -0300
    
    ### Status report information ###
    
    Generated at: 2024-01-09 09:35:42 -03:00
    • This reply was modified 7 months, 3 weeks ago by diegosn79.

    WooCommerce -> Settings -> Advanced -> Features -> Marketplace

    If this marketplace option is disabled in 8.4.0 or lower version of WooCommerce, and the plugin is updated then getting a fatal error.

    If I enable this option and then update the plugin to 8.5, everything works fine.

    I noticed that too. If you reactivate the marketplace in 8.4.0, the update works.

    What @dervonz mentioned is correct.

    Downgrading to WooCommerce 8.4, enabling marketplace option at WooCommerce -> Settings -> Advanced -> Features -> Marketplace and later on upgrading again solves the problem.

    • This reply was modified 7 months, 3 weeks ago by Juanzo.
    A work-around. 
    
    Before updating to 8.5.0, make sure the Woo option 'WooCommerce -> Settings -> Advanced -> Features -> Marketplace' is selected. 
    
    https://github.com/woocommerce/woocommerce/issues/43406
    
    I had the error, so I was too late. What worked for me was this: 
    
    1. I renamed my WooCommerce folder to 'Woocommercev850', which makes it deactivated in the plugin page. Now the error is gone. 
    
    2. I then downloaded the previous version of WooCommerce (v8.4.0) extracted it and and added it to the plugins folder. 
    
    Download: https://wordpress.org/plugins/woocommerce/advanced/
    
    3. I activated the 8.4.0 version of WooCommerce in the plugin page. Everything worked as expected. 
    
    5. Then I selected the Marketplace option in the WooCommerce settings, under Advanced / Features and saved. 
    
    5. Lastly I renamed the new (8.4.0) folder to 'Woocommercev840' and renamed the old v850 folder back to 'WooCommerce' and everything works fine again.     
    
    What was the option 'Marketplace' in 8.4 is now 'Order Attribution' in 8.5 and it's not a great thing ;-)
     

    Same here: Fatal error: Uncaught Error: Non-static method

    i am using divi theme

    Even if I update with Marketplace on I have critical error with WooSubscriptions

    @lukaszwozniak that would seem to be a different issue, more likely with woosubscriptions (last updated in December) after the woocommerce 8.5 update.

    Same here …

    How is it possible that a MAJOR WordPress extension is so poorly tested before being released?

    This has already happened several times last year, it is unacceptable.

    For whom reaching this issue, downgrade is better way at this moment.

    You can download 8.4.0 version here and just override a plugin folder: https://github.com/woocommerce/woocommerce/releases/tag/8.4.0

    @hurikhan – I think it is always best before updating to be sure your other Woocommerce related extensions have been tested against the new release. However, I understand where you are coming from in that Subscriptions is a rather large player in the plugin space and should be verified before release. But at what point do you draw the line with testing against other extensions? I always wait a while before updating and verify on a test site, I can’t afford to have an update take the site offline or worse cause invalid data.

Viewing 15 replies - 16 through 30 (of 39 total)
  • The topic ‘After the 8.5.0 update, I encountered an error’ is closed to new replies.