Pager randomly breaks on search results page

Created on 16 April 2024, 10 months ago

Problem/Motivation

While browsing the search results on the core search module page /search/node, the number of the pages and search results are reduced on some pages randomly. Refreshing the page fixes this.

Steps to reproduce

  • Enable core search module.
  • Index content to have hundreds of search results for a specific keyword.
  • Search the keyword and browse the pages.

Pagination before breaking

Pagination broken after clicking next page

Pagination after refreshing the broken page

Proposed resolution

N/A

Remaining tasks

Find the root cause

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
SearchΒ  β†’

Last updated 1 day ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @pwolanin
Created by

πŸ‡ΉπŸ‡·Turkey makbay

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @makbay
  • What is the database type? Are there only core modules installed on the site?

  • πŸ‡ΉπŸ‡·Turkey makbay

    Database is 10.3.39-MariaDB.

    No, contrib modules are also installed.

  • Status changed to Postponed: needs info 10 months ago
  • I cannot reproduce this as written. Here is what I did:

    • Started a Drupal 10 site at http://simplytest.me/ with the Devel module included.
    • Enabled the devel_generate module.
    • Generated 300 nodes.
    • Ran cron three times, to index the nodes.
    • Searched for "sed". This returned 28 pages of results.
    • Clicked the "next" pager several times, as the administrator and also as an anonymous user.

    We are going to need steps to reproduce that make the random nature of the bug repeatable. This seems possibly some kind of caching issue particular to that site's code or configuration, or it could be something else. I am certain the definitive cause can be found.

    When validated steps to reproduce are recorded, someone please set the issue status to "Active" and remove the "Needs steps to reproduce" tag.

  • πŸ‡³πŸ‡±Netherlands johnv

    This seems like a special case , that is reported multiple times on other issues.
    ATM I am pruning these issues, make all these issues start with 'Pager'.
    You should be able to replicate the problem by just creating an own view with a pager, relevant fields, (exposed) sorting and (exposed) filter.

Production build 0.71.5 2024