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?
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.
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.