• Resolved 7thwraith

    (@7thwraith)


    While trying to validate a feed through W3C service, I got the following error message.

    line 136, column 0: XML parsing error: <unknown>:137:0: junk after document element

    Looking at the lines, I found out the line 136 is normal. Line 137 seems to be the one causing my feed to go haywire. You can look at the validation of the feed here.

    https://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fheysayanime.kokidokom.net%2Ffeed

    and feed address is

    https://heysayanime.kokidokom.net/feed

    Because of this, feed readers are not able to parse my feed. I’ve been trying to get the cause of this problem by looking at the feed php scripts in my wp-includes folder, but to no avail.
    I also tried to switch themes; that too did not work unfortunately.

    I have tried to diagnose the problem but only been able to figure out the following so far.

    1. I don’t think it’s my webhost’s fault (that would be Bluehost) since I have other wordpress installations there as well. If anything, their feed should have been affected.

    2. I’m suspecting the cause to be either the theme or the plugins that were imported via FTP. I got to this conclusion while constantly recreating (and destroying) the particular WordPress installation (along with
    the subdomain and the ftp it’s associated with) so many times, I’ve noticed the feed only goes haywire after I installed both themes and plugins. As of last night’s reinstallation, I’ve decided to use a new theme and everything seems to be working fine.
    Only this morning after installing plugins I was able to find out the my feed stopped validating and working (because of Line 137).

    And no, deactivating the plugins does not change anything.

    Here are the following plugins I’ve installed..

    Akismet version 2.2.3

    WordPress.com Stats version 1.3.7

    WordPress.com Stats Helper version 0.5.5.3

    WP-Stats-Dashboard version 1.5.4

    This is a very urgent matter. Any help appreciated! Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • iridiax

    (@iridiax)

    The suspicious looking javascript at the end of the feed appears to be what’s causing the problem.

    iridiax

    (@iridiax)

    Added: The suspicious hacker-like javascript is on your site as well.

    Thread Starter 7thwraith

    (@7thwraith)

    Thanks for the reply. Yes, the last line in the feed validator (the javascript) is indeed what’s causing the problem.

    The thing is, I do not know what file is running this javascript. If anything, I’m suspecting two of the plugins, particularly

    WordPress.com Stats Helper version 0.5.5.3 and WP-Stats-Dashboard version 1.5.4

    Thread Starter 7thwraith

    (@7thwraith)

    Added: The suspicious hacker-like javascript is on your site as well.

    Where in my site specifically?

    Thanks again.

    iridiax

    (@iridiax)

    View your browser source code and you’ll see it at the very bottom. It looks like a hack to me. I don’t know if it came with a naughty theme/plugin or not.

    esmi

    (@esmi)

    The code is in both your RSS feed and right across your site. The last line of every output file. It does look like a hack but then javascript is not my thing…

    Thread Starter 7thwraith

    (@7thwraith)

    The code is in both your RSS feed and right across your site. The last line of every output file. It does look like a hack but then javascript is not my thing…

    Thanks esmi! That gave me a clue on how to apply a temporary solution to get rid of the script. Turns out every index.php file in that subdomain was infected with that script. So all I did was remove that script.

    For now, the only thing I’ve done to avoid this from happening again is change the FTP password for this account, disable anonymous FTP and disable indexing. I’ll keep you guys posted if anything.

    Thanks everyone!

    I seem to be having a similar problem. I have something preventing my site’s validation, a specific line of code, but I can’t find it anywhere in my source code. please help I am a total newbie at site management!

    https://feedvalidator.org/check.cgi?url=http%3a%2f%2ffuzakenna.com%2ffeed%2f

    it’s also worth mentioning my host is 50gigs, so could that be the problem?

      TRY turning OFF all plugins related to feeds: For example “@feed”
      Then TURN OFF any global plugin that manages javascript: such as “JavaScript to Footer”
      Validate the RSS feed again.
      Then TURN BACK ON your plugins.

    It worked for me.

    I enjoy @feed and javascript to footer thanks to those authors who put their time and effort into creating those plugins.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Feed does not validate: XML parsing error: <unknown>:137:0: junk after document’ is closed to new replies.