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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chx’s picture

Status: Active » Needs review
FileSize
1.54 KB

calling mysqli_error with a FALSE is not a good idea.

chx’s picture

FileSize
1.62 KB

further research finds a specific mysqli function for this purpose.

chx’s picture

There is another occurence of this.

webchick’s picture

Title: mysqli: wrong password at install time causes warning » mysqli: Invalid credentials at install time causes warning
Status: Needs review » Reviewed & tested by the community

Works. :) Thanks, chx.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Quite simple and logical. Committed.

webchick’s picture

Status: Fixed » Reviewed & tested by the community
FileSize
2.01 KB

We missed a couple more of these that I didn't see during my initial tests.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)