• Resolved ishyfishydishy

    (@ishyfishydishy)


    Hi WooCommerce Support,

    We have an issue on our WooCommerce basket page where item quantities, via the ‘Update basket’ button cannot be changed, nor can any product line be deleted using the “X” next to each product line.

    We are seeing a number of different warnings and errors:
    ‘jQuery.Deferred exception’ warning

    jQuery.Deferred exception: Cannot read properties of undefined (reading 'defaults') TypeError: Cannot read properties of undefined (reading 'defaults')
    at HTMLDocument. (https://portal.scooterpac.com/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=8.3.1:1:81)
    at e (https://code.jquery.com/jquery-3.6.0.min.js:2:30038)
    at t (https://code.jquery.com/jquery-3.6.0.min.js:2:30340)


    ‘Uncaught TypeError’ errors

    Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')
        at HTMLDocument.<anonymous> (checkout.min.js?ver=8.3.1:1:81)
        at e (jquery-3.6.0.min.js:2:30038)
        at t (jquery-3.6.0.min.js:2:30340)
    
    Uncaught TypeError: t.addClass(...).block is not a function cart.min.js?ver=8.3.1:1 
        at c (cart.min.js?ver=8.3.1:1:277)
        at Object.item_remove_clicked (cart.min.js?ver=8.3.1:1:7357)
        at HTMLDocument.dispatch (jquery-3.6.0.min.js:2:43064)
        at v.handle (jquery-3.6.0.min.js:2:41048)

    The errors are pointing towards issues with WooCommerce’s checkout.min.js, cart.min.js and jquery files.

    Any ideas / input would be much appreciated.

    ` WordPress Environment
    
    WordPress address (URL): https://portal.scooterpac.com<br>Site address (URL): https://portal.scooterpac.com<br>WC Version: 8.3.1<br>REST API Version: ? 8.3.1<br>WC Blocks Version: ? 11.4.9<br>Action Scheduler Version: ? 3.6.4<br>Log Directory Writable: ?<br>WP Version: 6.4.2<br>WP Multisite: –<br>WP Memory Limit: 1 GB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_GB<br>External object cache: – Server Environment
    
    Server Info: nginx/1.24.0<br>PHP Version: 8.2.13<br>PHP Post Max Size: 128 MB<br>PHP Time Limit: 400<br>PHP Max Input Vars: 5000<br>cURL Version: 7.61.1<br>OpenSSL/1.1.1k
    
    SUHOSIN Installed: –<br>MySQL Version: 10.6.16-MariaDB<br>Max Upload Size: 64 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database
    
    WC Database Version: 8.3.1<br>WC Database Prefix: 3iXm053_<br>Total Database Size: 331.07MB<br>Database Data Size: 318.24MB<br>Database Index Size: 12.83MB<br>3iXm053_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>3iXm053_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>3iXm053_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_actionscheduler_actions: Data: 0.09MB + Index: 0.11MB + Engine InnoDB<br>3iXm053_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB<br>3iXm053_cptslotsbk_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_cptslotsbk_icalexport: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_cptslotsbk_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB<br>3iXm053_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>3iXm053_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB<br>3iXm053_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>3iXm053_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>3iXm053_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_gf_form_meta: Data: 0.11MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB<br>3iXm053_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_loginpress_limit_login_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_options: Data: 4.48MB + Index: 0.14MB + Engine InnoDB<br>3iXm053_pmxe_exports: Data: 0.09MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxe_posts: Data: 0.13MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxe_templates: Data: 0.03MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxi_hash: Data: 0.14MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxi_images: Data: 0.09MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxi_imports: Data: 0.45MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxi_posts: Data: 0.25MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_pmxi_templates: Data: 0.11MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_postmeta: Data: 218.55MB + Index: 7.03MB + Engine InnoDB<br>3iXm053_posts: Data: 90.55MB + Index: 2.69MB + Engine InnoDB<br>3iXm053_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_term_relationships: Data: 0.11MB + Index: 0.08MB + Engine InnoDB<br>3iXm053_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_um_metadata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>3iXm053_usermeta: Data: 0.42MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>3iXm053_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>3iXm053_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>3iXm053_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>3iXm053_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>3iXm053_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_wc_product_meta_lookup: Data: 0.08MB + Index: 0.13MB + Engine InnoDB<br>3iXm053_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>3iXm053_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>3iXm053_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>3iXm053_wdp_persistent_rules_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_wdp_rules: Data: 0.06MB + Index: 0.03MB + Engine InnoDB<br>3iXm053_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>3iXm053_wpml_mails: Data: 0.25MB + Index: 0.02MB + Engine InnoDB Post Type Counts
    
    acf-field: 3<br>acf-field-group: 1<br>amz_configurator: 11<br>attachment: 2270<br>custom_css: 2<br>custom-css-js: 1<br>elementor_library: 60<br>nav_menu_item: 1<br>oembed_cache: 1<br>page: 46<br>post: 3<br>product: 479<br>product_variation: 11<br>revision: 7775<br>um_directory: 1<br>um_form: 3<br>wp_navigation: 1<br>wp_template: 2<br>wpcf7_contact_form: 1 Security
    
    Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (34)
    
    Advanced Custom Fields: by WP Engine – 6.2.4<br>Advanced Dynamic Pricing for WooCommerce: by AlgolPlus – 4.5.3<br>All-in-One WP Migration Unlimited Extension: by ServMask – 2.54<br>All-in-One WP Migration: by ServMask – 7.79<br>Cabincar Skin for WP Configurator Pro: by WP Configurator – 1.2<br>Classic Editor: by WordPress Contributors – 1.6.3<br>Conditional Logic for WP Configurator Pro: by WP Configurator – 1.1<br>Contact Form 7: by Takayuki Miyoshi – 5.8.3<br>Duplicate Page: by mndpsingh287 – 4.5.3<br>Elementor Pro: by Elementor.com – 3.17.1<br>Elementor: by Elementor.com – 3.17.3<br>Gravity Forms: by Gravity Forms – 2.7.17<br>Gravity Forms Zapier Add-on: by Gravity Forms – 4.2.1<br>Login Logout Menu: by WPBrigade – 1.4.0<br>LoginPress - Customizing the WordPress Login Screen.: by WPBrigade – 1.8.0<br>Members: by MemberPress – 3.2.8<br>Min and Max Order Amount for Woo Payment Gateways: by Raihan – 1.0.2<br>Premium Addons for Elementor: by Leap13 – 4.10.15<br>Premium Addons PRO: by Leap13 – 2.9.9<br>Redis Object Cache: by Till Krüss – 2.5.0<br>Styles & Layouts Gravity Forms: by Sushil Kumar – 4.3.11<br>Ultimate Addons for Elementor: by Brainstorm Force – 1.36.25<br>WooCommerce Stripe Gateway: by WooCommerce – 7.7.0<br>WooCommerce Product Table: by Barn2 Plugins – 3.1.2<br>WooCommerce Role Based Methods: by WPBackOffice – 2.4.3<br>WooCommerce: by Automattic – 8.3.1 (update to version 8.4.0 is available)<br>WP All Export Pro: by Soflyy – 1.8.6<br>WP All Import Pro: by Soflyy – 4.8.5<br>WP Configurator Pro: by WP Configurator – 3.5.1<br>WP File Manager: by mndpsingh287 – 7.2.1<br>WP Mail Logging: by WP Mail Logging Team – 1.12.0<br>WP All Export - User Export Add-On Pro: by Soflyy – 1.0.7<br>WP All Export - WooCommerce Export Add-On Pro: by Soflyy – 1.0.9<br>WP All Import - WooCommerce Import Add-On Pro: by Soflyy – 4.0.0 Inactive Plugins (1)
    
    WooCommerce Wholesale and Tier Prices: by Addify – 1.2.1 Dropin Plugins (1)
    
    maintenance.php: maintenance.php Settings
    
    API Enabled: –<br>Force SSL: –<br>Currency: GBP (£)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)
    
    Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages
    
    Shop base: ? Page not set<br>Basket: #93 - /basket/<br>Checkout: #94 - /checkout/<br>My account: #95 - /my-account/<br>Terms and conditions: #5320 - /terms-and-conditions/ Theme
    
    Name: Scooterpac Portal<br>Version: 1.0<br>Author URL: https://www.scooterpac.com<br>Child Theme: ?<br>Parent Theme Name: Hello Elementor<br>Parent Theme Version: 2.9.0<br>Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash<br>WooCommerce Support: ? Templates
    
    Overrides: Scooterpac-Portal/woocommerce/emails/customer-completed-order.php<br>Scooterpac-Portal/woocommerce/emails/customer-processing-order.php Admin
    
    Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page
    
    Disabled Features: customize-store<br>minified-js<br>new-product-management-experience<br>product-virtual-downloadable<br>product-external-affiliate<br>settings<br>async-product-editor-category-field
    
    Daily Cron: ? Next scheduled: 2023-12-13 20:00:27 +00:00<br>Options: ?<br>Notes: 47<br>Onboarding: skipped Action Scheduler
    
    Complete: 121<br>Oldest: 2023-11-13 04:02:48 +0000<br>Newest: 2023-12-12 02:36:44 +0000
    
    Failed: 44<br>Oldest: 2023-02-16 17:42:34 +0000<br>Newest: 2023-11-29 09:27:24 +0000
    
    Pending: 1<br>Oldest: 2023-12-13 02:36:44 +0000<br>Newest: 2023-12-13 02:36:44 +0000 Status report information
    
    Generated at: 2023-12-13 15:22:09 +00:00<br>`
    
    

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @ishyfishydishy

    Thanks for reaching out!

    I understand that you’re having issues on your cart page wherein added products cannot be updated.

    I would love to check your site, however, I am asked for a credential as you can see below:

    For us to investigate this further, can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Or, if you’d like someone else to do this work for you, our trusted partner, Codeable, has an offering where they will run this test for $150 USD. If there is time left, they will also fix the problems they found.

    Let us know how it goes!

    Hi,

    I am also having problems with my checkout page now after updating.

    Deleting items does not work anymore.

    When loading checkout page following error is thrown:

    jQuery.Deferred exception: Cannot read properties of undefined (reading 'defaults') TypeError: Cannot read properties of undefined (reading 'defaults')
    at HTMLDocument. (https://staging.smartlandbruk.no/wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=8.4.0:1:81)
    
    

    When trying to delete one item it says:

    add-to-cart.min.js?ver=8.4.0:1 Uncaught TypeError: r.block is not a function
    at a.onRemoveFromCart (add-to-cart.min.js?ver=8.4.0:1:1859)
    at HTMLBodyElement.dispatch (jquery.min.js:2:43064)
    at v.handle (jquery.min.js:2:41048)

    https://staging.smartlandbruk.no

    • This reply was modified 1 year, 3 months ago by sindrevr.
    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello sindrevr,

    Thank you for contacting WooCommerce support.

    I understand you are encountering issues on your checkout page, specifically with deleting items and receiving a jQuery.Deferred exception error. Additionally, there is a TypeError: r.block is not a function error when trying to remove an item from the cart.

    It appears these errors are related to jQuery, and while the error message might suggest that WooCommerce is the source, the problem could be stemming from a different place within your site’s setup.

    I’ve noticed a JavaScript error on the Home page which you can view in this screenshot:?https://prnt.sc/V7VhwzdgYk69. JavaScript errors can indeed act like a domino effect, potentially leading to subsequent errors on the Checkout page.

    To start troubleshooting, I recommend the following steps:

    1. Ensure WooCommerce is updated to its latest version, which is currently 8.4.
    2. Update the Hello Elementor theme to its latest version as well.
    3. Temporarily disable all your plugins. Afterward, check if the error persists on the Home and Checkout pages.
    4. If the JavaScript error is resolved by disabling plugins, begin reactivating them one by one, checking for the error after each activation. This process will help us identify the source of the problem.

    Once we pinpoint the problematic plugin or script, we can then proceed with finding an appropriate solution to address the issue.

    Please let us know the outcomes of each step, and we can guide you further based on the findings. Your timely cooperation is greatly appreciated in getting to the root of this issue.

    Have a nice day!

    Thanks for quick reply Zubair!

    Found that the JavaScript error on homepage is related to JetThemeCore, have opened a ticket at Crocoblock regarding this plugin.

    Found that the checkout jQuery error is only happening when having the Elementor Pro plugin activated… So I guess this has nothing to do with Woocommerce plugin ?? Thanks for quick reply and suggestions.

    BR,

    Sindre

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @sindrevr,

    I’m glad we were able to help!

    I will mark this thread as resolved, but feel free to create a new topic if you need further help with the WooCommerce core.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘jQuery.Deferred exception’ is closed to new replies.