• 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

    �修�了一次。少了一个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++;
    }

    What version of WordPress are you using?

    The same thing happens to me, please refer to http://wordpress.org/support/2/17464

    This is a bug in php’s mysql interface (see 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).

    Changed it in my situation to your php/mysql code but didn’t work, using php 5.03 too here…

    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.