Opened 20 years ago
Closed 19 years ago
#1939 closed defect (bug) (worksforme)
Reference to NULL in "query" function of "wp-db.php" file leads to incomplete installation
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | high | |
| Severity: | minor | Version: | 1.2 |
| Component: | Administration | Keywords: | Null, incomplete install, blank login page, bg|has-patch |
| Focuses: | Cc: |
Description
When installing WordPress 1.5.2 (MySQL 4.0.24 and PHP 5.0.4), call of function "upgrade_all" in "install.php" and the consequent function calls lead to a reference to NULL in the "query" function in "wp-db.php". So that, although the success email with username/password is sent to the user, the installation is not complete, and login page appears to be blank. The line referencing to NULL is:
$this->col_info[$i] = @mysql_fetch_field($this->result);
So I put a check before this line. The new code is:
if($this->col_info){
$this->col_info[$i] = @mysql_fetch_field($this->result);
}
Change History (2)
Note: See
TracTickets for help on using
tickets.
Changing to minor as it obviously doesn't happen for the large majority of people