-
Notifications
You must be signed in to change notification settings - Fork 219
Mini Cart doesn't show contents and cause page freeze #6500
Comments
@palewar Could you please let us know the version of WordPress, WooCommerce, and WooCommerce Blocks you are using? Also whether the Gutenberg plugin is active and if so which version? Can you reliably reproduce the issue or does it happen intermittently? |
Already included Wordpress, Woo versions. I can reproduce it reliably on mobile, desktop. Both chrome and safari browsers. On both localhost and web host installs. On both windows desktop and Mac OS and iOS and Android. I am surprised, how no one has reported about it yet. |
We haven't been able to reproduce the issue on our end just yet. Could you please do me a favor and walk through the steps in the WooCommerce Self-Service Guide just so we eliminate any of the potential causes listed there. If the issue still persists, please share a WooCommerce Systems Status report (WooCommerce > Status > System Status > Get System Report) with us so we have more information at our disposal to investigate. |
I did a fresh install on localhost to rule out exactly what's suggested in Self-Service guide and as mentioned there are no plugins and themes installed which can cause any conflict. The only difference is I am using Twenty Twenty Two theme and not the Storefront as advised. As I believe Mini Cart block is made to work with FSE and Storefront isn't a FSE theme. If Mini Cart block can't work with default FSE theme of Wordpress, then I think it's broken IMO. Also I would like to mention that Mini Cart was actually working for us a few updates ago. It broke with some update of Wordpress or Woocommerce I believe. Can't say for sure which updated caused this, as we only noticed it recently ourselves. System Report below: ` WordPress EnvironmentWordPress address (URL): http://localhost/wordpress Server EnvironmentServer Info: Apache/2.4.51 (Unix) OpenSSL/1.1.1k PHP/8.0.12 mod_perl/2.0.11 Perl/v5.32.1 SUHOSIN Installed: – DatabaseWC Database Version: 6.5.1 Post Type Countsattachment: 6 SecuritySecure connection (HTTPS): ❌ Active Plugins (3)Gutenberg: by Gutenberg Team – 13.3.0 Inactive Plugins (2)Akismet Anti-Spam: by Automattic – 4.2.4 SettingsAPI Enabled: – Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) Connected to WooCommerce.com: – WC PagesShop base: #6 - /index.php/shop/ ThemeName: Twenty Twenty-Two TemplatesOverrides: – Action SchedulerComplete: 15 Pending: 1 Status report informationGenerated at: 2022-06-01 05:21:16 +00:00 |
Additional Observations: I changed the theme to StoreFront. Added Mini Cart block in Widget - 'Below the Header'. Have same issue with StoreFront too. In Console, when I hover over the mini-cart icon I get the following error: [Error] Unhandled Promise Rejection: [object Event] |
Thank you for providing this additional information and context, @palewar. We'll try to reproduce and will investigate. |
Just wanted to report that I created a fresh installation on InstaWP today to test this out once more and I found that mini-cart block was actually working fine on it. So obviously I understand, it's hard to reproduce. It's still not working for us on 2 different local installations (on separate desktops) and our web-host for some reason. If you guys want to mark it closed, please do so. Thanks for your help so far. If I have more info in future or if I get it running somehow, will report here. Maybe I should stick to Storefront for now for my WooCommerce work. I was excited to go all in and do complete website using FSE and blocks. It didn't go as planned. |
Thanks for letting us know! We appreciate your help and want you to have a good experience. While we haven't been able to reproduce the issue yet, I found an issue report of an issue with the Cart block #5866 that sounds similar to what you're reporting. We will continue to investigate next week to see if there is something we need to fix. |
Hey @pelwar - We'll close this for now as we struggle to reproduce it. But wanted to drop one last question. A while ago we've had a similar issue reported by another user who tried to set up the environment on Windows with XAMPP but then everything worked alright for them on local env when they tried to set it up with Local. We'll keep on monitoring in the hope we can reproduce it reliably. |
Hello, @tomasztunik @frontdevde @palewar You can recreate this by installing WordPress on subdirectory. for example, localhost/wp
Hope it helps to recreate the issue and add possible fixes asap. |
Fix loading deps when WordPress is installed in a subdir
Hi, |
Describe the bug
Mini Cart doesn't show contents and cause page freeze, using Twenty Twenty-Two theme.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Cart should show product and cart total etc.
Screenshots
Environment
WordPress
Desktop:
Additional context
Also tried without Gutenberg and Woocommerce Blocks. Same behaviour.
The text was updated successfully, but these errors were encountered: