{"action":"opened","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3401","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3401/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3401/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/3401/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/3401","id":118116751,"number":3401,"title":"[Feature Request] Automatically Find and Remove Whitespace","user":{"login":"amboutwe","id":8060612,"avatar_url":"https://avatars.githubusercontent.com/u/8060612?v=3","gravatar_id":"","url":"https://api.github.com/users/amboutwe","html_url":"https://github.com/amboutwe","followers_url":"https://api.github.com/users/amboutwe/followers","following_url":"https://api.github.com/users/amboutwe/following{/other_user}","gists_url":"https://api.github.com/users/amboutwe/gists{/gist_id}","starred_url":"https://api.github.com/users/amboutwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amboutwe/subscriptions","organizations_url":"https://api.github.com/users/amboutwe/orgs","repos_url":"https://api.github.com/users/amboutwe/repos","events_url":"https://api.github.com/users/amboutwe/events{/privacy}","received_events_url":"https://api.github.com/users/amboutwe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/enhancement","name":"enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/support","name":"support","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-20T20:07:48Z","updated_at":"2015-11-20T20:07:48Z","closed_at":null,"body":"In some cases, our sitemaps do not generate correctly due to whitespace that is output by another plugin or theme. The sitemap when submitted throws an error `XML declaration allowed only at the start`. We [recommend](http://kb.yoast.com/article/58-xml-sitemap-error) that the user locate the whitespace and remove it.\r\n\r\nWould it be beneficial to automatically find and remove the extra whitespace from sitemaps and RSS feeds?\r\n\r\nUser supplied this process for locating and fixing the issue:\r\n\r\n1. Use code found [here](http://piotrkrzyzek.com/wordpress-remove-blank-line-from-rss-feed-wordpress-error-on-line-2-at-column-6-xml-declaration-allowed-only-at-the-start-of-the-document/)\r\n2. Go wp-admin/options-permalink.php and resave your permalinks.\r\n3. You may have to go to your Yoast XML sitemaps too and unchecked the XML sitemaps tick box>save>and then recheck it>save.\r\n\r\nThe user has successfully used this process on over 10 sites."}}