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.
When I try to save the options for my survey content type, I got the error message:
An illegal choice has been detected. Please contact the site administrator.
I've attached a PDF of the options I was trying to save. Can you tell me what's wrong?
Comment | File | Size | Author |
---|---|---|---|
#8 | error_when_input_format_full_html_does_not_exists-2014241-8.patch | 7.1 KB | thedut |
OptionsError.pdf | 120.82 KB | monaw |
Comments
Comment #1
thedut CreditAttribution: thedut commentedHello Monaw,
I can not reproduce this issue.
I don't know what is wrong.
Do you still meet this issue ? Is it a permanent issue ?
Comment #2
monaw CreditAttribution: monaw commentedI get the error even if I don't make any changes...simply clicking on "Save content type".
Yes, this is a big issue for me because I can't use it the way it is currently...your help is appreciated.
Comment #3
monaw CreditAttribution: monaw commentedOk, after some debugging, I found out the problem...
The error is coming from Drupal's includes/form.inc _form_validate function:
Looks like it has to do with the text format...in my case, $elements['#value'] = full_html, but there is no $options['full_html'].
Why is this module expecting a "full_html" format? It shouldn't assume. Perhaps add something to your documentation about this?
Comment #4
thedut CreditAttribution: thedut commentedHello,
You should test to save this page as user #1, maybe it will make the difference ?
Comment #5
monaw CreditAttribution: monaw commentedI was user #1.
I believe the issue is that the module assumes there is a text format called "full_html" and in my site, there wasn't. I created one and that solved the problem.
Comment #6
thedut CreditAttribution: thedut commentedYes you right, This is a bug, I'am going to fix it !
The full_html format is provided by default on a fresh Drupal install but I guess you have deleted it.
Comment #7
thedut CreditAttribution: thedut commentedComment #8
thedut CreditAttribution: thedut commentedHere is the fix !
I will include it into the next release (soon !)
Comment #9
thedut CreditAttribution: thedut commentedComment #10
thedut CreditAttribution: thedut commentedFixed into the LimeSurvey_sync v7.x-1.3 and LimeSurvey_Sync v6.x-1.3 releases.
Comment #11
monaw CreditAttribution: monaw commentedthanks thedut!