XML declaration not at beginning of document: some odd in XML (3 posts)

  1. Sergey
    Posted 3 years ago #

    Recently I got errors in my sitemap and RSS feed. The sitemap issue was resolved by changing a plugin in favour of Google XML Sitemap but the problem in the feed is still there.

    Error in the feed:

    error on line 1 at column 30: XML declaration allowed only at the start of the document

    Please take a look at this — I don't think the input thing should be there.

    1: <input type="hidden" name="mytheme_meta_box_nonce" value="d715854c56" /><?xml version="1.0" encoding="UTF-8"?>
    2: <rss version="2.0"
    3: xmlns:content="http://purl.org/rss/1.0/modules/content/"
    4: xmlns:wfw="http://wellformedweb.org/CommentAPI/"


  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Can you manually remove that input field? Nothing should be above the XML declaration.

  3. Sergey
    Posted 3 years ago #


    I don't know where to look and which file to edit...

Topic Closed

This topic has been closed to new replies.

About this Topic