• Hi guys.
    First of all, i have read all the others topics, forums and issues i could find on google, but nothing works for me.

    my website is http://www.obit8.com and my feed has a problem.
    I have tryed to disable all the plugin, activate the standard theme but nothing, the same error.

    This feed does not validate.
    
    line 1, column 38: XML parsing error: <unknown>:1:38: syntax error [help]
    
    <?xml version="1.0" encoding="UTF-8"?>>
                                          ^
    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.
    
    "text/xml" media type is not specific enough [help]

    The only thing i can see is that i have 2 >> instead of 1, but i can’t find any php file containing that row.
    I’ve checked feed-rss.php, feed-rss2.php, rss comment, config.php, function.php….and all the others php file i could find.
    I’ve deleted all the blank space i could see after the >? tag (or ?>)but nothing.

    Please, could you help me??? Thanks

Viewing 15 replies - 1 through 15 (of 28 total)
  • Can we see the site using the default Twenty Fourteen theme with all plugins deactivated?

    Paste your feed-rss2.php file.

    What on earth for?

    Thread Starter obit8

    (@obit8)

    This is my feed-rss2.php file

    <?php
    /**
     * RSS2 Feed Template for displaying RSS2 Posts feed.
     *
     * @package WordPress
     */
    header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
    $more = 1;
    echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
    <?php
    	/**
    	 * Fires at the end of the RSS root to add namespaces.
    	 *
    	 * @since 2.0.0
    	 */
    	do_action( 'rss2_ns' );
    	?>
    >
    <channel>
    	<title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    	<atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    	<link><?php bloginfo_rss('url') ?></link>
    	<description><?php bloginfo_rss("description") ?></description>
    	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></lastBuildDate>
    	<language><?php bloginfo_rss( 'language' ); ?></language>
    	<?php
    	$duration = 'hourly';
    	/**
    	 * Filter how often to update the RSS feed.
    	 *
    	 * @since 2.1.0
    	 *
    	 * @param string $duration The update period.
    	 *                         Default 'hourly'. Accepts 'hourly', 'daily', 'weekly', 'monthly', 'yearly'.
    	 */
    	?>
    	<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', $duration ); ?></sy:updatePeriod>
    	<?php
    	$frequency = '1';
    	/**
    	 * Filter the RSS update frequency.
    	 *
    	 * @since 2.1.0
    	 *
    	 * @param string $frequency An integer passed as a string representing the frequency
    	 *                          of RSS updates within the update period. Default '1'.
    	 */
    	?>
    	<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', $frequency ); ?></sy:updateFrequency>
    	<?php
    	/**
    	 * Fires at the end of the RSS2 Feed Header.
    	 *
    	 * @since 2.0.0
    	 */
    	do_action( 'rss2_head');
    	while( have_posts()) : the_post();
    	?>
    	<item>
    		<title><?php the_title_rss() ?></title>
    		<link><?php the_permalink_rss() ?></link>
    		<comments><?php comments_link_feed(); ?></comments>
    		<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
    		<dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
    		<?php the_category_rss('rss2') ?>
    		<guid isPermaLink="false"><?php the_guid(); ?></guid>
    <?php if (get_option('rss_use_excerpt')) : ?>
    		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
    <?php else : ?>
    		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
    	<?php $content = get_the_content_feed('rss2'); ?>
    	<?php if ( strlen( $content ) > 0 ) : ?>
    		<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
    	<?php else : ?>
    		<content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
    	<?php endif; ?>
    <?php endif; ?>
    		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
    		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
    <?php rss_enclosure(); ?>
    	<?php
    	/**
    	 * Fires at the end of each RSS2 feed item.
    	 *
    	 * @since 2.0.0
    	 */
    	do_action( 'rss2_item' );
    	?>
    	</item>
    	<?php endwhile; ?>
    </channel>
    </rss>
    Thread Starter obit8

    (@obit8)

    The website is now running without any plugin activated and with twenty-fourteen theme.

    esmi because the problem is with this file.

    obit8 your file is missing the opening <rss> tag. replace your file with this.

    Thread Starter obit8

    (@obit8)

    Nothing to do, if you try to go to http://www.obit8.com/feed/ you will receive this:

    This page contains the following errors:
    
    error on line 1 at column 37: Document is empty
    Below is a rendering of the page up to the first error.

    Now the webiste has no activated plugin and the standard theme

    esmi because the problem is with this file.

    No it isn’t. That’s a core file. Everyone has the same file.

    @obit8: Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. If you do have a damaged core file, then other core files could also be damaged.

    Thread Starter obit8

    (@obit8)

    Esmi so i need to replace wp-admin and wp-includes folder more all the files i see in the root EXCEPT wp-config and .htaccess…right?

    Yes but do stay away from the wp-content folder too. This process should ensure that you have good copies of all WP core files.

    esmi except what he pasted was not the default file.

    obit8 Your feed is validating now but I think you’re using some kind of caching system. If I access your feed and send a PHP session cookie, your feed output is correct and validates. If no cookie is sent, I’m served the version that is missing the <rss> tag and the document empty error is shown.

    Thread Starter obit8

    (@obit8)

    Ok, anyway i’m doing a backup of old wp-admin and old wp-includes folder.

    I’ll let you know

    Thread Starter obit8

    (@obit8)

    i.ahmed i can see the same error if i try to validate the feed.

    Sorry

    This feed does not validate.

    line 1, column 38: XML parsing error: <unknown>:1:38: syntax error [help]

    <?xml version=”1.0″ encoding=”UTF-8″?>>
    ^
    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

    “text/xml” media type is not specific enough [help]

    Here’s some screenshots just to show you:
    With cookie
    Without cookie

    Thread Starter obit8

    (@obit8)

    Ok i only see the version without cookie
    However i’m reuploading the folder and files as sad from esmi

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘This feed does not validate’ is closed to new replies.