WordPress.org

Ready to get started?Download WordPress

Forums

RSS error- XML document is invalid (23 posts)

  1. marcfitt
    Member
    Posted 2 years ago #

    Hi, I have this error on my wordpress dashboard:
    RSS Error: This XML document is invalid, likely due to invalid characters. XML error: Invalid document end at line 194, column 1RSS Error: This XML document is invalid, likely due to invalid characters. XML error: Invalid document end at line 349, column 1

    and I can't upload picture, add plugin or anything. I check my fee with feed validator and all works fine... What can I do to resolve this problem?

  2. dannylin
    Member
    Posted 2 years ago #

    I have the same problem. :-\

  3. rm2project
    Member
    Posted 2 years ago #

    same problem here after wordpress 3.4 upgrade.
    tried shutting down all plugins but still the same thing.

  4. ajetayo
    Member
    Posted 2 years ago #

    I'm having the same problem now....Has anyone fixed it?

  5. Steffi3rd
    Member
    Posted 2 years ago #

    Same problem since today.

  6. richstrauss
    Member
    Posted 2 years ago #

    Ditto.

    "RSS Error: This XML document is invalid, likely due to invalid characters. XML error: junk after document element at line 194, column 0RSS Error: This XML document is invalid, likely due to invalid characters. XML error: junk after document element at line 349, column 0 "

  7. richstrauss
    Member
    Posted 2 years ago #

    Do any of you guys have "Facebook AWD All in One" installed? I deactivated it on the problem installation and the error message disappeared.

    I have it installed on other installations too though, and no problems there...

  8. ajetayo
    Member
    Posted 2 years ago #

    Yea @richstrauss.....I was about coming back here to post that. I noticed when I tried to upload a media file, one of the error quoted "Facebook AWD All in One" so I just deactivated it and everything worked well.

  9. richstrauss
    Member
    Posted 2 years ago #

    OK, I added Facebook AWD to the tags for this thread - it seems that it is only conflicting with certain themes, as two of my websites use the same theme with Facebook AWD installed, and both are giving the error.

    Other sites with different themes and also with Facebook AWD installed are OK. The error has nothing to do with WordPress 3.4 - The one site I went into now still ran on 3.3 and still had the error.

  10. dannylin
    Member
    Posted 2 years ago #

    confirmed: just disable Facebook AWD and the error was gone. #$%^&*...

  11. ajetayo
    Member
    Posted 2 years ago #

    Update,

    I think the real problem is that the new "Facebook" Plugin is conflicting with Facebook AWD. I just disabled the Facebook Plugin and enabled Facebook AWD and everything is back to normal.

    It now matters which one is more important to your site, The only feature I use in the facebook plugin is the recommendation bar.

  12. rm2project
    Member
    Posted 2 years ago #

    which is the new "Facebook" Plugin you are talking about?

  13. Katie B. HousewifeHowTos.com
    Member
    Posted 2 years ago #

    I don't have the Facebook plugin installed, but I've been getting this error for a couple of days now. It's got to be a different plugin.

  14. dannylin
    Member
    Posted 2 years ago #

    @Katie, do you have the "Facebook AWD All in One" installed?

    I tried to track down the source code, modify it and found it was exactly caused by it. But it should be okay now.

    Here's where the problem is. There's a function in facebook-awd/AWD_facebook.php.
    When you visit the url 'http://facebook-awd.ahwebdev.fr/feed/?post_type=btp_work' earlier, you get exactly the same error.

    public function get_plugins_feed($echo=true)
    	{
    		$widget_awd_rss = array(
    			'link' => 'http://facebook-awd.ahwebdev.fr/plugins/',
    			'url' => 'http://facebook-awd.ahwebdev.fr/feed/?post_type=btp_work',
    			'title' => $this->plugin_name.' Documentation',
    			'items' => 20,
    			'show_summary' => 1,
    			'show_author' => 0,
    			'show_date' => 0,
    		);
    		if($echo){ echo $this->admin_get_feeds($widget_awd_rss); }else{ $this->admin_get_feeds($widget_awd_rss); }
    	}

    I tried to mark this function and all related instances as comment in the source file and the error was gone!

  15. Nicola
    Member
    Posted 2 years ago #

    I'm having the same problem and I'm using that Facebook AWD plugin, any solution? I don't understand the comment above.

  16. dannylin
    Member
    Posted 2 years ago #

    @nicoleuk: try to visit: http://facebook-awd.ahwebdev.fr/feed/?post_type=btp_work and you'll see almost the same error.

    It was an url used in Facebook AWD's plugin and I believe it was an error caused by Facebook AWD.

  17. Nicola
    Member
    Posted 2 years ago #

    How did you solve the problem?

  18. Gauravs90
    Member
    Posted 2 years ago #

    I'm getting the same and facebook AWD is showing compatibility to only 3.3.2 It's not compatible with 3.4.1

    Any fix or I have to disable it?

  19. dannylin
    Member
    Posted 2 years ago #

    I basically just commet out lines or functions where the url (http://facebook-awd.ahwebdev.fr/feed/?post_type=btp_work) or get_plugins_feed() appears on the facebook-awd/AWD_facebook.php file. And the plugin can work without any problem.

  20. dadylonglegs
    Member
    Posted 2 years ago #

    facebook-awd/AWD_facebook.php is in..

    plugins > editor > select plugin(FB AWD all in 1) > click facebook-awd/AWD_facebook.php under plugin files > ctrl+f and find 'public function get_plugins_feed'

    you'll see what dannylin is talking about.
    as for me, i'm not sure what's this function for so i let it be and instead i hide or comment out the error displaying code which is found under this function: public function get_plugins_feed

    ...

    /**
    	 * Fetch Feed infos in admin side.
    	 * Rss Feed $url
    	 */
    	 public function admin_get_feeds($widget_awd_rss)
    	 {
    
    		$rss = @fetch_feed( $widget_awd_rss['url'] );
    		if ( is_wp_error($rss) ) {
    			if ( is_admin() || current_user_can('manage_options') ) {
    				/*$html .='<div class="rss-widget"><p>';
    				printf(__('<strong>RSS Error</strong>: %s'), $rss->get_error_message());
    				$html .= '</p></div>';*/
    			}
    		} elseif ( !$rss->get_item_quantity() ) {
    			$rss->__destruct();
    			unset($rss);
    			return false;
    		} else {
    			$html .= '<div class="rss-widget">';
    			$html .= $this->wp_widget_rss_output( $rss, $widget_awd_rss );
    			$html .= '</div>';
    			$rss->__destruct();
    			unset($rss);
    		}
    	}
  21. Nicola
    Member
    Posted 2 years ago #

    I removed the Facebook AWD plugin then deactivated the rest of my plugins - including the cache plugin I use. Then I re installed AWD and activated the other plugins and the error was gone!

  22. dungnt304
    Member
    Posted 1 year ago #

    I have the same error but I've never installed Facebook AWD plugin before. How can I fix it?

  23. modifiedcontent
    Member
    Posted 1 year ago #

    I have the same error and never installed that Facebook plugin either.

    When this happened before I found out that it can be caused by whitespace at the end of wp-config.php. Removing that whitespace fixed the problem.

    But now it is broken again. Apparently whitespace or "other stuff" in any plugins and functions.php code can cause this, so good luck tracking down the cause.

    Is there a better way to troubleshoot this or prevent these fatal errors? RSS is becoming unusable for me.

Topic Closed

This topic has been closed to new replies.

About this Topic