Opened 3 months ago
Closed 2 months ago
#62089 closed defect (bug) (reported-upstream)
site editor, "all template parts" empty list in UI. Requires browser refresh
Reported by: | rickers | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.7 |
Component: | Editor | Keywords: | has-testing-info |
Focuses: | ui | Cc: |
Description
This behavior can be caused by:
- display all patterns: Appearance -> Editor -> Patterns -> "All patterns"
- display page 2. (the themeunittestdata has enough patterns for 2 pages)
- select "All template parts" Observe the empty list displayed. Browser refresh restore the list.
Attachments (4)
Change History (17)
@
2 months ago
Test Report comment:2: 2nd page of Patterns > All patterns (without having to refresh the browser)
#2
@
2 months ago
- Keywords reporter-feedback added
Hello @rickers,
Welcome to WordPress Core's Trac. I'm sorry to hear you are having difficulty with your site after updating to 6.6.2.
I'm not able to reproduce this issue (see test report).
Does this issue persist today for you?
If yes:
- Which theme are you using?
- Does it happen with a specific browser?
- Are there any errors in the browser's console and/or in the server logs?
- Is it an intermittent issue, meaning sometimes it works without refreshing the browser?
#3
@
2 months ago
Hi! Thank you for looking at this... I am so embarrassed that I forgot to mention that this happens in "list" view, not "grid" view, my bad. Consistent behavior, always.
Upon checking my procedure, I've sadly left out some steps.
So, now the corrected procedure to cause the incorrect out put is this:
(changes in bold)
- Log into your test site.
- Go to Appearance > Editor
- In the Design menu, select Patterns. By default, All patterns is selected and the first page of patterns displays in the content window.
3A. Select "table" view.
- Navigate the next page using the pagination at the bottom of the editor.
4A. Now select "all template parts" (all template parts does not have 2 of parts)
- 🐞 Bug occurs. As no template patterns display in the table (there is only 1 page of template patterns to display)
Steps 6 and 7, below, are informational. The bug appeared in step 5
- Refresh the browser. (in 6.2.2 this worked, stayed in table view and showed list) (6.6.3-alpha-59007 switches back to grid view)
- Repeat step 4. 2nd page of patterns should render.
#4
@
2 months ago
- Keywords reporter-feedback removed
Thank @rickers. No worries. I appreciate you following up to share the steps. Will retest.
#5
@
2 months ago
Reproduction Report
This report validates that the issue can be reproduced.
Environment
- OS: macOS
- Web Server: Nginx
- PHP: 8.3.8
- WordPress: 6.6.2
- Browser: Firefox 131.0
- Theme: Twenty Twenty-Four
- Active Plugins: None
Steps to Reproduce
- Log into your test site.
- Go to Appearance > Editor
- In the Design menu, select Patterns. By default, All patterns is selected and the first page of patterns displays in the content window.
- In the "View options", set the Layout to Grid.
- Navigate the next page using the pagination at the bottom of the editor.
- 🐞 Bug occurs. As no patterns display.
Expected Results
- Step 6: Patterns should render after navigating to the next page.
When reproducing a bug:
- ❌ Step 6: patterns list should be empty, no patterns rendered.
Actual Results
- ✅ Step 6: Patterns rendered as expected.
See it action https://a.supportally.com/v/60JEVr.
I'm unable to reproduce the reported issue.
Observations
What happens when changing the "Items per page" (in "View options") to 50 or 100?
All of the patterns rendered on the 1st page. The pagination at the bottom did not render.
When switching it back to 10 or 20 items per page, the pagination rendered and the 2nd page rendered as expected.
#6
@
2 months ago
- Keywords reporter-feedback added
@rickers I'm not still not able to reproduce the issue. I added a video to show how it's working for me (see comment:5).
To help investigate, please share the following:
- What is the "Items per page" option set to? The out-of-the-box default is
20
.
If greater than 20, what happens when you set it to 20?
- Which theme are you using?
- Does it happen with all plugins deactivated? (as a plugin may have a conflict)
- Which browser are you using? Does it happen with a specific browser?
- Are there any errors in the browser's console?
Thank you.
#7
@
2 months ago
Thanks Tonya, I'm a noob here, so am still getting my wings. Apologies.
I'll add some screen shots (which are supposedly worth 1000 words).
(This bugs occurs in grid mode too - shown in screenshots)
- My setup is now 6.7-beta2 with onlty the beta tester plugin. No others.
- My theme is Twenty Twenty-Five.
- The content is the "themeunittest.xml" downloaded mid September.
About as stock as I could make it.
See Screenshot1.jpg and note the following:
- 69 "All Patterns", 4 pages, this is page 2
- only 5 "All Template parts" Only enough for one page.
Screenshoot2.jpg is the result of clicking on "All Template Parts"
Observe "no Results".
My diagnosis:
It seems simple! The page displayed is retained from the "All Patterns" when clicking "All Template Parts", but "all Template Parts" only has one page, so, No results on page 2 (actually "no page 2), but it should be displaying page one because there isn't a page two.
If one wants to retain the page being displayed, it should be associated with the list, not global to the "Patterns" page.
If I knew where to look in the code it seems it might be simple, but I'm just beginning my WP journey, and enjoying it quite a bit. Thanks for looking, it's really kind of a nit. But it tripped me up at first.
Thanks!
@
2 months ago
Hello @hellofromTonya, I’ve attached a video demonstrating the entire issue that @rickers is trying to explain. I was able to successfully reproduce the issue in the latest version of WordPress with no active plugins. I will also write a test report based on the video. I kindly request that you modify the ticket title and reproduction steps by referencing the attached video. Thank you!
#8
@
2 months ago
Reproduction Report
This report validates that the issue can be reproduced.
Environment
OS: unbuntu
Web Server: Apache
PHP: 8.1.2
WordPress: 6.7 latest
Browser: Chrome
Theme: Twenty Twenty-Five
Active Plugins: None
Steps to Reproduce
1) Log into your test site.
2) Go to Appearance > Editor
3) In the Design menu, select Patterns. By default, the template parts have 5 templates showing
4) In the "View options", set the Layout to Grid.
5) Go into all patterns.
6) Navigate the next page using the pagination at the bottom of the editor.
7) Select the all template parts tab
🐞 Bug occurs. As no patterns display.
Expected Results
Step 7: Patterns should render after switching to All template parts tab.
When reproducing a bug:
✅ Step 7: patterns list is shown empty, no patterns are rendered.
Actual Results
I'm able to reproduce the reported issue.
#9
@
2 months ago
- Milestone changed from Awaiting Review to 6.7
- Version changed from 6.6.2 to trunk
Moving to 6.7 and setting Version to “trunk”, as this appears to be isolated to the TwentyTwentyfive theme.
cc @hellofromTonya @poena
#10
@
2 months ago
Please note that this does happen and is repeatable on 6.6.2 with Twenty Twenty-Four; 6.7-beta2 with 2025, 2024 and 2023 themes (didn't try others). As far as I know the status changes are appropriate, but it is not limited to the 2025 theme.
#11
@
2 months ago
- Resolution set to invalid
- Status changed from new to closed
Hello @johnjamesjacoby,
i have reported this Bug in the gutenberg respository https://github.com/WordPress/gutenberg/issues/66009 and fixed it with the following PR https://github.com/WordPress/gutenberg/pull/66022
Reproduction Report
This report validates that the issue can be reproduced.
Environment
Steps to Reproduce
Expected Results
When reproducing a bug:
Actual Results
I'm unable to reproduce the reported issue.