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.
I am using webform 8.x-5.0-beta12. I randomly got issue when I update the webform settings, please see the attached screenshots.
An illegal choice has been detected. Please contact the site administrator
Comment | File | Size | Author |
---|---|---|---|
#6 | Screen Shot 2017-05-01 at 12.07.03 AM.png | 95.66 KB | yi_jiang |
#3 | Screen Shot 2017-04-30 at 11.38.56 PM.png | 56.54 KB | yi_jiang |
Screen Shot 2017-04-30 at 11.09.12 PM.png | 28.65 KB | yi_jiang | |
Screen Shot 2017-04-30 at 11.09.05 PM.png | 25.89 KB | yi_jiang |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedDid you execute all pending database updates?
Try running `drush webform-repair` and see if the error is resolved.
Comment #3
yi_jiang CreditAttribution: yi_jiang commentedPHP Fatal error: Class 'Cache' not found in /var/www/html/modules/webform/drush/webform.drush.inc on line 697\
after drush webform-repair
------------
This problem causes the form settings cannot save.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedCan you also run `drush cache clear`.
Comment #5
yi_jiang CreditAttribution: yi_jiang commenteddrush cr
Cache rebuild complete.
did several times, no issue.
Comment #6
yi_jiang CreditAttribution: yi_jiang commentedcommit out line 697 in webform.drush.inc, drush form-repair running no issue, however the form setting still got same issue as I mentioned in the top, and cannot save.
I think it only happened after I did webform update recently.
Comment #7
yi_jiang CreditAttribution: yi_jiang commentedRedownload and switch dev version 8.x-5.0-beta12+11-dev solved the issue, It might be problem from webform update.
The other issue I got is to disable webform, please see: https://www.drupal.org/node/2874153
Comment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer commentedNext time this happens, please upload your webform.settings.yml and we can try to figure out which setting is throwing the error.
Comment #9
yi_jiang CreditAttribution: yi_jiang commentedwhere is webform.settings.yml file?
Comment #10
vacho CreditAttribution: vacho as a volunteer commentedHi, #7 doesn't work for me, and it is my yml
mmm it Form worked fine 2 months ago and after I update the webform module it fail when save settings.
agencia:
'#type': entity_select
'#title': Agencia
'#target_type': node
'#selection_handler': 'default:node'
'#selection_settings':
target_bundles:
agencia: agencia
sort:
field: title
direction: ASC
nombre_o_razon_social:
'#type': textfield
'#title': 'Nombre o Razon Social'
'#title_display': inline
tipo_de_reclamante:
'#type': select
'#title': 'Tipo de reclamante'
'#options':
'Persona natural': 'Persona natural'
'Persona jurídica': 'Persona jurídica'
'Apoderdado persona natural': 'Apoderado persona natural'
tipo_documento:
'#type': select
'#title': 'Tipo documento'
'#options':
CI: CI
RUN: RUN
NIT: NIT
identificacion:
'#type': textfield
'#title': Identificación
extendido:
'#type': select
'#title': Extendido
'#options':
BE: Beni
CB: Cochabamba
CH: Chuquisaca
LP: 'La Paz'
OR: Oruro
PA: Pando
PO: Potosi
SC: 'Santa Cruz'
TJ: Tarija
nombre_del_representante_o_apoderado:
'#type': textfield
'#title': 'Nombre del Representante o Apoderado'
no_de_testimonio_de_poder:
'#type': textfield
'#title': 'Nº de Testimonio de Poder'
direccion:
'#type': textfield
'#title': Dirección
'#description': 'Ciudad, Zona, Calle-Nº, Edificio, Piso-Nº'
telefono_domicilio:
'#type': textfield
'#title': 'Teléfono domicilio'
celular:
'#type': textfield
'#title': Celular
correo_electronico:
'#type': email
'#title': 'Correo electrónico'
fecha_del_hecho_que_motiva_el_reclamo:
'#type': date
'#title': 'Fecha del hecho que motiva el reclamo'
'#date_date_format': 'l d F Y'
moneda:
'#type': select
'#title': Moneda
'#options':
Bs: Bolivianos
USD: 'Dólares Americanos'
monto:
'#type': textfield
'#title': Monto
descripcion_del_reclamo_y_o_solicitud:
'#type': textarea
'#title': 'Descripción del reclamo y/o solicitud'
'#rows': '5'
Comment #11
vacho CreditAttribution: vacho as a volunteer commentedmmm
This problem has been solved for me when Desactivate "Draft Settings" at settings of form
Comment #12
Odiak CreditAttribution: Odiak commented#11 worked for me too