Ticket #1928 (closed defect (bug): worksforme)
Reference to NULL in "query" function of "wp-db.php" file
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Administration | Version: | 1.5.2 |
| Severity: | major | Keywords: | Incomplete Installation, Reference to Null bg|has-patch |
| 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
Change History
comment:1
Nima Dezhkam — 6 years ago
- Priority changed from normal to high
- Component changed from General to Administration
- Owner changed from anonymous to mdawaffe
- Status changed from new to assigned
- Milestone set to 2.0.5
Perhaps 1928.diff?
- initialize col_info as array.
comment:4
markjaquith — 5 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.
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 :)

