Make WordPress Core

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#1928 closed defect (bug) (worksforme)

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

Reported by: nima_dezhkam's profile nima_dezhkam Owned by: mdawaffe's profile mdawaffe
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)

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

Download all attachments as: .zip

Change History (8)

#1 @Nima Dezhkam
20 years ago

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

#2 @davidhouse
20 years ago

  • Keywords bg|has-patch added

@mdawaffe
19 years ago

array

#3 @mdawaffe
19 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.

#4 @markjaquith
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 @mdawaffe
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 :)

#6 @matt
19 years ago

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

#7 @Nazgul
18 years ago

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