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 you enter incorrect database credentials at install time, you receive:
Warning: mysqli_error() [function.mysqli-error]: invalid object or resource mysqli in /Users/webchick/Sites/head/includes/install.mysqli.inc on line 39
Warning: Cannot modify header information - headers already sent by (output started at /Users/webchick/Sites/head/includes/install.mysqli.inc:39) in /Users/webchick/Sites/head/includes/common.inc on line 141
Comment | File | Size | Author |
---|---|---|---|
#6 | drupal-mysql_connect_error-172433-6.patch | 2.01 KB | webchick |
#3 | mysqli_connect_error_0.patch | 2.98 KB | chx |
#2 | mysqli_connect_error.patch | 1.62 KB | chx |
#1 | mysqli_error_no.patch | 1.54 KB | chx |
Comments
Comment #1
chx CreditAttribution: chx commentedcalling mysqli_error with a FALSE is not a good idea.
Comment #2
chx CreditAttribution: chx commentedfurther research finds a specific mysqli function for this purpose.
Comment #3
chx CreditAttribution: chx commentedThere is another occurence of this.
Comment #4
webchickWorks. :) Thanks, chx.
Comment #5
Gábor HojtsyQuite simple and logical. Committed.
Comment #6
webchickWe missed a couple more of these that I didn't see during my initial tests.
Comment #7
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #8
(not verified) CreditAttribution: commented