Illegal Choice Form Error

On occassions you may encounter this form error when saving the theme configuration:

Illegal choice smalltouch-portrait in global_default_layout element.

This error is caused by there being nothing selected for the Global Default Layout. This is easily fixed by location the "Mobile first or Desktop first" setting and making a selection.

In Adaptivetheme 7.x-3.1 and below you will find these settings under: Layout & General Settings > CSS, in later versions this was moved to: Layout & General Settings > Global Settings.

Once you have located the settings check the box for "Change default layout method", then select "Desktop First" and save the configuration.

Note to developers - Drupal can get very angry when there is nothing set for a radio form element and throws this unhelpful error, future versions may try to workaround this in validation.

Last updated 9th March, 2013 - 9:43am