Making WordPress.org

Opened 2 weeks ago

Last modified 3 days ago

#7277 new defect (bug)

Theme Search is broken

Reported by: stiofansisland's profile stiofansisland Owned by:
Milestone: Priority: high
Component: Theme Directory Keywords:
Cc:

Description

Context: I initially found this bug when searching for my theme "School" (https://wordpress.org/themes/school/)

Visiting this page via a link (or page refresh) https://wordpress.org/themes/search/school/
Shows only 9 themes and no load more button and it does not show my theme.
https://wpgeodirectory.com/wp-content/uploads/2023/09/school-search-page-refresh.png

However, if you visit another search page first such as https://wordpress.org/themes/search/go/ and THEN search "school" from there, it brings you to the exact same URL but

  1. The themes are different (my theme shows)
  2. It shows 12 themes instead of the original 9
  3. It shows the load more button.

https://wpgeodirectory.com/wp-content/uploads/2023/09/school-search-from-another-search-result.png

However, if you refresh the page, it returns to the broken version of the search.

This is repeatable with other words such as "news".

Sometimes during my repeated searching it would work intermittently, which makes me think it could be related to a caching issue as well as something else.

All testing was done logged out.

Attachments (6)

school-direct-link.jpeg (80.2 KB) - added by stiofansisland 4 days ago.
School theme search from a direct link
school-searched-from-another-theme-page.png (331.4 KB) - added by stiofansisland 4 days ago.
School theme search when done from another theme page (this is the correct results)
news-direct.jpeg (86.2 KB) - added by stiofansisland 4 days ago.
news theme search from a direct link
news-searched-from-another-theme-page.png (519.5 KB) - added by stiofansisland 4 days ago.
news theme search when done from another theme page (this is the correct results)
directory-direct.jpeg (73.5 KB) - added by stiofansisland 4 days ago.
directory theme search from a direct link
directory-searched-from-another-theme-page.png (405.2 KB) - added by stiofansisland 4 days ago.
directory theme search when done from another theme page (this is the correct results)

Download all attachments as: .zip

Change History (23)

This ticket was mentioned in Slack in #meta by stiofansisland. View the logs.


2 weeks ago

This ticket was mentioned in Slack in #meta by stiofansisland. View the logs.


10 days ago

#3 @Otto42
10 days ago

Theme search seems fine, and that theme is the first one that shows up.

#4 @stiofansisland
10 days ago

Yeah its tricky as sometimes it work, which make some think its some sort of caching issue...

Other keywords that seem to break ofter are
https://wordpress.org/themes/search/news/
https://wordpress.org/themes/search/directory/

You will know it's broken if there is no load more button.

Thanks for giving this some attention.

#5 @stiofansisland
9 days ago

School seems to be back to broken now too https://wordpress.org/themes/search/school/

You can see the wrong results using the WP screenshot tool:
https://wordpress.com/mshots/v1/https://wordpress.org/themes/search/school/?w=825&h=430

@stiofansisland
4 days ago

School theme search from a direct link

@stiofansisland
4 days ago

School theme search when done from another theme page (this is the correct results)

@stiofansisland
4 days ago

news theme search from a direct link

@stiofansisland
4 days ago

news theme search when done from another theme page (this is the correct results)

@stiofansisland
4 days ago

directory theme search from a direct link

@stiofansisland
4 days ago

directory theme search when done from another theme page (this is the correct results)

This ticket was mentioned in Slack in #meta by stiofansisland. View the logs.


4 days ago

#8 @paulkevan
4 days ago

This isn't broken, but the expected results.

Sometimes when the Elasticsearch (which powers the theme directory search) doesn't return results (for a few reasons), it defaults to the WordPress standard search, which only takes into account the query sent, so results in what is seen when the school theme returns first.

#9 @stiofansisland
4 days ago

That page shows 9 resutls and no "Load more" button, so just 9 results which does not include the theme with the slug "school". So if you land on that search page there is NO WAY to find the theme with the slug "school", i'd call that very broken...

Here is a web archive link showing that it only shows 9 themes and no load more (so no way to find the theme with slug "school" as well as many many others).
https://web.archive.org/web/20230926133925/https://wordpress.org/themes/search/school/

As mentioned on slack, if enough people visit that page in a short period of time it then seems to work as expected, which makes me think its a caching issue, but I guess the first hurdle is trying to get some one to belive this is actually a bug :(

#10 @stiofansisland
3 days ago

Another way to replicate...

Go to any theme page eg: https://wordpress.org/themes/go/
In the theme search box enter "school", this shows the correct results. Then simply hit "enter" and the page loads with the wrong results which are limited to 9 themes with no load more button anymore.

#11 @stiofansisland
3 days ago

The second most popular theme on wp.org can't be found with the search term "hello"
https://web.archive.org/web/20230927110945/https://wordpress.org/themes/search/hello/

This ticket was mentioned in Slack in #meta by stiofansisland. View the logs.


3 days ago

#13 follow-up: @dufresnesteven
3 days ago

Thanks for the ticket @stiofansisland.

I see that searching for uppercase "School" and lowercase "school" returns different results and that is unexpected. 👍

#14 in reply to: ↑ 13 ; follow-up: @stiofansisland
3 days ago

Replying to dufresnesteven:

Thanks for the ticket @stiofansisland.

I see that searching for uppercase "School" and lowercase "school" returns different results and that is unexpected. 👍

I think that is just a byproduct of repeating your search, I don't see a difference with the bug with case.

Last edited 3 days ago by stiofansisland (previous) (diff)

#15 in reply to: ↑ 14 ; follow-ups: @dufresnesteven
3 days ago

Replying to stiofansisland:

Replying to dufresnesteven:

Thanks for the ticket @stiofansisland.

I see that searching for uppercase "School" and lowercase "school" returns different results and that is unexpected. 👍

I think that is just a byproduct of repeating your search, I don't see a difference with the bug with case.

Incorrect, regardless of the number of page reloads, the result sets always differ:

#17 in reply to: ↑ 15 @stiofansisland
3 days ago

@dufresnesteven this is just another symptom of the bug, if too many people start loading that page it then WORKS (as mentioned previously).

NOW it seems to work for those specific words because we are all checking it, but in a few hours, it will be broken again.

Check the screenshot of the lowercase school, I bet its different than what you currently are seeing https://wordpress.com/mshots/v1/https://wordpress.org/themes/search/school/?w=825&h=430

"directory" is still currently broken

https://wordpress.org/themes/search/Directory/
https://wordpress.org/themes/search/directory/

Last edited 3 days ago by stiofansisland (previous) (diff)
Note: See TracTickets for help on using tickets.