Title: b2functions.php
Last modified: August 18, 2016

---

# b2functions.php

 *  [welsper](https://wordpress.org/support/users/welsper/)
 * (@welsper)
 * [23 years ago](https://wordpress.org/support/topic/b2functionsphp/)
 * 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](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [23 years ago](https://wordpress.org/support/topic/b2functionsphp/#post-21713)
 * 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](https://wordpress.org/support/users/welsper/)
 * (@welsper)
 * [23 years ago](https://wordpress.org/support/topic/b2functionsphp/#post-21724)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [welsper](https://wordpress.org/support/users/welsper/)
 * Last activity: [23 years ago](https://wordpress.org/support/topic/b2functionsphp/#post-21724)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
