WordPress.org

Ready to get started?Download WordPress

Forums

Help with RSS error XML parsing error: :4574:0: junk after document ele (15 posts)

  1. BrooklynMike
    Member
    Posted 2 years ago #

    I'm getting this error when validating my rss feed:

    Sorry

    This feed does not validate.

    line 4573, column 0: XML parsing error: <unknown>:4574:0: junk after document element [help]

    </rss>

    The line looks like this:
    </rss>
    <script type="text/javascript" src="http://www.daysofyorr.com/release.js"></script>

    I have tried disabling all plugins and switching to the default theme, and none of that worked. I've checked all of the .php files in my theme for invalid text and I have not found any.

    What am I missing?

  2. BrooklynMike
    Member
    Posted 2 years ago #

    I also did a reinstall of WordPress and that didn't help.

  3. BrooklynMike
    Member
    Posted 2 years ago #

    I also looked at the tables in my database and didn't find anything odd.

    If my site has been hacked, should I delete all the wordpress files and start from scratch?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    site url?

  5. BrooklynMike
    Member
    Posted 2 years ago #

    Thanks I found the problem. The index.php file was modified, there was a bunch of encrypted code there that added to the end of the RSS feed and caused it to be invalid. I also checked every file in the themes (header.php, footer.php, etc) and saw the same code and removed it.

    Question--does anyone know how those files can be changed? Could it have been done by a plugin?

  6. esmi
    Forum Moderator
    Posted 2 years ago #

  7. BrooklynMike
    Member
    Posted 2 years ago #

    Great. Thank you for the tips.

  8. nichter98
    Member
    Posted 2 years ago #

    Hey Mike, I am having the same issue with http://www.daysofyorr.com/release.js"></script> Trying to install an SSL and Chrome keeps popping this up. What exactly go I need to look for in index.php?

  9. nichter98
    Member
    Posted 2 years ago #

    Is this it?

    [Code moderated]

  10. BrooklynMike
    Member
    Posted 2 years ago #

    can you post the contents of your index.php file, I don't remember the exact code that I deleted from mine. I know it had a line of encrypted text that I found in other files as well.

  11. BrooklynMike
    Member
    Posted 2 years ago #

    yep! that's it! get rid of all of that stuff & change your blog's password asap!

  12. esmi
    Forum Moderator
    Posted 2 years ago #

  13. nichter98
    Member
    Posted 2 years ago #

    on it now, thanks guys. No idea how that happened. Mike you using woocommerce by any chance?

  14. nichter98
    Member
    Posted 2 years ago #

    ugh, now I am getting this when I visit the site:

    Parse error: syntax error, unexpected '<' in /home/content/36/8964836/html/wp-content/themes/abundance/page.php on line 21

  15. nichter98
    Member
    Posted 2 years ago #

    nevermind got that taken care of. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.