• Resolved wombo55

    (@wombo55)


    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 https://www.wandandian.org.au and I am using the dream-on theme by WPDesigner.

    Any help would be appreciated

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter wombo55

    (@wombo55)

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error message suddenly appeared on site’ is closed to new replies.