• welsper

    (@welsper)


    The current WordPress beta does not have the dbconnect() function in the b2functions file, which causes the b2archives.php to fail.
    Fix: copy the old b2 function over:
    function dbconnect() {
    global $connexion, $server, $loginsql, $passsql, $base;
    $connexion = mysql_connect($server,$loginsql,$passsql) or die(“Can’t connect to the database server. MySQL said:
    “.mysql_error());
    $connexionbase = mysql_select_db(“$base”) or die(“Can’t connect to the database $base. MySQL said:
    “.mysql_error());
    return(($connexion && $connexionbase));
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Matt Mullenweg

    (@matt)

    Actually b2archives.php is going to be removed from the .71 release because it is made obsolete by the much more flexible get_archives function.

    Thread Starter welsper

    (@welsper)

    Okay, I was upgrading from b2 and noticed this.

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

The topic ‘b2functions.php’ is closed to new replies.