Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

Mini Cart Block pop-out is blank when running Page Optimize #65662

Open nanoanno opened 2 years ago

nanoanno commented 2 years ago

Quick summary

When running the plugin Page Optimize, the Mini Cart block will display a blank pop-up for the cart.

Steps to reproduce

  1. Install Page Optimize.
  2. Add the Mini Cart block to a page.
  3. Add a product to the cart.
  4. Click on the mini cart icon.
  5. The pop-up will open up, but it is completely blank.
  6. Disable Page Optimize and the pop-up appears with cart information, as expected.

What you expected to happen

The pop-up displays all of the cart information:

Screenshot on 2022-07-17 at 20-02-23

What actually happened

The pop-up is blank:

Markup 2022-07-17 at 20 02 49

Context

Originally discovered in this ticket: 5401769-zen. Additionally mentioned in this ticket: 5354801-zen

Platform (Simple, Atomic, or both?)

Atomic, Self-hosted

Theme-specific issue?

Problem occurs on both Twenty Twenty-Two and Storefront.

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

Yes, easy to implement

Workaround details

Deactivate the Page Optimize plugin.

github-actions[bot] commented 2 years ago

Support References

This comment is automatically generated. Please do not edit it.

jamiepalatnik commented 2 years ago

📌 HOUSEKEEPING

📌 SCRUBBING

📌 FINDINGS/SCREENSHOTS/VIDEO

📌 ACTIONS

📌 Message to Author

imodouglas commented 2 years ago

Hi @jamiepalatnik, I have been able to replicate this issue on my test site and I can confirm that the mini cart block shows blank content when WooCommerce, Page Optimize, and WooCommerce Payments are activated together not just WooCommerce and Page Optimize.

renata-franco commented 2 years ago

Hi @jamiepalatnik, I have been able to replicate this issue on my test site and I can confirm that the mini cart block shows blank content when WooCommerce, Page Optimize, and WooCommerce Payments are activated together not just WooCommerce and Page Optimize.

I was not able to replicate on an AT site with all of these plugins installed.

Could you please triple-check if you can still replicate it? And if you do, can you please record a video of the process?

Same for @nanoanno, please! To see if we are missing any steps to be able to replicate.

Gustavo-Hilario commented 2 years ago

Another report there:

On their site, just deactivating Page Optimize helped to allow cart items to appear. But, on testing, I noticed that disabling WooCommerce Payments only also fixed the issue and gave the same result.

rinazrina commented 2 years ago

Another report: 5487959-zd-woothemes

The Mini Cart works when Page Optimize OR WooCommerce Subscriptions are deactivated.

Similar report here: https://github.com/Automattic/wp-calypso/issues/66683

avantegarde commented 2 years ago

@renata-franco

I was not able to replicate on an AT site with all of these plugins installed. Could you please triple-check if you can still replicate it? And if you do, can you please record a video of the process?

I was able to replicate this on AT but not on self-hosted. See video for replication steps.

It's worth noting that my test site is running PHP 7.4.30.

Steps to re-create:

  1. AT site
  2. Only plugins activated are:
    • Page Optimize
    • WooCommerce
    • WooCommerce Payments
  3. Add the Mini Cart block to a page.
  4. Click on the Mini Cart icon
  5. The pop-up will open up, but it is completely blank.
  6. Add a product to the cart.
  7. The pop-up will open up, but it is completely blank.
  8. Disable ONE of the following plugins:
    • Page Optimize
    • WooCommerce Payments
  9. The pop-up appears with cart information, as expected.

Video: https://user-images.githubusercontent.com/3516737/185679161-0f7b1937-6742-4a37-9472-347525ffc2b6.mp4

cuemarie commented 2 years ago

📌 ACTIONS

cuemarie commented 1 year ago

Upped the priority on this as it's not intuitive to resolve on it's own, and both Page Optimize and WooCommerce Payments are common plugins (Page Optimize, of course, being a default plugin), so that means that nearly every person who adds a Mini Cart Block to their site will encounter this issue.

Aljullu commented 1 year ago

Hey there, I think this was fixed in https://github.com/woocommerce/woocommerce-blocks/pull/7794, which was released in WC Blocks 8.7.6 and WC core 7.1.1.

Do you think we can close this issue, or have any users been able to reproduce it since then?