• I recently tried to check my website’s feed, and got an error. When I ran the site through a feed validator this was the response:

    XML parsing error: <unknown>:2:0: xml declaration not at start of external entity

    <!–script language=”javascript” type=”application/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script–&gt;
    <?xml version=”1.0″ encoding=”UTF-8″?><rss version=”2.0″
    xmlns:content=”https://purl.org/rss/1.0/modules/content/&#8221;

    That commented out line of jQuery seems to be what’s throwing it off, and it turns out it’s appearing in the code of my site, at the very very top of the page before the doctype. I can’t find the source of it, it’s not in any of my theme files, and it’s driving me nuts!

    I’ve tried:
    – Deactivating all plugins. Renaming the plugins folder. Checking plugins against other sites using the same plugins, looking for that stray tag. Looking through the individual php files in the plugins. Nada.
    – Searching the database for any reference to jQuery
    – Checked the basic WordPress core files
    – Checked and rechecked my theme files.

    I’ve never seen this before and I’m out of ideas where to look for it. Anyone have any ideas? I’d appreciate any pointers!

Viewing 1 replies (of 1 total)
  • Hi jessn,

    Looks like something is incorrectly trying to enqueue jQuery. Unfortunately, it may be pretty difficult to track down. Have you tried simultaneously changing to a WordPress default theme such as Twenty Ten/Eleven/Twelve and deactivating all plugins?

    Also, can you provide a link to your site?

Viewing 1 replies (of 1 total)
  • The topic ‘Random jQuery in top of page, above doctype’ is closed to new replies.