What is the URL for your XML Sitemap?
Thread Starter
Thavm
(@thavm)
Hi Thavm,
You have a blank line outside your PHP tags in one of your theme files. This causes this error. You’ll need to find the theme file in question and remove the blank line.
Thread Starter
Thavm
(@thavm)
I deleted all blank lines in the theme files outside the php tags (about 40 different files all manually checked, including the functions.php file), nothing changed,…
then I deleted all blank lines, also the ones between the php tags, nothing changed,….
there are also php files in the subfolders: inc, framework and css. Could there be the one causing problems? There are just so many files to check and the idea that when I mis one I have to start all over again is making me feel a little desperate.
Would using this ba a good idea? It claims to clean up the blank lines,…
http://www.flyaga.info/fix-rss-feed-wordpress-plugin/
Hi Thavm,
I don’t have any suggestions for an easy way to find and delete whitespace from PHP files. I’ve not tried that plugin before, if you try it then make sure you take a full backup of your site and theme before trying.
The problem is still there and it’s definitely caused by a blank line in one of your theme’s PHP files.
Thread Starter
Thavm
(@thavm)
I think it worked!!!! Thank you so much!
(now I just need to go through the site so see if I didn’t break anything)
Yep, your XML sitemap is now working. Any time you see that issue its because of whitespace in PHP files which will break any XML.