Hello!

Using the MERCI Calendar view I am sporadically getting the following error: "An illegal choice has been detected. Please contact the site administrator." I am new to drupal and php, and am looking for advice on how to debug this issue.

I am using MERCI 6.x-2.0+2-dev and my calendar has an exposed filter for reserved item_nid. On my site, I link to various filtered views of the calendar by passing this query string '?item_nid=' and occassionally following one of these links leads to the aforementioned error.

I have checked my merci_reservation_item_node table during the error and the item that I'm trying to filter by is in the table. While the error appears the desired item does not appear in the exposed filter select list, and it also does not appear in the select list when you try to make a reservation.

I have been unsuccessful in determining the trigger for this error, it just seems to appear at random.

Typically the error is usually gone within about ten minutes of its appearance. I know that the error is thrown from my form.inc file when it tries to validate the choice, but I'm afraid that's all I know.

Any advice on how to debug this error would be greatly appreciated. And please let me know if you have any questions about the error or if you need me to clarify something.

Thank you in advance for your assistance.

Comments

Stefan Lehmann’s picture

Normally that error is thrown by Views because an argument passed in via the URL is invalid. Compare a link where this error is thrown with one where it is working correctly. There must be a difference in the URL or the argument. It can also be that the argument itself is undefined and not valid.

I like cookies!