Title: install.php failed
Last modified: August 18, 2016

---

# install.php failed

 *  34010493
 * [21 years, 8 months ago](https://wordpress.org/support/topic/installphp-failed/)
 * i got a error page while install at step 3â€¦
    after debug the prog. i found ./
   wp-includes/wp-db.php has some problemâ€¦ I donâ€™t know why, but mysql_fetch_field
   donâ€™t work in my serverâ€¦. ORG: while ($i < @mysql_num_fields($this->result)) {
   $this->col_info[$i] = @mysql_fetch_field($this->result); $i++; } $num_rows = 
   0; while ( $row = @mysql_fetch_object($this->result) ) { $this->last_result[$
   num_rows] = $row; $num_rows++; } CHANGETO: while ($i < @mysql_num_fields($this-
   >result)) { $this->col_info[$i] = @mysql_fetch_assoc($this->result); $i++; } 
   $num_rows = 0; $this->result = @mysql_query($query,$this->dbh); while ( $row 
   = @mysql_fetch_object($this->result) ) { $this->last_result[$num_rows] = $row;
   $num_rows++; } then the bug fixed.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter Anonymous
 * [21 years, 8 months ago](https://wordpress.org/support/topic/installphp-failed/#post-86191)
 * Ã¥?Ë†Ã¤Â¿Â®Ã¦â€?Â¹Ã¤Âºâ€ Ã¤Â¸â‚¬Ã¦Â¬Â¡Ã£â‚¬â€šÃ¥Â°â€˜Ã¤Âºâ€ Ã¤Â¸â‚¬Ã¤Â¸Âªquery
    $num_rows = 0; while ( $row = @mysql_fetch_object(
   $this->result) ) { $this->last_result[$num_rows] = $row; $num_rows++; } while(
   $i < @mysql_num_fields($this->result)) { $this->col_info[$i] = @mysql_fetch_assoc(
   $this->result); $i++; }
 *  [korgan](https://wordpress.org/support/users/korgan/)
 * (@korgan)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/installphp-failed/#post-86198)
 * What version of WordPress are you using?
 *  [moltar](https://wordpress.org/support/users/moltar/)
 * (@moltar)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/installphp-failed/#post-86721)
 * The same thing happens to me, please refer to [http://wordpress.org/support/2/17464](http://wordpress.org/support/2/17464)
 *  [kindermaur](https://wordpress.org/support/users/kindermaur/)
 * (@kindermaur)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/installphp-failed/#post-86725)
 * This is a bug in phpâ€™s mysql interface (see [http://bugs.php.net/bug.php?id=31288](http://bugs.php.net/bug.php?id=31288)).
   I just tracked it down and reported it to Zend. If you build your own PHP from
   source, the workaround is to comment out line 2250 of ext/mysql/php_mysql.c (
   in version 5.0.3) and rebuild (it crashes because this line â€˜s referencing a 
   pointer that hasnâ€™t been set).
 *  [darkmoonwolf](https://wordpress.org/support/users/darkmoonwolf/)
 * (@darkmoonwolf)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/installphp-failed/#post-86726)
 * Changed it in my situation to your php/mysql code but didnâ€™t work, using php 
   5.03 too hereâ€¦
 *  [mikesab](https://wordpress.org/support/users/mikesab/)
 * (@mikesab)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/installphp-failed/#post-86774)
 * I can attest that this code changed worked for me.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic â€˜install.php failedâ€™ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 6 participants
 * Last reply from: [mikesab](https://wordpress.org/support/users/mikesab/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/installphp-failed/#post-86774)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
