When I expose the "Items Per Page" filter on the pager, I get this on-screen error:
An illegal choice has been detected. Please contact the site administrator.
And this in the error log:
Illegal choice 100 in Per page element.
It happens with both the full and mini pager. It doesn't show on initial page load, only after the Apply button is clicked.
This may be a duplicate of #1177882: Exposed filters fire "An illegal choice has been detected. Please contact the site administrator." error, I wasn't sure since it only involves the pager filter, the 4 other exposed filters work fine until this is added.
Comment | File | Size | Author |
---|---|---|---|
#10 | 1274300-items-per-page.patch | 1.08 KB | dawehner |
#8 | 1274300-items-per-page.patch | 1.08 KB | dawehner |
#2 | exported-view-1274300.txt | 43.71 KB | OldAccount |
Screen shot 2011-09-09 at 11.03.49 AM.jpg | 115.86 KB | OldAccount |
Comments
Comment #1
dawehnerCan you export please a view which is reusable? This would be great and your 50% to fix the bug :)
Comment #2
OldAccount CreditAttribution: OldAccount commentedOops, my apologies. Here's the exported view, hope that helps.
Comment #3
OldAccount CreditAttribution: OldAccount commentedExported view provided in previous comment, forgot to change status back to active.
Comment #4
dawehnerMh this export is quite complex so it's not possible to reuse, but it gives some informations. I tryed to rebuild a view based on this, but sadly it works as expected.
Comment #5
dawehnerSo i can't reproduce the problem :(
Comment #6
esmerel CreditAttribution: esmerel commentedComment #7
tobiasbNeeds a validation, that the value of the option "Items per page" is also in list "Exposed items per page options".
Comment #8
dawehnerThanks for this excellent hint! Here is a patch which validates the settings.
Comment #9
tobiasbPatch from #8 works for me.
perhaps a whitespace before (@items_per_page) would be nice ;-)
Comment #10
dawehnerOh right this looks kind of odd
Comment #11
tobiasbNice ;-)
Comment #12
dawehnerThanks for the review and the perfect line
Committed to 7.x-3.x and 6.x-3.x
Comment #13.0
(not verified) CreditAttribution: commentedadding additional error msg and fixing issue link