#1928 closed defect (bug) (worksforme)
Reference to NULL in "query" function of "wp-db.php" file
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | high | |
| Severity: | major | Version: | 1.5.2 |
| Component: | Administration | Keywords: | Incomplete Installation, Reference to Null 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". 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);
}
Attachments (1)
Change History (8)
#1
@
20 years ago
- Component changed from General to Administration
- Priority changed from normal to high
#3
@
19 years ago
- Milestone set to 2.0.5
- Owner changed from anonymous to mdawaffe
- Status changed from new to assigned
Perhaps 1928.diff?
- initialize col_info as array.
#4
@
19 years ago
- Milestone changed from 2.0.5 to 2.1
Old ticket, and I haven't heard anything about this since. I'm loathe to put this into 2.0.5 without being absolutely sure that it won't have side effects.
#5
@
19 years ago
I've never heard of this except in this ticket either. Hoping someone else could replicate this, my patch is a complete shot in the dark.
That said, I don't think there should be any side effects.
That said, I don't have any clue why I set the milestone to 2.0.5. Either my head or finger slipped :)
array