Title: &quot;Couldn&#039;t find database wpstats_db&quot; error
Last modified: August 20, 2016

---

# "Couldn't find database wpstats_db" error

 *  Resolved [nobody00](https://wordpress.org/support/users/nobody00/)
 * (@nobody00)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/)
 * hi guys i have this error on my website from almost a week
    Couldn’t connect 
   to database server.Couldn’t find database wpstats_db.An unexpected problem has
   occured with the application. SELECT statscurl_id FROM `statscurl` WHERE statscurl_ip
   = ”;
 * It doesnt apper every time, i must to refresh more times to apper
    I deleted 
   all my plugins and the erros is still there Can anyoane help me? Thanks

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

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684127)
 * `statscurl_id` is not in any WordPress file AFAIK.
 * Have you reverted to the twentyeleven theme to rule out a theme problem?
 *  [maiainternetconsulting](https://wordpress.org/support/users/maiainternetconsulting/)
 * (@maiainternetconsulting)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684196)
 * I think this might have to do with the WP Super Cache plugin if you have that
   installed. Here is what I did and it went away. FYI if you do a search on the
   error there are over 31 thousand sites affected. Anyway, the first thing I did,
   because I saw a lot of people suggesting it had to to with Akismet I deactivated
   and removed that plugin and installed Spam Free WordPress instead. That did not
   stop the error, so I am not sure that is the problem. So, then I looked at the
   WP Super Cache plugin and did the following:
 * 1. Clicked on Delete cache from the setting page.
    2. Deactivated the plugin 
   3. Re-Activated the plugin and reset the settings 4. Clicked on Delete cache 
   again for good measure and the warning went away.
 * I am not sure if this works for everyone but these were the things that helped
   me, this is the only site I am seeing the problem on, and I don’t have WP cache
   on all my sites, so cannot test if this is a solution that can be replicated.
 *  [kinger12](https://wordpress.org/support/users/kinger12/)
 * (@kinger12)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684202)
 * Go to your themes header file and look for something along the lines of this 
   and delete it.
 * [http://pastebin.com/VVwccUY1](http://pastebin.com/VVwccUY1)
 *  [maiainternetconsulting](https://wordpress.org/support/users/maiainternetconsulting/)
 * (@maiainternetconsulting)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684214)
 * That is not in the themes header.php file – it is only generated dynamically 
   when the plugin is active. Just an FYI.
 *  Thread Starter [nobody00](https://wordpress.org/support/users/nobody00/)
 * (@nobody00)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684215)
 * i resolved guys thanks for help
 *  [maiainternetconsulting](https://wordpress.org/support/users/maiainternetconsulting/)
 * (@maiainternetconsulting)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684216)
 * npbody00 – can you post what you found out as I think there are going to be a
   lot of others looking for the solution – thanks!
 *  Thread Starter [nobody00](https://wordpress.org/support/users/nobody00/)
 * (@nobody00)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684217)
 * i paid someone to solve it, i dont know what he did there, but i’m sure it was
   from my template because when i change it the error disapeared
 *  [P3air](https://wordpress.org/support/users/p3air/)
 * (@p3air)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684349)
 * we found, that the culprit for this issue is/was the file
 * **jquery-1.6.3.min.js**
 * It didn’t play well with W3TC and GravityForms. Enabling the ‘non-conflict’ mode
   in GF did the trick for us.
 * Hope that helps

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

The topic ‘"Couldn't find database wpstats_db" error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 5 participants
 * Last reply from: [P3air](https://wordpress.org/support/users/p3air/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/couldnt-find-database-wpstats_db-error/#post-2684349)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
