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.
Every time I do a cvs update on head, and settings.php gets overwritten I end up back in the installer when I goto my test site. I enter the database data again, and then it forwards me to a page telling me to edit my settings php, or empty my database.....
I think the most common reason people will over write their settings php is on an untar upgrade. And they are most likely updating their site... So maybe we should add some text to the affect that if they're upgrading they should visit update.php... attached is a patch.
Comment | File | Size | Author |
---|---|---|---|
#7 | installer-to-update.patch_1.txt | 975 bytes | dopry |
#6 | Screenshot-installer-dberr-patched.png | 82.23 KB | dopry |
#5 | Screenshot-installer-dberr.png | 77.95 KB | dopry |
#1 | installer-to-update.patch_0.txt | 968 bytes | dopry |
installer-to-update.patch.txt | 1.13 KB | dopry |
Comments
Comment #1
dopry CreditAttribution: dopry commentedUnConed, thought saying 'the update script' would be better than update.php. I also split the options into individual
tags... A
may be better. I also stripped out my password['#required'] => FALSE. Thats for another patch.
Comment #2
dopry CreditAttribution: dopry commentedthat markup was p and ul respectively.
Comment #3
dopry CreditAttribution: dopry commentedumm yeah, and status...
additional.. The current state of the error page(pre-patch) is if your settings.php is works, and you have a database.
It suggests you update your settings.php db_name, or empty your database. If you check you settings.php verify that it is correct and reload the install.php page, its show the same two options and you've eliminated the settings.php issue, the remaining option is... empty your database....
I don't think we should suggest a user nuke their database if it exists and it can be connected to...
This patch basically adds a third option which is update.php...
--dopry, the pendantic
Comment #4
Dries CreditAttribution: Dries commentedThe generated HTML doesn't look 100% valid to me. Some strings have paragraph-tagss, others have not.
Care to provide a screenshot (before and after)? Does would help people review the proposed changes. Thanks!
Comment #5
dopry CreditAttribution: dopry commentedHere's a screen shot of the original error.
Comment #6
dopry CreditAttribution: dopry commentedHere's a screenshot with the patch...
Comment #7
dopry CreditAttribution: dopry commentedAnd here's a patch with the <p> tags fixed up.
Comment #8
dopry CreditAttribution: dopry commentedand here it is set back to needing review... talk about incrementals.
Comment #9
Dries CreditAttribution: Dries commentedCommitted a modified version to CVS. :)
Comment #10
(not verified) CreditAttribution: commented