WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Warning file_get_contents

[Resolved] Warning file_get_contents

  • I am relatively new to WordPress, as I have just moved from blogger.

    From Saturday, i have noticed the following error message showing up on every page of my site:

    Warning file_get_contents

    and the following:

    (http://24365online.com/_YTG_yu/_dl/get_info.php?host=farmboyandcitygirl.com&referer=http:^^farmboyandcitygirl.com^wp^&visitor_ip=211.253.179.34) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /webroot/f/a/farmb002/primary/www/wp/wp-includes/general-template.php on line 60

    The url of my site is

    http://farmboyandcitygirl.com/wp/

    I have read in other topics that it might have something to do with the plugins I have installed, so I have deleted the latest plug ins I had installed since Saturday.

    Please help me, this is so frustrating!!!

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Something is wrong with your footer. Line 60 shows this:

    function get_footer( $name = null ) {
    	do_action( 'get_footer', $name );
    
    	$templates = array();
    	if ( isset($name) )
    		$templates[] = "footer-{$name}.php";
    
    	$templates[] = "footer.php";
    
    	// Backward compat code will be removed in a future release
    	if ('' == locate_template($templates, true))
    		load_template( ABSPATH . WPINC . '/theme-compat/footer.php');
    }

    Whatever your footer has in it, whether it be a widget, or plugin. But it’s trying to get the contents of a page from another site and displays it there. I would try commenting out everything in your footer.php file and see if you still get the error.

    Thank you so much for that reply JohnnyWhite2007.

    Il try that now!

    Hi again JohnnyWhite2007,

    Im not sure what exactly “commenting out everything in your footer.php file” means.

    I have no widgets installed in the footer, and as far as I know, no plugins either. So I’m really not sure what could have caused this error.

    Thanks for the help!

    Try this, rename the footer.php file to something like footer.php.bak and then create a new blank footer.php file. Then see if you get the error. If not, then it’s something wrong with that file, otherwise there may be something else at hand.

    For some reason it’s all fixed 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Warning file_get_contents’ is closed to new replies.