Opened 2 months ago
Last modified 2 months ago
#66145 new defect (bug)
Regression in WP 7.1.1: WooCommerce product archives do not render ul.products container
| Reported by: | xurxobertola | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | 7.1.1 |
| Severity: | major | Keywords: | needs-testing needs-patch |
| Cc: | Focuses: |
Description
Summary
After updating WordPress from 7.1 to 7.1.1, WooCommerce product category archives stop rendering the standard <ul class="products"> container. Pagination counts remain correct (e.g. "Showing 1-8 of 25 results"), but no product grid is output in the HTML. Confirmed on desktop and mobile.
Environment
- WordPress: 7.1.1 (broken) vs 7.1 (working)
- WooCommerce: 11.1.1
- PHP: 8.4.24
- MySQL: MariaDB 10.11.18
- Theme: Fashion (Divi child theme, Destaca Imagen)
- Host: IONOS managed WordPress
Steps to reproduce
- Set up a WooCommerce store on WP 7.1.1 with any theme that renders product archives via WooCommerce's default loop.
- Navigate to any product category archive (e.g. /categoria-producto/example/).
- Inspect the DOM with DevTools.
- Search for "ul.products" in the Elements panel.
Expected
The archive renders a <ul class="products"> containing <li class="product"> entries, one per product in the current pagination page.
Actual
No <ul class="products"> element exists in the DOM. DevTools search returns 0 results. The page renders header, breadcrumbs, page title, and footer, but the product grid container is completely absent.
Additional evidence
A staging site restored from a backup taken on WP 7.1 (with the same WooCommerce, same theme, same plugins, same database) shows the product grid working correctly. The only difference between the two environments is the WordPress core version (7.1 vs 7.1.1).
- Live (WP 7.1.1): grid broken.
- Staging (WP 7.1): grid works.
Impact
This is affecting a live e-commerce store. It appears to be a widespread regression affecting any WooCommerce store updated to WP 7.1.1, regardless of theme or plugin combination. Several users have reported similar issues in the WordPress.org support forums.
Request
Please prioritise a patch for WP 7.1.2. The regression likely lies in how the core handles archive WP_Query objects or in the rendering pipeline introduced/changed in 7.1.1.
Happy to provide access to a staging environment with both versions for debugging purposes.
Change History (3)
#2
@
2 months ago
- Keywords reporter-feedback removed
@wildworks thanks for looking into this.
Yes, both environments (live and staging) are on WooCommerce 11.1.1.
However, I should mention that we've since discovered something else: the same URL serves different content depending on whether the visitor has a logged-in cookie or not.
- https://carolamoda.com/categoria-producto/mujer-nt/ → broken (1 product out of 8)
- https://carolamoda.com/categoria-producto/mujer-nt/?nocache=xyz999 → correct (8 products)
This strongly suggests a server-side cache layer serving stale HTML to anonymous visitors. We've reported it to our hosting provider (IONOS).
That said, the Gutenberg issue #44346 you mentioned is very relevant. Let me know if you want me to test with an older WooCommerce (10.9.4 or 11.0.1) on the staging site to confirm whether this is caused by the WooCommerce version.
#3
@
2 months ago
- Milestone Awaiting Review
Just to be sure, are both WooCommerce versions 11.1.1? I ask because a very similar issue was reported at https://github.com/WordPress/gutenberg/issues/44346, where it appears to be caused by the WooCommerce version.
Sorry, that was the wrong link. I meant to share the link to the WooCommerce GitHub repository. https://github.com/woocommerce/woocommerce/issues/68487
Let me know if you want me to test with an older WooCommerce (10.9.4 or 11.0.1) on the staging site to confirm whether this is caused by the WooCommerce version.
Yes, that would be very helpful if you could test it, because as far as I know, no changes have been made in 7.1.1 that would affect the query's behavior.
@xurxobertola, thanks for the report.
Just to be sure, are both WooCommerce versions 11.1.1? I ask because a very similar issue was reported at https://github.com/WordPress/gutenberg/issues/44346, where it appears to be caused by the WooCommerce version.