WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning file_get_contents (6 posts)

  1. citygirl
    Member
    Posted 3 years ago #

    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!

  2. JohnnyWhite2007
    Member
    Posted 3 years ago #

    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.

  3. citygirl
    Member
    Posted 3 years ago #

    Thank you so much for that reply JohnnyWhite2007.

    Il try that now!

  4. citygirl
    Member
    Posted 3 years ago #

    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!

  5. JohnnyWhite2007
    Member
    Posted 3 years ago #

    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.

  6. citygirl
    Member
    Posted 3 years ago #

    For some reason it's all fixed :)

Topic Closed

This topic has been closed to new replies.

About this Topic