• Resolved kijam

    (@kijam)


    Just the next version to 8.0.3 up to last (8.2.1), I started to have an error in the add-to-cart action in the widget (using Gutenberg widgets of WooCommerce):

    Cannot read properties of undefined (reading 'cart')

    Additionally, as soon as the page is opened without taking any action, you begin to see this error:

    product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 Uncaught TypeError: Cannot read properties of undefined (reading 'cart')
        at Object.hasCartLoaded (product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1:5203)
        at product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1:7810
    hasCartLoaded @ product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1
    (anonymous) @ product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1
    requestIdleCallback (async)
    afterLoad @ product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1
    (anonymous) @ wc-interactivity.js?ver=11.1.2:1
    (anonymous) @ wc-interactivity.js?ver=11.1.2:1
    product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 [Violation] 'requestIdleCallback' handler took 7558ms
    [Violation] Forced reflow while executing JavaScript took 416ms
    product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1 Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'cart')
        at product-button-interactivity-frontend.js?ver=f231c36d2e6154d2cf545a864568f5e4:1:7746
        at data.min.js?ver=ff7eb3945f963be850ff:2:19755
        at data.min.js?ver=ff7eb3945f963be850ff:2:18707
        at p (data.min.js?ver=ff7eb3945f963be850ff:2:9288)
        at data.min.js?ver=ff7eb3945f963be850ff:2:12432
        at redux-routine.min.js?ver=0be1b2a6a79703e28531:9:750
        at data.min.js?ver=ff7eb3945f963be850ff:2:11500
        at Object.dispatch (data.min.js?ver=ff7eb3945f963be850ff:2:12370)
        at data.min.js?ver=ff7eb3945f963be850ff:2:17168
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kijam

    (@kijam)

    `
    ### WordPress Environment ###
    
    WordPress address (URL): ***
    Site address (URL): ***
    WC Version: 8.2.1
    REST API Version: ? 8.2.1
    WC Blocks Version: ? 11.1.2
    Action Scheduler Version: ? 3.6.3
    Log Directory Writable: ?
    WP Version: ? 6.3 - Hay una versión nueva de WordPress disponible (6.3.2)
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: –
    Language: es_AR
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.2.11
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3600
    PHP Max Input Vars: 10000
    cURL Version: 7.74.0
    OpenSSL/1.1.1w
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.31-23
    Max Upload Size: 50 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 8.2.1
    WC Database Prefix: wp_
    Tama?o total de la base de datos: 28.97MB
    Tama?o de los datos de la base de datos: 20.42MB
    Tama?o del índice de la base de datos: 8.55MB
    wp_woocommerce_sessions: Datos: 0.08MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_woocommerce_order_items: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_order_itemmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_actions: Datos: 0.09MB + índice: 0.11MB + Motor InnoDB
    wp_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_logs: Datos: 0.08MB + índice: 0.03MB + Motor InnoDB
    wp_commentmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_comments: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB
    wp_e_events: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_e_notes: Datos: 0.02MB + índice: 0.17MB + Motor InnoDB
    wp_e_notes_users_relations: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_e_submissions: Datos: 0.02MB + índice: 0.27MB + Motor InnoDB
    wp_e_submissions_actions_log: Datos: 0.02MB + índice: 0.11MB + Motor InnoDB
    wp_e_submissions_values: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_kshippingargentina_cache: Datos: 0.06MB + índice: 0.03MB + Motor InnoDB
    wp_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_masterslider_options: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_masterslider_sliders: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_nextend2_image_storage: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_nextend2_section_storage: Datos: 0.05MB + índice: 0.06MB + Motor InnoDB
    wp_nextend2_smartslider3_generators: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_nextend2_smartslider3_sliders: Datos: 0.08MB + índice: 0.03MB + Motor InnoDB
    wp_nextend2_smartslider3_sliders_xref: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_nextend2_smartslider3_slides: Datos: 0.08MB + índice: 0.11MB + Motor InnoDB
    wp_options: Datos: 2.48MB + índice: 0.06MB + Motor InnoDB
    wp_pla_grant_access: Datos: 0.02MB + índice: 0.08MB + Motor InnoDB
    wp_post_smtp_logmeta: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_post_smtp_logs: Datos: 7.52MB + índice: 0.00MB + Motor InnoDB
    wp_postmeta: Datos: 1.52MB + índice: 0.28MB + Motor InnoDB
    wp_posts: Datos: 1.48MB + índice: 0.06MB + Motor InnoDB
    wp_simple_history: Datos: 0.39MB + índice: 0.22MB + Motor InnoDB
    wp_simple_history_contexts: Datos: 2.52MB + índice: 2.03MB + Motor InnoDB
    wp_term_relationships: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_termmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_usermeta: Datos: 2.52MB + índice: 3.03MB + Motor InnoDB
    wp_users: Datos: 0.13MB + índice: 0.14MB + Motor InnoDB
    wp_wc_admin_note_actions: Datos: 0.06MB + índice: 0.02MB + Motor InnoDB
    wp_wc_admin_notes: Datos: 0.08MB + índice: 0.00MB + Motor InnoDB
    wp_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_order_addresses: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_order_operational_data: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_orders: Datos: 0.02MB + índice: 0.11MB + Motor InnoDB
    wp_wc_orders_meta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_product_download_directories: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_product_meta_lookup: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB
    wp_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_yoast_indexable: Datos: 0.06MB + índice: 0.09MB + Motor InnoDB
    wp_yoast_indexable_hierarchy: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_yoast_migrations: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_yoast_primary_term: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_yoast_seo_links: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    
    ### Post Type Counts ###
    
    acf-field: 9
    acf-field-group: 1
    attachment: 139
    custom_css: 2
    customize_changeset: 116
    elementor_library: 3
    ep-synonym: 1
    kshipping-box: 5
    nav_menu_item: 5
    page: 9
    post: 3
    product: 21
    product_variation: 32
    revision: 24
    shop_coupon: 24
    shop_order: 2
    shop_shipping_note: 2
    wp_global_styles: 1
    wp_template: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: por Automattic – 8.2.1
    
    ### Inactive Plugins (28) ###
    
    Bulk Delete: por Sudar – 6.0.2
    Carriers of Argentina for WooCommerce: por Kijam López – 1.1.10
    eCommerce Store Optimizer: por StudioPress Team – 0.6.2
    Elementor: por Elementor.com – 3.16.3
    FiboSearch - AJAX Search for WooCommerce: por FiboSearch Team – 1.26.1
    Genesis Blocks Pro: por WP Engine – 3.0.0
    Live Cart by WP Engine: por WP Engine – 1.0.1
    Loco Translate: por Tim Whitlock – 2.6.6
    Mercado Pago payments for WooCommerce: por Mercado Pago – 6.9.3
    Post SMTP: por Post SMTP – 2.7.0
    Pre-Orders for WooCommerce: por Bright Plugins – 1.2.14
    Publica.la Customizations: por Publica.la – 1.0.0
    Publica.la Marketplace Integration: por Publica.la – 1.1.2
    Publica.la WordPress Pack: por Publica.la – 1.0.7.5
    PublishPress Capabilities: por PublishPress – 2.10.1
    Quick Buy For WooCommerce: por Varun Sridharan – 2.8.4
    Ship Estimate for WooCommerce: por RLDD – 1.4.24
    Simple History: por P?r Thernstr?m – 4.7.1
    Site Kit by Google: por Google – 1.111.1
    Slack Notifications: por dorzki – 2.0.7
    Smart Slider 3: por Nextend – 3.5.1.19
    WooCommerce Checkout Manager: por QuadLayers – 7.2.8
    WooCommerce Stripe Gateway: por WooCommerce – 7.6.1
    WPC Product Bundles for WooCommerce: por WPClever – 7.3.1
    WP Engine Smart Plugin Manager: por WP Engine – 5.17.27
    WP Revisions Control: por Erick Hitter – 1.4.3
    Yoast SEO: por Team Yoast – 21.4
    Yoast SEO: WooCommerce: por Team Yoast – 15.7
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    object-cache.php: Memcached Redux
    
    ### Must Use Plugins (5) ###
    
    Force Strong Passwords - WPE Edition: por Jason Cosper – 1.8.0
    WP Engine Cache Plugin: por WP Engine – 1.1.4
    WP Engine Seamless Login Plugin: por WP Engine – 1.6.1
    WP Engine Security Auditor: por wpengine – 1.1.1
    WP Engine System: por WP Engine – 5.0.1
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: ARS ($)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: easy_product_bundle (easy_product_bundle)
    external (external)
    grouped (grouped)
    publicala_single (publicala_single)
    simple (simple)
    variable (variable)
    woosb (woosb)
    yith_bundle (yith_bundle)
    
    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 WooCommerce.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 de la tienda: #5 - /tienda/
    Carrito: #6 - /cart/
    Finalizar compra: #7 - /checkout/
    Mi cuenta: #8 - /my-account/
    Términos y condiciones: ? Página sin definir
    
    ### Theme ###
    
    Name: Storefront
    Version: 4.5.3
    Author URL: https://woocommerce.com/
    Child Theme: ? – Si estás modificando WooCommerce en un tema padre que no has creado personalmente
    te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### 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
    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
    settings
    async-product-editor-category-field
    
    Daily Cron: ? Next scheduled: 2023-10-27 15:32:57 +00:00
    Options: ?
    Notes: 129
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Completo: 237
    Oldest: 2023-09-26 19:37:28 +0000
    Newest: 2023-10-26 20:44:43 +0000
    
    Pendiente: 2
    Oldest: 2023-10-26 20:50:46 +0000
    Newest: 2023-10-27 19:51:19 +0000
    
    
    ### Status report information ###
    
    Generated at: 2023-10-26 20:50:08 +00:00
    `
    • This reply was modified 1 year ago by kijam.
    • This reply was modified 1 year ago by kijam.
    wbrubaker.a11n

    (@wbrubaker)

    Howdy ??

    There’s an issue for this open here: https://github.com/woocommerce/woocommerce/issues/41115 though I’m not sure how much good that’s going to do you.

    One thing you might try is to remove and then re-insert the block.

    Thread Starter kijam

    (@kijam)

    Thanks for your idea, we tried it and it didn’t work, I deleted the block, saved the changes, we edited the page again and added the block again and the error persists.

    wbrubaker.a11n

    (@wbrubaker)

    Thanks for trying that. Sorry it didn’t work for you ?? The best I can tell you is to wait for movement on that issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Front-error in Add-to-cart Block Gutenberg Category’ is closed to new replies.