Title: Fatal error: Cannot redeclare require_wp_db
Last modified: August 19, 2016

---

# Fatal error: Cannot redeclare require_wp_db

 *  [ereaderguy](https://wordpress.org/support/users/ereaderguy/)
 * (@ereaderguy)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/)
 * I tried to upgrade one of my blogs to 3.1 from 3.0.? (not sure of the specific
   number). Now all I get is this:
 * Fatal error: Cannot redeclare require_wp_db() (previously declared in /home/stephensmith/
   libre.ereaderjournal.com/wp-includes/load.php:323) in /home/stephensmith/libre.
   ereaderjournal.com/wp-includes/functions.php on line 3090
 * I searched the forum and found this post, which may be related: [http://wordpress.org/support/topic/wp-31-pg4wp-cannot-redeclare-class-wpdb?replies=1](http://wordpress.org/support/topic/wp-31-pg4wp-cannot-redeclare-class-wpdb?replies=1)
 * However, I do not understand the answer. What does it mean to re-implement the
   WP 3.1 require_wp_db() function?
 * Does this mean there’s a specific file that I need to download and rewrite (like
   in Notepad)? And does this indeed apply to the error I am getting?
 * Thanks for any help.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/#post-1944268)
 * Your upgrade did not complete successfully.
 * Try:
    – switching to the Twenty Ten theme by renaming your current theme’s folder
   in wp-content/themes using [FTP](http://codex.wordpress.org/FTP_Clients) or whatever
   file management application your host provides. You may need to try logging into
   your site to get this to kick in fully.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin.
 * – re-running the upgrade manually.
 *  Thread Starter [ereaderguy](https://wordpress.org/support/users/ereaderguy/)
 * (@ereaderguy)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/#post-1944286)
 * Thanks esmi.
 * I assume that you meant that if I renamed my current theme’s folder to something
   else (anything else), that WP would default to Twenty Ten as the theme. Otherwise
   I am not sure how to make Twenty Ten my theme, since I cannot log in to wp-admin.
   So … I did rename my current theme’s folder. (The theme was Enterprise, so I 
   named the folder enterprisebak.)
 * I also followed the instructions for resetting my plugins folder, up to the point
   where it said to log in to my wp-admin (which I cannot do).
 * These did not solve my problem, so now I will try the manual upgrade. I assume
   this means finding the WP 3.1 distribution file and using FTP to deploy it in
   my WP directory. Will my database with all my old content be protected if I do
   this?
 * Thanks again.
 *  [WHAMI.ORG](https://wordpress.org/support/users/whamiorg/)
 * (@whamiorg)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/#post-1944551)
 * I am having the same problem…however, I do not know how to do the manual upgrade&
   would like to know if my original content will be lost.
 *  [WHAMI.ORG](https://wordpress.org/support/users/whamiorg/)
 * (@whamiorg)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/#post-1944552)
 * HELP! During an upgrade…something drastically went wrong! I cannot login to my
   wordpress page & I keep getting errors as I try to tweak things to make the code
   work. I am more than willing to completely start over, without losing all of 
   my “stuff” on my site. Can someone help me? I have tried to upgrade manually –
   but the only way I can do this is if I upload one file at a time. I use netfirms
   as my host. I have tried using FileZilla…but I do not know my “host name” to 
   login. I am so beyond upset! I have spent a whole day working on this. WASTED
   a whole day working on this. [http://www.whami.org](http://www.whami.org)
 * Thanks in advance.
 *  [WHAMI.ORG](https://wordpress.org/support/users/whamiorg/)
 * (@whamiorg)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/#post-1944553)
 * anyone??
 *  [WHAMI.ORG](https://wordpress.org/support/users/whamiorg/)
 * (@whamiorg)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/#post-1944554)
 * please?

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

The topic ‘Fatal error: Cannot redeclare require_wp_db’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [redeclare](https://wordpress.org/support/topic-tag/redeclare/)
 * [require_wp_db()](https://wordpress.org/support/topic-tag/require_wp_db/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [WHAMI.ORG](https://wordpress.org/support/users/whamiorg/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-require_wp_db/#post-1944554)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
