• Resolved Icethrill

    (@icethrill)


    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://localhost/pancake/feed/
    Line Number 3, Column 1:<?xml version="1.0" encoding="UTF-8"?>
    ^

    It gives out this error, the WordPress automade feed aint working for me. Any ideas to what could be the problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Icethrill

    (@icethrill)

    Has anyone come across a similiar error? After some research I think its due to whitespaces. But I don’t understand how to fix this error. This Parsing Error is giving me an headache!

    Have tried changing to a default theme, so it aint a theme problem. I deactivated all plugins, still not working. So its not a plugin nor a theme interfering.

    Thread Starter Icethrill

    (@icethrill)

    I fixed it, followed this list:

    https://feedvalidator.org/docs/error/WPBlankLine.html

    For other people who get the same problem in the future, if the first list don’t work try this automatic plugin that fixes the error.

    https://www.ads-software.com/extend/plugins/fix-rss-feed/

    What causes this error is white space in between <?php … ?> it seems. If you still tried both those steps and still havent gotten it to work try deleting your cache. Then it worked for me.

    I just launched a website using WP 3.0 and for the first time ran into this parsing error. I think I’ve tried everying and need to know if there is anything else I can try.
    1. Went thru the list of files recommended to review and found no spaces.
    2. Deactivated all plugins and still got error.
    3. Tried the default TwentyTen theme and still got error.
    4. Removed 3.0 and installed 2.9.2 and still got error.
    5. Tried the feed fix plug in. Got thru partial repair of files and it won’t repair one of the wp- files in the root directory because it’s not writeable.I tried to reset the permissions to writeable and it won’t let me.
    6. Upgraded to 3.0 again still getting error

    Anything else to try? Is there something on a hosting account that can be causing the error? Can it be caused by a missing file in the install? I’m not a developer and I feel like I’m running out of options. HELP

    I think I see the error and it’s not the blank space issue even tho it’s this same error message…
    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://websitename.com/?feed=rss2
    Line Number 2, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>

    When I look at page source in the browswer I see there is a duplicate doc declaration

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>

    This dup code appears between the end of the index.php and the beginning of the sidebar. I’m using a widgetized sidebar.

    Here’s how I resolved the error: I deleted the entire database, stipped all WordPress files off the server and did a complete reinstall. So if searching for blank spaces in the code isn’t your answer be prepared to start from scratch. Yuck.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘XML Parsing Error, RSS feed not working!’ is closed to new replies.