On the admin/hosting/aliases page, the form cannot be submitted with an empty value for hosting_alias_subdomain.

function hosting_alias_settings_validate($form, $form_state) {
  if (!valid_url($form_state['values']['hosting_alias_subdomain'])) {
    form_set_error('hosting_alias_subdomain', t('The provided domain is invalid.'));
  }
}

This bug appears to have been introduced with #2183551: Validate automatic domain field.

Comments

mrP created an issue. See original summary.

mrP’s picture

For those needing a workaround in the interim, here are the variables that can be adjusted with drush.

drush vset "hosting_alias_automatic_www"
drush vset "hosting_alias_automatic_no_www"

  • helmo committed 1b014af on 7.x-3.x
    Issue #2827248: hosting_alias_settings_validate does not allow empty...
helmo’s picture

Status: Active » Fixed

Thanks for reporting ... I've now added an empty() check.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.