• Resolved julianosb

    (@julianosb)


    Hello, after updating WooCommerce to version 8.5.1 I received an email with error information:
    
    -------------------
    
    Hello!
    
    WordPress has a built-in feature that detects when a plugin or theme causes a crash on your website and notifies you with this automated email.
    
    In this case, WordPress detected an error with your plugin: WooCommerce.
    
    First, visit their website (https://x/) and check if there are any visible problems. Then visit the page where the error was found (https://x/wp-admin/update.php?action=upgrade-plugin&plugin=woocommerce%2Fwoocommerce.php&_wpnonce=x) and check if there are any visible problem .
    
    Please contact the support team where you host your site for help investigating this issue.
    
    If your site appears to be broken and you can't access your control panel as usual, WordPress now has a special "restore mode." This allows you to securely access your dashboard and investigate further.
    
    https://x/wp-admin/?action=enter_recovery_mode&rm_token=x&rm_key=x
    
    To keep your site secure, this link will expire in 1 day. Don't worry about this, however, a new link will be emailed to you if the error occurs again after the link has expired.
    
    When seeking help with this issue, you may be asked to provide some of the following information:
    WordPress version 6.4.2
    Current theme: Astra Child (version 1.0.0)
    Current plugin: WooCommerce (version 8.5.1)
    PHP version 8.2.13
    
    
    
    Error details
    ================
    An E_ERROR error was caused on line 90 of the file /home/x/domains/x/public_html/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php. Error message: Uncaught Error: Failed opening required '/home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Legacy.php' (include_path = '.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/x/ domains/x/public_html/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php:90
    Stacktrace:
    #0 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/StoreApi.php(70): Automattic\Jetpack\Autoloader\jpff434b07a578bad74ca880af0f2deced\ PHP_Autoloader::load_class()
    #1 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Registry/AbstractDependencyType.php(42): Automattic\WooCommerce\StoreApi\StoreApi: :Automattic\WooCommerce\StoreApi\{closure}()
    #2 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Registry/SharedType.php(28): Automattic\WooCommerce\Blocks\Registry\ AbstractDependencyType->resolve_value()
    #3 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Registry/Container.php(96): Automattic\WooCommerce\Blocks\Registry\ SharedType->get()
    #4 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/StoreApi.php(26): Automattic\WooCommerce\Blocks\Registry\ Container->get()
    #5 /home/x/domains/x/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\StoreApi\StoreApi->Automattic\WooCommerce\StoreApi\{closure} ()
    #6 /home/x/domains/x/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #7 /home/x/domains/x/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /home/x/domains/x/public_html/wp-includes/rest-api.php(593): do_action()
    #9 /home/x/domains/x/public_html/wp-includes/rest-api.php(551): rest_get_server()
    #10 /home/x/domains/x/public_html/wp-includes/rest-api.php(2918): rest_do_request()
    #11 [internal function]: rest_preload_api_request()
    #12 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php(143): array_reduce()
    #13 /home/x/domains/x/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Settings->add_component_settings()
    #14 /home/x/domains/x/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #15 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminSharedSettings.php(61): apply_filters()
    #16 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php(268): Automattic\WooCommerce\Internal\Admin\ WCAdminSharedSettings->Automattic\WooCommerce\Internal\Admin\{closure}()
    #17 /home/x/domains/x/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Assets\AssetDataRegistry->execute_lazy_data()
    #18 /home/x/domains/x/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data()
    #19 /home/x/domains/x/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #20 /home/x/domains/x/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #21 /home/x/domains/x/public_html/wp-admin/admin-footer.php(95): do_action()
    #22 /home/x/domains/x/public_html/wp-admin/update.php(76): require_once('/home/xxxxx...')
    #23 {main}
       thrown
    
    
    I found it strange because I don't use Jetpack
    
    restored a previous backup to get back to normal...
    • This topic was modified 8 months ago by julianosb.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Rok Meglič

    (@rokmeglic)

    ChatGPT:

    It looks like the error is related to the WooCommerce plugin and an issue with the autoloader trying to load a class (Legacy.php) that couldn’t be found. The error is originating from the file /home/x/domains/x/public_html/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php.

    Me – human:

    Looks like it want’s to load this class which does not exsists. The code can be found here – woocommerce-blocks/src/StoreApi/SessionHandler.php at trunk · woocommerce/woocommerce-blocks (github.com).

    Do you have any change, if you install this on a raw/clean server (staging), does this happen as well?

    P.S: Be carefull not do remove your current website, so make sure you are doing this somewhere else.

    anastas10s

    (@anastas10s)

    Hi there @julianosb 👋

    Thanks for reaching out about this. Let’s troubleshoot it together.

    Hello, after updating WooCommerce to version 8.5.1 I received an email with error information

    This is odd. Let’s try by following these steps:

    1. Firstly, deactivate all your plugins and activate the Storefront theme (linked here)
    2. Afterward, download and install a fresh version of WooCommerce from here: https://wordpress.org/plugins/woocommerce/
    3. And finally, check if the issue persists, with having only WooCommerce active.

    Let me know how it goes. 🙂

    • This reply was modified 8 months ago by anastas10s. Reason: added clarification
    Thread Starter julianosb

    (@julianosb)

    i’m using ASTRA

    WordPress version 6.4.2
    Current theme: Astra Child (version 1.0.0)
    Current plugin: WooCommerce (version 8.5.1)
    PHP version 8.2.13
    Rok Meglič

    (@rokmeglic)

    Is it possible that you have some special custom hook in your functions.php (theme) that causes this problem?

    Plugin Support carolm29 (woo-hc)

    (@carolm29)

    Hey, @julianosb!

    Thanks for sharing the information!

    Are the theme and all plugins updated to their most recent version? If not, please update everything and check if the issue persists.

    If if does, were you able to do the conflict test my colleague suggested?

    To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

    If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.

    — Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.

    — Also, you can consider using a plugin like Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it is helpful to disable plugins without affecting your current site visitors.

    — It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.

    You can find more about this in this guide.

    Please let us know your findings.

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter julianosb

    (@julianosb)

    Plugins
    All (28) | Assets (28) | Update available (1) | Advanced (1)

    This available update is WooCommerce

    Everything is updated

    <?php
    /**
     * Astra Chilod Theme functions and definitions
     *
     * @link https://developer.wordpress.org/themes/basics/theme-functions/
     *
     * @package Astra Child
     * @since 1.0.0
     */
    
    /**
     * Define Constants
     */
    define( 'CHILD_THEME_ASTRA_VERSION', '1.0.0' );
    
    /**
     * Enqueue styles
     */
    function child_enqueue_styles() {
    
    	wp_enqueue_style( 'astra-child-theme-css', get_stylesheet_directory_uri() . '/style.css', array('astra-theme-css'), CHILD_THEME_ASTRACHILD_VERSION, 'all' );
    
    }
    
    add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 );
    add_filter( 'woocommerce_sale_flash', 'misha_change_on_sale_badge', 99, 3 );
    
    function misha_change_on_sale_badge( $badge_html, $post, $product ) {
    	if( $product->is_type( 'variable' ) ){ // variable products
    		$percentages = array();
    		$prices = $product->get_variation_prices();
    		foreach( $prices[ 'price' ] as $id => $price ){
    			// if sale price == regular price, it means no sale right now, skip the loop iteration
    			if( $prices[ 'regular_price' ][ $id ] === $prices[ 'sale_price' ][ $id ] ) {
    				continue;
    			}
    			// array of all variations percentages
    			$percentages[] = ( $prices[ 'regular_price' ][ $id ] - $prices[ 'sale_price' ][ $id ] ) / $prices[ 'regular_price' ][ $id ] * 100;
    		}
    		$percentage = "UP TO " . round( max( $percentages ) ) . '%';
    	} else { // simple products
    		$percentage = round( ( $product->get_regular_price() - $product->get_sale_price() ) / $product->get_regular_price() * 100 ) . '%';
    	}
    	return '<span class="onsale">' . $percentage . '</span>';
    }
    
    /**
    * Disable the emoji's
    **/
    function disable_emojis() {
    remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
    remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
    remove_action( 'wp_print_styles', 'print_emoji_styles' );
    remove_action( 'admin_print_styles', 'print_emoji_styles' );
    remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
    remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
    remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
    add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
    }
    add_action( 'init', 'disable_emojis' );
    /**
    * Filter function used to remove the tinymce emoji plugin.
    * @param    array  $plugins
    * @return   array  Difference between the two arrays
    */
    function disable_emojis_tinymce( $plugins ) {
      if ( is_array( $plugins ) ) {
        return array_diff( $plugins, array( 'wpemoji' ) );
      } else {
        return array();
      }
    }
    
    // ADICIONAR O SLUG AO IMPORTAR/EXPORTAR PRODUTO
    // 
    // add_filter( 'woocommerce_product_export_column_names', 'add_slug_export_column' );
    add_filter( 'woocommerce_product_export_product_default_columns', 'add_slug_export_column' );
    
    function add_slug_export_column( $columns ) {
    	$columns['slug'] = 'Slug';
     
    	return $columns;
    }
    
    add_filter( 'woocommerce_product_export_product_column_slug'  , 'add_export_data_slug', 10, 2 );
    function add_export_data_slug( $value, $product ) {
        $value = $product->get_slug();
    	
        return $value;
    }
    
    add_filter( 'woocommerce_csv_product_import_mapping_options', 'add_slug_import_option' );
    function add_slug_import_option( $options ) {
      $options['slug'] = 'Slug';
     
      return $options;
    }
    
    add_filter( 'woocommerce_csv_product_import_mapping_default_columns', 'add_default_slug_column_mapping' );
    function add_default_slug_column_mapping( $columns ) {
      $columns['Slug'] = 'slug';
     
      return $columns;
    } 
    
    add_filter( 'woocommerce_product_import_pre_insert_product_object', 'process_import_product_slug_column', 10, 2 );
    function process_import_product_slug_column( $object, $data ) {
      if ( !empty( $data['slug'] ) ) {
        $object->set_slug( $data['slug'] );
      }
     
      return $object;
    }
    
    // REMOVE EMAILS DO CADASTRO (BLACK LIST)
    
    function block_domains_in_registration($errors, $sanitized_user_login, $user_email){
    	$invalid_domains = [
    		'*.ru', //Bloqueia todos os e-mails terminados com ".ru" (By Russia).
    		'*.ch', //Bloqueia todos os e-mails terminados com ".ch" (By China).
    		'*.cc', //Bloqueia todos os e-mails terminados com ".cc"
    		'*.tk', //Bloqueia todos os e-mails terminados com ".tk"
    //		'spambog.*',  //Bloqueia todos os e-mails do domínio spambog ( exemplo spambog.com, spambog.de, spambog.ru... )
    //		'gmaile.design',
    //		'ersatzauto.ch',
    //		'tempes.gq',
    //		'cpmail.life',
    //		'happyfreshdrink.com',
    //		'brandly.tech',
    	];
    	$email = explode('@',$user_email);
    	foreach ( $invalid_domains as $domain_blacklisted ) {
    		$domain_blacklisted = preg_replace('/\\\\\*/','(.*)', preg_quote($domain_blacklisted)); // Escapa caracteres especiais e substitui o *
    		if ( isset( $email[1] ) && preg_match("/^{$domain_blacklisted}$/", $email[1])) {
    			$errors->add('spammer', '<strong>ERRO</strong>: O E-mail informado é inválido!');
    			break;
    		}
    	}
    	return $errors;
    }
    add_filter('registration_errors', 'block_domains_in_registration', 10, 3);
    
    // REMOVER LINKS NOS COMENTARIOS DO WORDPRESS
    remove_filter( 'comment_text', 'make_clickable', 9 );
    
    // REMOVER A BASE DO SLUG BRANDS
    function customise_product_brand_slug ( $tax ) {
    	$tax['rewrite']['slug'] = 'm'; // Replace 'custom-slug' with your desired slug.
    	return $tax;
    }
    add_filter( 'register_taxonomy_product_brand', 'customise_product_brand_slug' );
    
    // ADICIONA H1 NO BLOG
    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://x.com.br
    Site address (URL): https://x.com.br
    WC Version: 8.4.0
    REST API Version: ✔ 8.4.0
    WC Blocks Version: ✔ 11.6.2
    Action Scheduler Version: ✔ 3.7.1
    Log Directory Writable: ✔
    WP Version: 6.4.2
    WP Multisite: –
    WP Memory Limit: 6 GB
    WP Debug Mode: –
    WP Cron: ✔
    Language: pt_BR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 8.2.13
    PHP Post Max Size: 6 GB
    PHP Time Limit: 480
    PHP Max Input Vars: 5000
    cURL Version: 7.87.0
    OpenSSL/1.1.1w
    
    SUHOSIN Installed: –
    MySQL Version: 10.11.6-MariaDB-cll-lve
    Max Upload Size: 6 GB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 8.4.0
    WC Database Prefix: wp_
    Tamanho total do banco de dados: 215.30MB
    Tamanho dos dados do banco de dados: 111.37MB
    Tamanho do índice do banco de dado: 103.93MB
    wp_woocommerce_sessions: Dados: 3.02MB + Índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_api_keys: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_attribute_taxonomies: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_downloadable_product_permissions: Dados: 0.02MB + Índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_order_items: Dados: 0.14MB + Índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_order_itemmeta: Dados: 1.52MB + Índex: 0.84MB + mecanismo InnoDB
    wp_woocommerce_tax_rates: Dados: 0.02MB + Índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_tax_rate_locations: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_shipping_zones: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_locations: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_methods: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_payment_tokens: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_payment_tokenmeta: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_log: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_actions: Dados: 4.25MB + Índex: 5.55MB + mecanismo InnoDB
    wp_actionscheduler_claims: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_groups: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_logs: Dados: 3.34MB + Índex: 2.91MB + mecanismo InnoDB
    wp_commentmeta: Dados: 0.17MB + Índex: 0.19MB + mecanismo InnoDB
    wp_comments: Dados: 2.52MB + Índex: 1.50MB + mecanismo InnoDB
    wp_cwmp_cart_abandoned: Dados: 0.13MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_cart_abandoned_msg: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_cart_abandoned_relation: Dados: 0.06MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_events_pixels: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_events_pixel_facebook: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_newsletter_campanha: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_newsletter_remove: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_newsletter_send: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_orders_buy: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_order_bump: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_pending_payment_msg: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_pending_payment_status: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_pixel_events: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_pixel_thank: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_recupera_pedidos: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_send_thank: Dados: 0.08MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_session_cart: Dados: 0.08MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_template_emails: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_template_emails_produto: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_template_msgs: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_cwmp_transportadoras: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_dgwt_wcas_index: Dados: 1.52MB + Índex: 0.05MB + mecanismo InnoDB
    wp_dgwt_wcas_invindex_cache: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_dgwt_wcas_invindex_doclist: Dados: 5.52MB + Índex: 7.03MB + mecanismo InnoDB
    wp_dgwt_wcas_invindex_wordlist: Dados: 1.52MB + Índex: 1.52MB + mecanismo InnoDB
    wp_dgwt_wcas_stats: Dados: 0.23MB + Índex: 0.00MB + mecanismo InnoDB
    wp_gla_attribute_mapping_rules: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_gla_budget_recommendations: Dados: 0.20MB + Índex: 0.14MB + mecanismo InnoDB
    wp_gla_merchant_issues: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_gla_shipping_rates: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_gla_shipping_times: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_imagify_files: Dados: 0.02MB + Índex: 0.08MB + mecanismo InnoDB
    wp_imagify_folders: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_links: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_mwai_filemeta: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_mwai_files: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_options: Dados: 8.38MB + Índex: 0.38MB + mecanismo InnoDB
    wp_postmeta: Dados: 18.55MB + Índex: 15.06MB + mecanismo InnoDB
    wp_posts: Dados: 10.52MB + Índex: 2.22MB + mecanismo InnoDB
    wp_rank_math_404_logs: Dados: 0.38MB + Índex: 0.14MB + mecanismo InnoDB
    wp_rank_math_analytics_adsense: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_rank_math_analytics_ga: Dados: 1.52MB + Índex: 2.52MB + mecanismo InnoDB
    wp_rank_math_analytics_gsc: Dados: 36.56MB + Índex: 59.25MB + mecanismo InnoDB
    wp_rank_math_analytics_inspections: Dados: 4.52MB + Índex: 0.44MB + mecanismo InnoDB
    wp_rank_math_analytics_keyword_manager: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_rank_math_analytics_objects: Dados: 0.30MB + Índex: 0.11MB + mecanismo InnoDB
    wp_rank_math_internal_links: Dados: 0.05MB + Índex: 0.02MB + mecanismo InnoDB
    wp_rank_math_internal_meta: Dados: 0.08MB + Índex: 0.00MB + mecanismo InnoDB
    wp_rank_math_redirections: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_rank_math_redirections_cache: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_termmeta: Dados: 0.19MB + Índex: 0.17MB + mecanismo InnoDB
    wp_terms: Dados: 0.05MB + Índex: 0.03MB + mecanismo InnoDB
    wp_term_relationships: Dados: 0.50MB + Índex: 0.45MB + mecanismo InnoDB
    wp_term_taxonomy: Dados: 0.08MB + Índex: 0.03MB + mecanismo InnoDB
    wp_usermeta: Dados: 0.31MB + Índex: 0.33MB + mecanismo InnoDB
    wp_users: Dados: 0.06MB + Índex: 0.05MB + mecanismo InnoDB
    wp_wc_admin_notes: Dados: 0.08MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wc_admin_note_actions: Dados: 0.05MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_category_lookup: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wc_customer_lookup: Dados: 0.13MB + Índex: 0.09MB + mecanismo InnoDB
    wp_wc_download_log: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_gpf_render_cache: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_orders: Dados: 0.02MB + Índex: 0.11MB + mecanismo InnoDB
    wp_wc_orders_meta: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_addresses: Dados: 0.02MB + Índex: 0.06MB + mecanismo InnoDB
    wp_wc_order_coupon_lookup: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_operational_data: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_product_lookup: Dados: 0.11MB + Índex: 0.06MB + mecanismo InnoDB
    wp_wc_order_stats: Dados: 0.14MB + Índex: 0.16MB + mecanismo InnoDB
    wp_wc_order_tax_lookup: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_product_attributes_lookup: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_product_download_directories: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_product_meta_lookup: Dados: 0.16MB + Índex: 0.34MB + mecanismo InnoDB
    wp_wc_rate_limits: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_reserved_stock: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wc_tax_rate_classes: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_webhooks: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_woocommerce_gpf_google_taxonomy: Dados: 2.52MB + Índex: 0.25MB + mecanismo InnoDB
    wp_wpforms_tasks_meta: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wpr_rocket_cache: Dados: 0.19MB + Índex: 0.30MB + mecanismo InnoDB
    wp_wpr_rucss_used_css: Dados: 0.44MB + Índex: 0.64MB + mecanismo InnoDB
    
    ### Post Type Counts ###
    
    astra-advanced-hook: 3
    attachment: 2212
    custom_css: 2
    customize_changeset: 1
    nav_menu_item: 170
    page: 15
    post: 38
    product: 1186
    product_variation: 3
    revision: 289
    rm_content_editor: 1
    shop_coupon: 43
    shop_order: 962
    shop_order_refund: 33
    wcpf_item: 5
    wcpf_project: 1
    wp_global_styles: 2
    wp_navigation: 1
    wpcf7_contact_form: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (28) ###
    
    AI Engine: Chatbots, Geradores, Assistentes, GPT-4 e muito mais!: por Jordy Meow – 2.1.5
    FiboSearch - AJAX Search for WooCommerce (Pro): por FiboSearch Team – 1.26.1
    All-in-One WP Migration Unlimited Extension: por ServMask – 2.54
    All-in-One WP Migration: por ServMask – 7.79
    Astra Pro: por Brainstorm Force – 4.6.1
    Autopreenchimento de endereço em formulários: por FabbricaWeb – 1.2
    Checkout Mestres WP: por Mestres do WP – 7.1.9.8
    Contact Form 7: por Takayuki Miyoshi – 5.8.6
    DataLayer para WooCommerce: por Array.codes – 3.4.0
    EAN for WooCommerce: por WPFactory – 4.8.9
    Facebook para WooCommerce: por Facebook – 3.1.9
    Site Kit by Google: por Google – 1.118.0
    Imagify: por Imagify – Optimize Images & Convert WebP – 2.1.3.1
    Loco Translate: por Tim Whitlock – 2.6.6
    LoginPress: por LoginPress – 3.0.5
    Rank Math SEO PRO: por Rank Math – 3.0.54
    Rank Math SEO: por Rank Math – 1.0.211
    Calculadora de frete melhorada para lojas brasileiras: por Luiz Bills – 3.2.1
    Frenet Shipping Gateway for WooCommerce: por Rafael Mancini – 2.1.15
    WooCommerce Brands: por WooCommerce – 1.6.62
    Brazilian Market on WooCommerce: por Claudio Sanches – 4.0.0
    Mercado Pago payments for WooCommerce: por Mercado Pago – 7.1.1
    WooCommerce Google Product Feed: por Ademti Software Ltd. – 10.11.3
    Product Filters for WooCommerce: por WooCommerce – 1.4.18
    WooCommerce: por Automattic – 8.4.0 (atualização para a versão 8.5.1 está disponível)
    Importador do WordPress: por wordpressdotorg – 0.8.2
    WP Rocket: por Mídia do WP – 3.15.7
    WPS Hide Login: por WPServeur
    NicolasKulka
    wpformation – 1.9.13
    
    
    ### Inactive Plugins (0) ###
    
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: BRL (R$)
    Currency Position: left_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to Woo.com: –
    Enforce Approved Product Download Directories: ✔
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –
    
    ### WC Pages ###
    
    Base da loja: #3532 - /produtos/
    Carrinho: #7 - /carrinho/
    Finalização de compra: #8 - /finalizar-compra/
    Minha conta: #9 - /minha-conta/
    Termos e condições: #21462 - /termo-de-uso/
    
    ### Theme ###
    
    Name: Astra Child
    Version: 1.0.0
    Author URL: https://wpastra.com
    Child Theme: ✔
    Parent Theme Name: Astra
    Parent Theme Version: 4.6.3
    Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### WooCommerce Google Product Feed feeds ###
    
    fc2e27fde09be502: Todos os Produtos
      Type: google
      Category filter: except
      Categories: Acessórios » Outros Produtos (GMC)(117)
    000d76f81a39834f: Bing Product Feed
      Type: bing
      Category filter: -
      Categories: -
    
    ### WooCommerce Google Product Feed options ###
    
    Include variations in feed: -
    Send "item group ID": Enabled
    Expanded schema markup: -
    Debug key: f452a264-dedf-448b-8f7a-64b6257fdd2f
    
    ### WooCommerce Google Product Feed fields ###
    
    Title: Pre-populates from product product_title.
    Product description: Main product description (full preferred) plus variation description
    Availability (in stock products): Defaults to "in stock".
    Availability (backordered products): Defaults to "in stock".
    Availability (out of stock products): Defaults to "out of stock".
    Condition: Defaults to "new".
    Brand: Pre-populates from product_brand taxonomy.
    Manufacturer Part Number (MPN): Pre-populates from _alg_ean meta field.
    Product Type: Defaults to "Animais e suprimentos para animais de estimação > Suprimentos para animais de estimação".
    Google Product Category: Defaults to "Animais e suprimentos para animais de estimação > Suprimentos para animais de estimação".
    Global Trade Item Number (GTIN): Pre-populates from _alg_ean meta field.
    
    ### WooCommerce Google Product Feed DB status ###
    
    Database version: 16
    Active database version: 16
    wc_gpf_render_cache: Empty
    woocommerce_gpf_google_taxonomy (en-US): 5595 items
    woocommerce_gpf_google_taxonomy (pt-BR): 5595 items
    
    ### 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-19 17:50:14 -03:00
    Options: ✔
    Notes: 119
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Canceled: 120
    Oldest: 2023-12-23 16:51:14 +0000
    Newest: 2024-01-16 18:37:26 +0000
    
    Complete: 9.753
    Oldest: 2023-12-20 16:37:16 +0000
    Newest: 2024-01-18 19:36:14 +0000
    
    Failed: 1
    Oldest: –
    Newest: –
    
    Pending: 6
    Oldest: 2024-01-19 01:03:35 +0000
    Newest: 2024-01-19 16:49:19 +0000
    
    
    ### Status report information ###
    
    Generated at: 2024-01-18 16:39:41 -03:00
    `

    @julianosb, I would activate default theme first. If that does not change anything, I would temporaly de-activate Woocommerce plugin, check all the FTP permissions on the files (Woocommerce update failed, fatal error when I try to activate woocommerce | WordPress.org).

    Please make sure you go step by step like @carolm29 said, WooCommerce Self-Service Guide Documentation – WooCommerce and let us know the results.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hello @julianosb,

    Could you confirm if you were able to follow the suggested steps?

    Please share with us your findings.

    Cheers!

    I had a similar problem yesterday when updating to Woocommerce 8.5.1. with Theme Storefront. An update storefront was released today and all fatal errors have been resolved.

    Thread Starter julianosb

    (@julianosb)

    I waited for the ASTRA theme to update and then updated WooCommerce… I received an ERROR message in my email afterwards

    I don’t use Jetpack

    Hello!
    
    WordPress has a built-in feature that detects when a plugin or theme causes a crash on your website and notifies you with this automated email.
    
    In this case, WordPress detected an error with your plugin: WooCommerce.
    
    First, visit their website (https://x.com.br/) and check if there are any visible problems. Then visit the page where the error was found and check if there are any visible problem.
    
    Please contact the support team where you host your site for help investigating this issue.
    
    If your site appears to be broken and you can't access your control panel as usual, WordPress now has a special "restore mode." This allows you to securely access your dashboard and investigate further.
    
    To keep your site secure, this link will expire in 1 day. Don't worry about this, however, a new link will be emailed to you if the error occurs again after the link has expired.
    
    When seeking help with this issue, you may be asked to provide some of the following information:
    WordPress version 6.4.2
    Current theme: Astra Child (version 1.0.0)
    Current plugin: WooCommerce (version 8.5.1)
    PHP version 8.2.13
    
    
    
    Error details
    ================
    An E_ERROR error was caused on line 90 of the file /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php. Error message: Uncaught Error: Failed opening required '/home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Legacy.php' (include_path ='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php:90
    Stacktrace:
    #0 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/StoreApi.php(70): Automattic\Jetpack\Autoloader\jpff434b07a578bad74ca880af0f2deced\ PHP_Autoloader::load_class()
    #1 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Registry/AbstractDependencyType.php(42): Automattic\WooCommerce\StoreApi\StoreApi: :Automattic\WooCommerce\StoreApi\{closure}()
    #2 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Registry/SharedType.php(28): Automattic\WooCommerce\Blocks\Registry\ AbstractDependencyType->resolve_value()
    #3 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Registry/Container.php(96): Automattic\WooCommerce\Blocks\Registry\ SharedType->get()
    #4 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/StoreApi.php(26): Automattic\WooCommerce\Blocks\Registry\ Container->get()
    #5 /home/X/domains/x.com.br/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\StoreApi\StoreApi->Automattic\WooCommerce\StoreApi\{closure} ()
    #6 /home/X/domains/x.com.br/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #7 /home/X/domains/x.com.br/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 /home/X/domains/x.com.br/public_html/wp-includes/rest-api.php(593): do_action()
    #9 /home/X/domains/x.com.br/public_html/wp-includes/rest-api.php(551): rest_get_server()
    #10 /home/X/domains/x.com.br/public_html/wp-includes/rest-api.php(2918): rest_do_request()
    #11 [internal function]: rest_preload_api_request()
    #12 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php(143): array_reduce()
    #13 /home/X/domains/x.com.br/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Settings->add_component_settings()
    #14 /home/X/domains/x.com.br/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #15 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminSharedSettings.php(61): apply_filters()
    #16 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php(268): Automattic\WooCommerce\Internal\Admin\ WCAdminSharedSettings->Automattic\WooCommerce\Internal\Admin\{closure}()
    #17 /home/X/domains/x.com.br/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php(393): Automattic\WooCommerce\Blocks\Assets\ AssetDataRegistry->execute_lazy_data()
    #18 /home/X/domains/x.com.br/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry->enqueue_asset_data()
    #19 /home/X/domains/x.com.br/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #20 /home/X/domains/x.com.br/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #21 /home/X/domains/x.com.br/public_html/wp-admin/includes/template.php(2228): do_action()
    #22 /home/X/domains/x.com.br/public_html/wp-admin/update.php(53): iframe_footer()
    #23 {main}
       thrown
    • This reply was modified 7 months, 3 weeks ago by julianosb.
    Thread Starter julianosb

    (@julianosb)

    The error described in the email appears to be a technical issue related to updating the WooCommerce plugin to version 8.5.1.

    The error specifically mentions an issue on line 90 of the WooCommerce class-php-autoloader.php file, indicating that it was UNABLE to open a required file (Legacy.php) located in the woocommerce-blocks/src/StoreApi folder.

    Font: ChatGPT4

    @julianosb, check here – Major, Fatal Error and Conflict w/ 8.5.1 and Stripe Gateway… | WordPress.org, it looks related.

    It makes me wonder. If you disable all the plugin and do the upgrade, does the same error appears?

    You said you are not using Jetpack, however, maybe something related to API is using jetpack, Fatal Error on Upgrade to 8.4.0 | WordPress.org –>from your error log

    rest_do_request()
    #11 [internal function]: rest_preload_api_request()
    Thread Starter julianosb

    (@julianosb)

    I created a STAGING to test and checked the WooCommerce folders, I noticed that in the update, some folders are missing

    8.4.0
    /wp-content/plugins/woocommerce/packages

    • action-scheduler
    • woocommerce-admin
    • woocommerce-blocks

    8.5.1
    /wp-content/plugins/woocommerce/packages

    • action-scheduler
    • woocommerce-admin

    In other words, version 8.5.1 does not have the woocommerce-blocks folder in /wp-content/plugins/woocommerce/packages and class-php-autoloader.php does not find the file in that folder.

    Hi there @julianosb 👋

    In other words, version 8.5.1 does not have the woocommerce-blocks folder in /wp-content/plugins/woocommerce/packages and class-php-autoloader.php does not find the file in that folder.

    This was addressed with PR #42017, per the changelog of WooCommerce.

    The error described in the email appears to be a technical issue related to updating the WooCommerce plugin to version 8.5.1.

    In order to find the culprit, this has to be checked with temporarily activating a default theme (like TT3, or Storefront), not Astra, and have only the WooCommerce plugin active, and see if the issue persists, or otherwise.

    Could you test like so, and let us know how it went, please?

    Thank you for sharing, @druideniggi.

    @julianosbm, did you try @anastas10s suggestion about theme de-activiting before going to upgrade? So you start with a native theme + without plugins except WooCommerce.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Error after Update to 8.5.1’ is closed to new replies.