Ticket #1928 (closed defect (bug): worksforme)

Opened 6 years ago

Last modified 5 years ago

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

Reported by: nima_dezhkam Owned by: mdawaffe
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

1928.diff Download (489 bytes) - added by mdawaffe 5 years ago.
array

Change History

  • Priority changed from normal to high
  • Component changed from General to Administration
  • Keywords bg|has-patch added

array

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

Perhaps 1928.diff?

  1. initialize col_info as array.
  • 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 :)

comment:6   matt5 years ago

  • Status changed from assigned to closed
  • Resolution set to worksforme
  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.