User doesn't see full list of themes
When Jessica Murray, a CAC user, goes to the dashboard of her website on the Commons, she sees only 20 or so themes, even though we have 50-odd themes available. Luke and I are meeting her and she showed us what she is seeing.
Luke just advised her to do a hard-refresh, and that solved the problems, but it worries me a bit that she would have to do a hard refresh to see the full list of themes available. Boone, do you have a sense of what might be going on?
#1 Updated by Boone Gorges over 3 years ago
Info about available themes is loaded into a JS variable at the time of page initialization. It's not fetched by AJAX.
It's hard to tell for sure without more information about what you were seeing, but from the number 20 I'm guessing that some other script on the page was breaking WP's theme "pagination". (It's not "pagination" in the sense that you go to a second page; but themes.php initializes the first 20 themes into the theme list at the time of page load, and does the next 20 once you've scrolled far enough.) You don't mention whether a soft refresh was attempted but didn't work, but if that's the case, it could be that the browser had previously cached a version of a plugin script (or something) that was causing a JS error on the page, which was late enough to allow the initial rendering of themes, but prevented the pagination method from running. A hard refresh would've cleared this cached broken script.
#3 Updated by Jessica Murray about 3 years ago
A soft refresh works, but I noticed it only loads an additional 20 themes (I have to refresh when I scroll down to the bottom of the first 20, then scroll down and refresh again when those are loaded).
Here's the JS error
jquery.js?ver=1.12.4-1.13.6:3 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
#5 Updated by Jessica Murray about 3 years ago
It's on https://jtds.commons.gc.cuny.edu/wp-admin/themes.php. Do I need to add you as an administrator, or can you access it?
#8 Updated by Boone Gorges about 3 years ago
Thanks, Jessica. I'm still not seeing the error, on a machine with a similar configuration. I also don't see the console error you've mentioned. This suggests it's either linked to your account, or tied to some extension or browser customization you're running.
Could you test on another machine, or on another browser - or even a private/incognito window - to see if the same behavior persists?
Also, could you confirm that you are going to Dashboard > Appearance, and scrolling down the page, and you reach the bottom after the first 20 alphabetical themes?
#9 Updated by Jessica Murray about 3 years ago
When I didn't initially see any flags, I changed the JS console settings in Chrome to "Verbose" under "All Levels" to see the error. I think you're right that it is an extension that is causing the problem. I still have to refresh when I open a new session on both PC and Mac, but not in incognito. I will try to figure out which extension is causing the problem, but it's probably not a common issue.