MortenBo
Member
Posted 2 years ago #
Hi
I use WP 2.9.2 and Cover WP theme. When I try to set up WLW as my blogging-tool I get the following error in WLW log file:
"Exception attempting to read RSD file: System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 2, position 3.
As I understand, the XML returned to WLW probably contains some empty lines at the top. But I have no idea as how to attac and correct this problem. I have set up another blog with the same theme and have no problem connecting WLW to that.
any good suggestions out there?
It could also be a plugin that is interfering with the XML being returned.
What's the URL for your site? I can take a quick look at the RSD for the site and see if there is anything obvious that jumps out.
MortenBo
Member
Posted 2 years ago #
Hi.. Thanks :) I have tried disabling plugins. The url is http://bil.bogetvedt.com
My active plugins at the moment are:
Akismet
SmartYoutube
Wordpress.com stats
WP-PrettyPhoto
All plugins are at latest version.
MortenBo
Member
Posted 2 years ago #
Anyone got any ideas as how to look at the xml being returned? This would probably help me locate the error.
There is a new line at the top of your RSD output - http://bil.bogetvedt.com/xmlrpc.php?rsd
This is likely caused by a plugin or theme functions.php file that is doing a direct output of a newline some where.
MortenBo
Member
Posted 2 years ago #
Thanks
Any tips as to how to detect that empty line? I have tried deactivating all plugins and check the rsd file again but it's still a blank line at the top....
I checked the feed from another testblog i have made: http://bolig.bogetvedt.com and this give me the same feed as for bil.bogetvedt.com but I can use LiveWriter.. strange..
MortenBo
Member
Posted 2 years ago #
Ah.. Problem solved... I found 2 blank lines at the end of wp-config.php
Checked the file after reading this
Case closed :)