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.
In order to pass the test of clean urls, need to disable maintenance mode. This condition is not obvious and very often leads to waste time for searching for the causes in .htaccess file or server configuration.
I see a very simple solution to this problem is to add an information message about need to turn off maintenance mode.
Comment | File | Size | Author |
---|---|---|---|
#6 | clean_url_message_maintenance_mode-2560975-6-D7.patch | 914 bytes | joel.gilchrist |
#4 | clean_url_message_maintenance_mode-2560975-4-D7.patch | 946 bytes | drupalove |
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedPlease check if this is an issue with Drupal 8. If so, it must be fixed there first according to the backport policy.
Comment #3
drupalove CreditAttribution: drupalove as a volunteer commentedI don't think this issue affects Drupal 8 as it doesn't have a settings page for clean URLs: 'clean_url' configuration setting removed; clean URLs are autodetected each request.
For Drupal 8, it could be an issue during installation, not when the site is put on maintenance mode. Also, see Drupal 8 install does not warn if Clean Urls are not supported (works as designed).
Comment #4
drupalove CreditAttribution: drupalove as a volunteer commentedIf you agree it is needed, I have attached a patch which tells you to go online when clean URLs test fails on maintenance mode.
Comment #5
drupalove CreditAttribution: drupalove as a volunteer commentedComment #6
joel.gilchrist CreditAttribution: joel.gilchrist commentedI think your logic is off a bit. In the case where maintenance mode is not enabled but the clean url test fails there is no message saying 'The clean URL test failed.'
I've reworked the patch - please take a look.
Comment #7
drupalove CreditAttribution: drupalove as a volunteer commentedYes I realised I was wrong after I submitted it and turned off my laptop. Thanks!