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.
If the following happens:
- Server does not have SSL enabled
- Platform is created on said server that does not have SSL enabled
- Create a new site and select to enable SSL, and pick the platform on a server that does not have SSL enabled
Upon submission, the error that comes up is, "Please choose a valid profile" and "Please choose a valid platform." These errors are quite ambiguous for the actual problem at hand.
When this situation occurs, the user should understand the problem is related to enabling SSL.
Comment | File | Size | Author |
---|---|---|---|
#7 | form_error_message_is-2069431-7.patch | 1.53 KB | helmo |
#6 | form_error_message_is-2069431-6.patch | 1.49 KB | helmo |
Comments
Comment #1
helmo CreditAttribution: helmo at Initfour websolutions commentedThe form error has been fixed since ... but it can still be confusing.
A user who 'just' enables the hosting feature 'SSL' could use some extra hints to what the next steps should be ...
Comment #2
helmo CreditAttribution: helmo at Initfour websolutions commentedI've committed a hook that sets two messages.
See http://cgit.drupalcode.org/hosting/commit/?id=a6496b9
Comment #3
helmo CreditAttribution: helmo at Initfour websolutions commentedTagging...
Please feel free to re-open if a problem remains ... or if you have a suggestion to improve the messages.
Comment #4
ergonlogicThis is still an issue. It occurs if the SSL Hosting feature is enabled, but no servers provide an ssh http service. It blocks installation of sites, as you cannot submit the form without errors being flagged. The errors are not at all helpful.
Comment #6
helmo CreditAttribution: helmo at Initfour websolutions commentedHere's an extra patch to show a hint on the site edit form, and hide the bogus "(key deleted)" line on the site view page.
I could not reproduce the original form error, so I assume that's fixed.
Comment #7
helmo CreditAttribution: helmo at Initfour websolutions commentedOn a site node create form we do not know if the platform that will be selected in on a server with SSL support.
I guess we would have to default to $ssl_available = TRUE;
updated patch.
Comment #8
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedComment #9
helmo CreditAttribution: helmo at Initfour websolutions commentedno longer applies
Comment #11
helmo CreditAttribution: helmo at Initfour websolutions commentedI've re-worked it a bit and committed.
Also opened a merge request for the replacement https implementation: https://gitlab.com/aegir/hosting_https/merge_requests/6