
There is some duplicate text in an error message that can occur during the install process:
In order for Drupal to work, and to continue with the installation process, you must resolve all issues reported below. For more help with configuring your database server, see the Installation and upgrading handbook. If you are unsure what any of this means you should probably contact your hosting provider.
Failed to connect to your MySQL database server. MySQL reports the following message: SQLSTATE[28000] [1045] Access denied for user 'rooot'@'localhost' (using password: NO).
- Are you sure you have the correct username and password?
- Are you sure that you have typed the correct database hostname?
- Are you sure that the database server is running?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
This patch removes the second instance of the sentence "For more help [...] your hosting provider."
Comment | File | Size | Author |
---|---|---|---|
#21 | db_missing_helptext-6.patch | 1.48 KB | David_Rothstein |
#20 | db_missing_helptext-5.patch | 1.54 KB | David_Rothstein |
#18 | db_missing_helptext-4.patch | 1.54 KB | reglogge |
#18 | db_missing_helptext-4.png | 93.88 KB | reglogge |
#15 | db_missing_helptext_3.png | 93.95 KB | reglogge |
Comments
Comment #1
marcvangendYoroy asked me to post a screenshot of the error message, so here it is.
PS. we should keep in mind that this is obviously not the only possible error.
Comment #2
yoroy CreditAttribution: yoroy commentedHey thanks, subscribing for now…
Comment #3
reglogge CreditAttribution: reglogge commentedRerolled the patch with three changes:
- patched against current HEAD
- entirely removed the paragraph after the list of suggestions (entire paragraph was duplicate)
- added one item to the list asking the user to check whether the database exists at all or whether he misspelled the database name (we do the same for db-username and password). This is a quite common hiccup during install, so I think it belongs in there.
Screenshot attached.
Comment #4
tstoecklerIf it's
and
it should also be
I would actually suggest replacing
with , but in any case all three should be consistent.Comment #5
reglogge CreditAttribution: reglogge commentedThanks for noting this.
Reroll attached.
Had to change the first line to prevent line wrapping.
Comment #6
tstoecklerOne other thing concerning consistency:
The last three sentences start with , while the first one doesn't. This should be consistent.
My vote is to kill the , because it looks really weird to have four lines below each other that have the same three words.
Therefore my proposal is:
Manually edited the patchfile with the above text.
Comment #7
tstoecklerI just realized that there's a nasty thing called string freeze, so this probably sends us back to the initial patch. Well, not for me to decide anyways...
Comment #9
reglogge CreditAttribution: reglogge commentedrerolled with text from #6, attached screenshot.
Comment #10
reglogge CreditAttribution: reglogge commentedcome on, bot!
Comment #11
marcvangendGreat to see that this issue is picked up again, I must admit that I forgot about it. I just noticed that there is another duplication that is not yet solved by this patch. The black-on-white title above the error massages is pretty much the same as the first sentence in the orange box. I'm not really sure which one should be removed, we probably have too look at the code to see where each sentence is created and why.
Comment #12
retester2010 CreditAttribution: retester2010 commented#9: db_missing_helptext-2.patch queued for re-testing.
Comment #14
reglogge CreditAttribution: reglogge commentedre #11: The black-and-white title isn't in Drupal core anymore, so I've rerolled the patch from #9 against the current HEAD. Patch attached.
Comment #15
reglogge CreditAttribution: reglogge commentedadded a screenshot...
Comment #16
yoroy CreditAttribution: yoroy commentedThanks for the reroll, applied the patch, it works. This issue is about removing the duplicate text only, and for that it is RTBC.
Before: http://skitch.com/yoroy/dp9kc/dberror-before
After: http://skitch.com/yoroy/dp9mb/dberror-after
#639368: Contrast between error and link colour causes death to eyeballs Should take care of actual readability of the message! :)
Comment #17
avpadernoIf we are going to change the text, then we should re-order the suggestions.
should be the first one.Comment #18
reglogge CreditAttribution: reglogge commentedrerolled the patch according to #17s suggestion, which makes sense...
I also switched around the last two entries suggested by #17 since for entering the hostname, the user would have to open the fieldset "Advanced options" first. Also I think, the three other possible errors are way more common than a false hostname which is "localhost" most of the time anyway.
Comment #19
avpadernoThe order of the suggestions is much better, now. I agree that a wrong username (or password) is an error more common than entering a wrong hostname, as in most cases the database server runs in the same domain where Drupal is installed.
Comment #20
David_Rothstein CreditAttribution: David_Rothstein commentedLooks great to me too. There is a missing comma after "Does the database exist", though. I fixed it in the attached.
It occurs to me that the intro paragraph beginning with "In order for Drupal to work" is a little oddly-worded also, but we can address that in a separate issue.
Comment #21
David_Rothstein CreditAttribution: David_Rothstein commentedEr, wait a second. Both of the last two patches introduced indentation errors. Here it is without those.
Comment #22
David_Rothstein CreditAttribution: David_Rothstein commentedI created #863594: Strange first paragraph in the installer database error message for the issues with the intro paragraph.
Comment #23
dries CreditAttribution: dries commentedLooks good. Committed to CVS HEAD. Dankuwel.
Comment #24
marcvangendWow, just returned from a short holiday, and suddenly this is committed :-) Thanks everyone!