Forums

b2functions.php (3 posts)

  1. welsper
    Member
    Posted 8 years ago #

    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));
    }

  2. Matt Mullenweg
    Troublemaker
    Posted 8 years ago #

    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.

  3. welsper
    Member
    Posted 8 years ago #

    Okay, I was upgrading from b2 and noticed this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.