Steps 8 and 9 of upgrade.txt seem to be unclear and confusing. Here's how it reads now:
6. Remove all old files and directories from the Drupal installation directory.
7. Unpack the new files and directories into the Drupal installation directory.
8. Copy your backed up "files" and "sites" directories to the Drupal
installation directory. If other system files such as .htaccess or
robots.txt were customized, re-create the modifications in the new
versions of the files using the backups taken in step #1.
9. Verify the new configuration file to make sure it has correct information.
In step 8, it just says to copy the entire "sites" directory to the new installation without mentioning settings.php. In step 9, it says to verify the "new configuration file" but if I've followed step 8 correctly, I have a sites/default directory with an old settings.php file and a new default.settings.php file.
At this point I'm confused. Should I actually have copied the old settings.php file to the new sites/default? Or should there be a step to copy the default.settings.php file to settings.php and make the changes in the new settings.php.
Also in step 9 we should call it "sites/default/settings.php" rather than "the new configuration file". I know at the beginning we explain what the configuration file is, but its not obvious to the novice reader by the time they reach this point. We might also want to say something more specific like "Verify that sites/default/settings.php has the correct database connection information.".
Comment | File | Size | Author |
---|---|---|---|
#6 | UPGRADE.txt.patch | 10.97 KB | LeeHunter |
#5 | UPGRADE.txt | 6.71 KB | LeeHunter |
#4 | UPGRADE.txt | 6.58 KB | LeeHunter |
Comments
Comment #1
LeeHunter CreditAttribution: LeeHunter commentedAlso I'm wondering whether it's actually necessary to restore the old modules before running update.php. This writer (http://becircle.com/how_upgrade_drupal_5_drupal_6_steps_3_and_4_actual_u...) says to remove the old modules:
"Please note that by restoring your 'sites' folder you will also be restoring the 'modules' folder(s) contained within it. Since this is coming from your backup, those modules folder(s) will contain modules for Drupal 5.x. Therefore, it is a good idea to empty out the modules folder(s) you have under the sites folder before moving onto the next steps. This will reduce the likelihood that you accidentally leave and old Drupal 5.x version of a module in place and forget to replace it with its Drupal 6.x version. Or worse, by leaving the folders in place, you may accidentally merge the contents of the Drupal 6.x version of a module folder with the old Drupal 5.x version."
If this is the case, what is the point of removing the modules and then putting them back only to remove them again later?
Comment #2
LeeHunter CreditAttribution: LeeHunter commentedAnd two more small things.
We should write "the new version of Drupal" or "the updated version of Drupal" wherever we current have "your version of Drupal". In this context, the word "your" is really ambiguous and distracting since we are actually wanting to draw attention to the need for compatibility with the new version ("your" could mean both the new and old versions).
It would also be good if there were a more meaningful heading. Right now there's nothing to indicate that this is the specific upgrade.txt file that goes with Drupal 6. During my own upgrade process I've had both the d5 and d6 installers floating around and at least once I've opened up the d5 version by mistake and didn't realize it until I started getting very confused. If there was a heading that said "Drupal 6 Upgrade Instructions" it might avoid that problem (at least when it comes to upgrading to d7).
Comment #3
LeeHunter CreditAttribution: LeeHunter commentedI'm bumping up the priority on this to critical, because the more I look at this, the more I realize that this file is dangerously misleading and incomplete. Following it faithfully can lead to all sorts of painful problems or outright failure.
The problem is that it very casually suggests backing up your old modules, copying in the upgrade files, putting back your modules and running update.php.
First of all, you can't just copy back your old module files. Most people will probably realize this but it still shouldn't be written this way.
Secondly, as I'm learning now as I flounder through my first major upgrade (thank God for test sites), you can't just toss in all of the upgraded modules all at once and run update.php. From everything I'm now reading this is dead wrong. According to this Best Practices page (http://drupal.org/node/29161), you should upgrade and activate modules one at time. In fact, the upgrade.txt file for CCK goes further to say specifically to leave all of the contrib modules OUT of the directory until the core modules are running and even then only copy the main CCK module over and do the upgrade for it before moving on to the other CCK modules. It goes on to say that modules get upgraded in the database when they're in the modules directory even if they are not enabled.
If this is correct, then I think this file should be fixed ASAP (as in the next point release if possible)
Comment #4
LeeHunter CreditAttribution: LeeHunter commentedOk, I've done a major rewrite of this file (see attached) which I think has addressed the above issues.
I am definitely NOT an expert on installing or upgrading Drupal, so it really needs careful review by people who actually know what they're doing. Some things I've added are definitely an improvement but other changes may be suspect.
In particular, I'm not at all sure that the way I've broken out steps for minor and major upgrades is correct.
Comment #5
LeeHunter CreditAttribution: LeeHunter commentedMissed a couple of steps.
Comment #6
LeeHunter CreditAttribution: LeeHunter commentedThis is my first ever attempt at doing a real patch so I have no idea whether or not I've done it correctly. But here it is, for what it's worth.
Comment #7
JohnFilipstadmoving to Drupal project
Comment #8
flickerfly CreditAttribution: flickerfly commentedThe wording this bug desires to replace is consistent in the 7.x version of the Drupal. The patch for D6 does not apply to D7 as some changes to that document have occurred in the D7 branch
I'm not sure about calling it Critical, but I'll leave that for someone else.
Here is the change log on that file since the patch was created. (This is from the git repo.)
Comment #10
jerdiggity CreditAttribution: jerdiggity commented+1 on the non-critical part (#8)
Adding to the list found here
Comment #11
jhodgdonbump
Comment #12
yettyn CreditAttribution: yettyn commentedMaking this a duplicate in favour of #295255: Clean-up the upgrade path: UPGRADE.txt, let's focus the energy to sort out this (important) document once and for all!