• Resolved Dave

    (@dave2055)


    Our site experienced a critical error with WooCommerce after upgrading to its latest version. Can someone explain how to fix this? WP error message follows. Website replaced with #####.

    WordPress version 5.6
    Current plugin: WooCommerce Admin (version 1.9.0) PHP version 7.4.14

    Error Details
    =============
    An error of type E_ERROR was caused in line 64 of the file /home/#####/public_html/wp-content/plugins/woocommerce-admin/src/Features/Features.php. Error message: Uncaught Error: Undefined class constant ‘TOGGLE_OPTION_NAME’ in /home/#####/public_html/wp-content/plugins/woocommerce-admin/src/Features/Features.php:64
    Stack trace:
    #0 /home/#####/public_html/wp-content/plugins/woocommerce-admin/src/Features/Features.php(128): Automattic\WooCommerce\Admin\Features\Features::get_beta_feature_options()
    #1 /home/#####/public_html/wp-content/plugins/woocommerce-admin/src/Features/Features.php(278): Automattic\WooCommerce\Admin\Features\Features::is_enabled(‘activity-panels’)
    #2 /home/#####/public_html/wp-includes/class-wp-hook.php(287): Automattic\WooCommerce\Admin\Features\Features::load_scripts(‘woocommerce_pag…’)
    #3 /home/#####/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /home/#####/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #5 /home/#####/public_html/wp-admin/admin-header.php(102): do_action(‘admin_enqueue_s…’, ‘woocommerce_pag…’)
    #6 /home/#####/public_html/wp-admin/admin.php(2

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @dave2055,

    It’s possible that there could be a code conflict causing this error to occur (usually due to one of the other plugins on the site being out of date or no longer maintained). Does this error happen if you are using a default WordPress theme and only have WooCommerce and WooCommerce Admin active?

    If the problem still occurs in the above test, can you provide us with a copy of the site’s System Status Report so we can take a look?

    Thanks!

    Thread Starter Dave

    (@dave2055)

    Shaun, here is the WP System Status Report. All plug-ins are up-to-date and there are no inactive plugins.

    
    ### wp-core ###
    
    version: 5.6
    site_language: en_US
    user_language: en_US
    timezone: -05:00
    permalink: /%category%/%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: closed
    environment_type: production
    user_count: 1
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/vitaakrb/public_html
    wordpress_size: 2.68 GB (2872491903 bytes)
    uploads_path: /home/vitaakrb/public_html/wp-content/uploads
    uploads_size: 511.09 MB (535915798 bytes)
    themes_path: /home/vitaakrb/public_html/wp-content/themes
    themes_size: 38.62 MB (40497337 bytes)
    plugins_path: /home/vitaakrb/public_html/wp-content/plugins
    plugins_size: 156.41 MB (164003356 bytes)
    database_size: 18.16 MB (19039822 bytes)
    total_size: 3.38 GB (3631948216 bytes)
    
    ### wp-active-theme ###
    
    name: NaturaLife (naturalife)
    version: 1.9.5
    author: RT-Themes
    author_website: https://themeforest.net/user/stmcan
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, header-footer-elementor, menus, automatic-feed-links, title-tag, woocommerce, customize-selective-refresh-widgets, gutenberg, widgets, editor-style
    theme_path: /home/vitaakrb/public_html/wp-content/themes/naturalife
    auto_update: Disabled
    
    ### wp-themes-inactive (5) ###
    
    Product: version: 1.0, author: Suavethemes, Auto-updates disabled
    Twenty Nineteen: version: 1.9, author: the WordPress team, Auto-updates disabled
    Twenty Seventeen: version: 2.5, author: the WordPress team, Auto-updates disabled
    Twenty Sixteen: version: 2.3, author: the WordPress team, Auto-updates disabled
    Twenty Twenty: version: 1.6, author: the WordPress team, Auto-updates disabled
    
    ### wp-plugins-active (22) ###
    
    Akismet Anti-Spam: version: 4.1.8, author: Automattic, Auto-updates enabled
    Auto Image Attributes From Filename With Bulk Updater: version: 1.6, author: Arun Basil Lal, Auto-updates enabled
    Autoptimize: version: 2.8.1, author: Frank Goossens (futtta), Auto-updates enabled
    Classic Editor: version: 1.6, author: WordPress Contributors, Auto-updates enabled
    Contact Form 7: version: 5.3.2, author: Takayuki Miyoshi, Auto-updates enabled
    Duplicate Page: version: 4.3, author: mndpsingh287, Auto-updates enabled
    Elementor: version: 3.1.1, author: Elementor.com, Auto-updates enabled
    Envato Market: version: 2.0.6, author: Envato, Auto-updates enabled
    Insert Headers and Footers: version: 1.5.0, author: WPBeginner, Auto-updates enabled
    Loginizer: version: 1.6.6, author: Softaculous, Auto-updates enabled
    NaturaLife | Extensions Plugin: version: 1.9.3, author: RT-Themes, Auto-updates enabled
    PageLayer: version: 1.4.5, author: Pagelayer Team, Auto-updates enabled
    ShortPixel Image Optimizer: version: 4.21.1, author: ShortPixel, Auto-updates enabled
    Slider Revolution: version: 6.3.6, author: ThemePunch, Auto-updates enabled
    UpdraftPlus - Backup/Restore: version: 1.16.47, author: UpdraftPlus.Com, DavidAnderson, Auto-updates enabled
    WooCommerce: version: 4.9.2, author: Automattic, Auto-updates enabled
    WooCommerce Admin: version: 1.9.0, author: WooCommerce, Auto-updates enabled
    WooCommerce External Product New Tab: version: 1.0.3, author: Stuart Duff, Auto-updates enabled
    wpCentral: version: 1.5.4, author: Softaculous Ltd., Auto-updates enabled
    WP Fastest Cache: version: 0.9.1.4, author: Emre Vona, Auto-updates enabled
    Yoast Duplicate Post: version: 4.1.1, author: Enrico Battocchi & Team Yoast, Auto-updates enabled
    Yoast SEO: version: 15.7, author: Team Yoast, Auto-updates enabled
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    file_uploads: File uploads is turned off
    post_max_size: 1G
    upload_max_filesize: 1G
    max_effective_size: 1 GB
    max_file_uploads: 20
    gd_version: 2.2.5
    ghostscript_version: 8.70
    
    ### wp-server ###
    
    server_architecture: Linux 2.6.32-896.16.1.lve1.4.54.el6.x86_64 x86_64
    httpd_software: Apache
    php_version: 7.4.14 64bit
    php_sapi: litespeed
    max_input_variables: 2000
    time_limit: 1500
    memory_limit: 1G
    max_input_time: 1500
    upload_max_filesize: 1G
    php_post_max_size: 1G
    curl_version: 7.71.0 OpenSSL/1.1.1d
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.3.27-MariaDB-log-cll-lve
    client_version: 10.3.27-MariaDB
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/vitaakrb/public_html/wp-content
    WP_PLUGIN_DIR: /home/vitaakrb/public_html/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 1G
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    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
    
    
    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @dave2055,

    Thanks for providing that info. The error on your site appears to be related to the new “Navigation” feature that is part of the WooCommerce Admin plugin. Can you go to the WooCommerce > Settings > Advanced page and let me know if that option is currently enabled or not? Thanks!

    Thread Starter Dave

    (@dave2055)

    Shaun,
    Unfortunately, I cannot access WooCommerce at all. If I attempt to access anything for WooCommerce, such as go to Settings, the page is blank except for this error message:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Then, I receive an email with the error message I previously uploaded here.

    • This reply was modified 4 years ago by Dave.
    • This reply was modified 4 years ago by Dave.
    • This reply was modified 4 years ago by Dave.
    Thread Starter Dave

    (@dave2055)

    Hi Shaun,

    Looking forward to your reply and figuring out how to correct the WooCommerce error. Thank you.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @dave2055,

    Can you try temporarily deactivating the WooCommerce Admin plugin and let me know if that helps?

    Thread Starter Dave

    (@dave2055)

    Shaun,
    I deactivated WooCommerce Admin and can access WooCommerce settings and other features. In Settings – Advanced – Page Setup what is it you wanted me to check? You previously said, “let me know if that option is currently enabled” What option? Navigation? If so, there is no Navigation setting on that page.

    When I do find that option, should it be enabled or disabled?

    The headings are Page Setup, Checkout Endpoints, Account Endpoints.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @dave2055,

    The “Navigation” feature that I referenced on the “Advanced” settings page is a beta option that was added by the WooCommerce Admin plugin. Now that the plugin is deactivated, it shouldn’t show as an option anymore.

    To further clarify, WooCommerce Admin is what we refer to as a ‘feature plugin’ that allows us to add, test, and get feedback in advance for new features that we’d like to include in future updates to core WooCommerce.

    The ‘simple’ resolution for that error is to disable WooCommerce Admin, but we’d definitely be interested in digging into the actual cause of the problem. However, since I haven’t been able to reproduce the problem, that is why I assume there is a conflict with something else on the site/environment.

    The best way to confirm if there is a code conflict would be to temporarily switch to a default WordPress theme and deactivate all plugins except WooCommerce and WooCommerce Admin and see if the issue still occurs (preferably on a staging copy of the site). If not, slow re-activate plugins and re-test until the problem occurs again.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WooCommerce Admin critical error’ is closed to new replies.