• Resolved nima_dezhkam

    (@nima_dezhkam)


    Hi everyone,
    My installation isn’t completeted. I traced the process by putting logs, and as I got the install.php script executes and creates the tables in the database and after that sends an email containing my username and password, but then after that when it calls “upgarde_all” function and the consequent function calls it stops at the following block in “add_option” function which is at \wp-includes\functions.php
    The block is:

    if( !$wpdb->get_var(“SELECT option_name FROM $wpdb->options WHERE option_name = ‘$name'”) ) {
    $name = $wpdb->escape($name);
    $value = $wpdb->escape($value);
    $description = $wpdb->escape($description);
    $wpdb->query(“INSERT INTO $wpdb->options (option_name, option_value, option_description, autoload) VALUES (‘$name’, ‘$value’, ‘$description’, ‘$autoload’)”);

    Can anyone please help me figure out what possibly coud have made this problem.
    Thanks,
    Nima Dezhkam.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incomplete Installation’ is closed to new replies.