Make WordPress Core

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#1928 closed defect (bug) (worksforme)

Reference to NULL in "query" function of "wp-db.php" file

Reported by: nima_dezhkam Owned by: mdawaffe
Milestone: Priority: high
Severity: major Version: 1.5.2
Component: Administration Keywords: Incomplete Installation, Reference to Null bg|has-patch
Focuses: Cc:


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:

    $this->col_info[$i] = @mysql_fetch_field($this->result);

Attachments (1)

1928.diff (489 bytes) - added by mdawaffe 8 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Nima Dezhkam8 years ago

  • Component changed from General to Administration
  • Priority changed from normal to high

comment:2 davidhouse8 years ago

  • Keywords bg|has-patch added

mdawaffe8 years ago


comment:3 mdawaffe8 years ago

  • Milestone set to 2.0.5
  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

Perhaps 1928.diff?

  1. initialize col_info as array.

comment:4 markjaquith8 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.

comment:5 mdawaffe8 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 :)

comment:6 matt7 years ago

  • Resolution set to worksforme
  • Status changed from assigned to closed

comment:7 Nazgul7 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.