Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mini-Cart block doesn't load when certain extensions like WooCommerce Subscriptions and WooCommerce Deposits are installed and JP Boost Concatenate JS is enabled. #47495

Closed
5 tasks
rodelgc opened this issue May 15, 2024 · 3 comments
Labels
block: mini-cart Issues related to the Mini-Cart block. priority: critical The issue is critical—e.g. a fatal error or blocked critical path. team: Kirigami & Origami team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues type: bug The issue is a confirmed bug.

Comments

@rodelgc
Copy link
Contributor

rodelgc commented May 15, 2024

Prerequisites

  • I have carried out troubleshooting steps and I believe I have found a bug.
  • I have searched for similar bugs in both open and closed issues and cannot find a duplicate.

Describe the bug

As discussed here, p1715748474161819/1715723094.509679-slack-C7U3Y3VMY, we observed a bug with the mini-cart that could be related to #47492. In order to reproduce this mini-cart issue, you will need to have WooCommerce Subscriptions or WooCommerce Deposits (possibly affects other extensions too) AND JP Concatenate JS feature enabled too.

Expected behavior

Mini-cart block loads

Actual behavior

Mini-cart block doesn't load.

Steps to reproduce

  1. Install WC 8.9
  2. Install Jetpack Boost
  3. In the Jetpack Boost settings, enable the "Concatenate JS" feature
  4. Install WooCommerce Subscriptions.
  5. As a shopper, open your browser console and go to the /shop page.
  6. Symptom 1: you will see a bunch of JS errors just by loading the shop page:

Screenshot from 2024-05-15 13-42-06

  1. Click on the mini-cart icon.
  2. Symptom 2: the contents of the mini-cart is blank, it doesn't load

Screenshot from 2024-05-15 13-42-23

  1. Disable the "Concatenate JS" feature.
  2. Notice that the 2 problems above go away.

WordPress Environment

WC 8.9
WP 6.5
Plugins installed:

  • WC 8.9
  • Jetpack
  • Jetpack Boost
  • WooCommerce Subscriptions

Isolating the problem

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.
@rodelgc rodelgc added type: bug The issue is a confirmed bug. team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues block: mini-cart Issues related to the Mini-Cart block. labels May 15, 2024
@gigitux gigitux changed the title Min-Cart block doesn't load when certain extensions like WooCommerce Subscriptions and WooCommerce Deposits are installed and JP Boost Concatenate JS is enabled. Mini-Cart block doesn't load when certain extensions like WooCommerce Subscriptions and WooCommerce Deposits are installed and JP Boost Concatenate JS is enabled. May 15, 2024
@ralucaStan ralucaStan added priority: critical The issue is critical—e.g. a fatal error or blocked critical path. team: Kirigami & Origami labels May 15, 2024
@ralucaStan
Copy link
Contributor

This issue was fixed with a release of Jetpack Boost 3.3.1 https://github.com/Automattic/jetpack-boost-production/releases/tag/3.3.1. To the people affected please update to that version.

@ralucaStan
Copy link
Contributor

Reopening this for better visibility as it might come in handy to some people. We'll close it once WooCommerce 8.9.1 will be released on Monday Dot Release: WooCommerce 8.9.1 is coming soon with fixes.

@ralucaStan
Copy link
Contributor

closing as WooCommerce 8.9.1: Dot release happened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
block: mini-cart Issues related to the Mini-Cart block. priority: critical The issue is critical—e.g. a fatal error or blocked critical path. team: Kirigami & Origami team: Rubik Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants