• design2343

    (@design2343)


    Please help! My RSS feed won’t work and I have no idea what to do. Tried briefly to look through the code for blank line errors but I don’t know what I’m doing. Site: https://electroniccurrent.com/

    error:

    This page contains the following errors:

    error on line 3 at column 6: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Fifteen theme to rule-out a theme-specific issue (theme functions can interfere with feeds).

    Thread Starter design2343

    (@design2343)

    Tried that, still that issue. Last week there was no problem, it was only since then. It says there’s an error in the code, the only thing I touched was the header document, I added a couple lines and then deleted them. Is it saying there’s something wrong in the header?

    What else could it be?

    First few header lines:

    <?php if ( !defined( ‘ABSPATH’ ) ) exit; ?><!DOCTYPE html>

    <html <?php language_attributes(); ?>>

    <head>
    <title><?php echo wp_title( ‘-‘, false, ‘right’ ) ? wp_title( ‘-‘, false, ‘right’ ) : get_bloginfo( ‘name’ ); ?></title>
    <?php wp_head(); ?>

    </head>

    Thread Starter design2343

    (@design2343)

    could i identify line 3 at column 6 through my hosting provider or in my dashboard?

    Moderator James Huff

    (@macmanx)

    Is it saying there’s something wrong in the header?

    Only if switching to the Twenty Fifteen theme corrected the issue. Did switching to the Twenty Fifteen theme correct the issue?

    could i identify line 3 at column 6 through my hosting provider or in my dashboard?

    No, the feed is dynamically generated, it doesn’t correspond to any flat file.

    MarkRH

    (@markrh)

    Might look at you /wp-includes/feed-rss2.php file and make there are no blank lines at the top. Something is inserting 2 blank lines at the top.

    Hmmm, actually, now that I see these blank 2 lines at the top of your main blog page, that leads me to believe they are coming from somewhere else. It could be something like your index.php file outputting something.

    Like James mentions, try another theme just to make sure it isn’t theme related.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘RSS feed error’ is closed to new replies.