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.

CommentFileSizeAuthor
search-users-illegal-choice-detected.png69.73 KBjaapjan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jaapjan created an issue. See original summary.

jaapjan’s picture

Issue summary: View changes
jaapjan’s picture

Logs:

Illegal choice in created_op element.

On URL:
search/users?created%5Bmax%5D=&created%5Bmin%5D=&created%5Bvalue%5D=&created_op&expertise&geolocation_geocoder_address=&interests&login_op&page=1&proximity=&proximity-lat=&proximity-lng=
xinyuma’s picture

maybe it links to the registration date filter?

jaapjan’s picture

Assigned: Unassigned » jaapjan
jaapjan’s picture

Assigned: jaapjan » Unassigned

Found 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

jaapjan’s picture

I'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..

ronaldtebrake’s picture

Status: Active » Fixed

Merged in 6.4 and 7.x :)

  • ronaldtebrake authored 0985a99 on 8.x-7.x
    Merge pull request #1539 from goalgorilla/feature/3085806
    
    Issue #...
  • jaapjan committed 8c1a6b8 on 8.x-7.x
    Issue #3085806 by jaapjan, xinyuma, ronaldtebrake: Pagination does not...

  • ronaldtebrake committed 7081467 on 8.x-6.x authored by jaapjan
    Issue #3085806 by jaapjan, xinyuma, ronaldtebrake: Pagination does not...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.