Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nima_dezhkam

    (@nima_dezhkam)

    Problem Solved. I followed the execution of the installer to find the problem. To resolve the problem (avoiding a reference to NULL) I changed a line of code in function “query” of “wp-db.php” file as follows:

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

    [new code=]
    if($this->col_info){
    $this->col_info[$i] = @mysql_fetch_field($this->result);
    }

    The version of MySQL I’m using is 4.0.24
    and the version of my PHP is 5.0.4
    and the version of my WordPress is 1.5.2

    Regards,
    Nima Dezhkam.

    Thread Starter nima_dezhkam

    (@nima_dezhkam)

    To make it more clear, in “install.php” after the email being sent, the function call of “upgrade_all” (this function is defined in “upgrade-function.php”) leads to call of “populate_options” (this function is defined in “upgrade-schema.php”) , and then it leads to call of “add_option” (this function is defined in “functions.php”), and it leads to call of “get-var” (this function is defined in “wp-db.php”).

    This is where it stops. In this line if “get-var” function:

    if ( $query )
    $this->query($query);

    Any help is very much appreciated.
    Nima Dezhkam.

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