WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Error message suddenly appeared on site (4 posts)

  1. Wombo55
    Member
    Posted 5 years ago #

    The following message suddenly appeared on my site a few days ago:


    Warning: fclose(): supplied argument is not a valid stream resource in /home/wandandi/public_html/wp-content/themes/dream-on/dream-on/header.php(25) : eval()'d code on line 1

    I haven't done any updating in the last couple of weeks and am wondering why this should suddenly appear. Apart from the fact that I don't have a clue what the message means, is it something to do with validation?

    My site is http://www.wandandian.org.au and I am using the dream-on theme by WPDesigner.

    Any help would be appreciated

  2. Ben Sutcliffe
    Member
    Posted 5 years ago #

    Your host might have changed it's PHP version and/or php.ini settings. If you know what you're doing consult the php.net manual to find a work-around and check your function is correctly opened and closed. Also, if it's a function that came in the theme then you might want to check the WPDesigner web site for an upgrade.

    If the error isn't upsetting the look, feel and functionality of your blog then you can hide the message by putting
    <?php error_reporting(0); ?>
    at the very top of header.php, but that isn't solving the problem - just running away from it.

  3. Wombo55
    Member
    Posted 5 years ago #

    Thanks for your suggestions bsutcliffe. I know virtually nothing about php so am reticent to touch anything there. However I did insert the code you recommended and it has hidden the error message, but as you said it hasn't solved the problem.

  4. Ben Sutcliffe
    Member
    Posted 5 years ago #

    If you click the link to the theme from Dashboard - Appearance you might find a link to the theme homepage where you can download another copy (possibly fixed) and so overwrite the error.

Topic Closed

This topic has been closed to new replies.

About this Topic