Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When using the pagination in the search Users page you see an error: "An illegal choice has been detected. Please contact the site administrator." It most likely has to do with the exposed filters.
Steps to reproduce are:
- Go to search/users
- Click on page 2
- You’ll see an error and no results: An illegal choice has been detected. Please contact the site administrator.
Proposed resolution
Look into the issue and make sure there is proper default filter available so the error will be resolved.
Comment | File | Size | Author |
---|---|---|---|
search-users-illegal-choice-detected.png | 69.73 KB | jaapjan |
Comments
Comment #2
jaapjan CreditAttribution: jaapjan for Open Social commentedComment #3
jaapjan CreditAttribution: jaapjan for Open Social commentedLogs:
Comment #4
xinyuma CreditAttribution: xinyuma commentedmaybe it links to the registration date filter?
Comment #5
jaapjan CreditAttribution: jaapjan for Open Social commentedComment #6
jaapjan CreditAttribution: jaapjan for Open Social commentedFound some more information, but so far no solution.
The problem was introduced in Open Social 6.2 due to this feature:
https://www.drupal.org/project/social/issues/3073513
Comment #8
jaapjan CreditAttribution: jaapjan for Open Social commentedI've created a temp solution here:
https://github.com/goalgorilla/open_social/pull/1539
As the issue is in Drupal core it will need a better solution at one point..
Comment #9
ronaldtebrake CreditAttribution: ronaldtebrake as a volunteer and for Open Social commentedMerged in 6.4 and 7.x :)