I ran into a problem that seems to come up occasionally on the WordPress support forum – blank lines at the beginning of the RSS feed XML file for the site which causes problems since it’s no longer valid XML. A quick look at the support forum pointed me in the right direction. It turned out to be blank lines following the final ?> line in the functions.php I had added to my custom theme to add widget support to the sidebar. This file gets loaded and parsed for every request to the blog, including for the RSS feed, and the blank line is actually seen as an intended part of the output – like the regular HTML you see in PHP files. Removing the blank line sorted the problem out.
-
Advertisement
- Latest Tweets
- Can't wait to see @daraobriain tonight in Vicar St. with Rachel for our wedding anniversary night out :) 11 years and still going strong! 3 hrs ago
- RT @TweetDeck: Android TweetDeck Beta 8 is available now & rocking awesome widgets! Dload http://www.tweetdeck.com/go/android chlog: htt ... 19 hrs ago
- RT @EnovationIRE: Vacancies - Business Analyst (Insurance) - http://www.enovation.ie/index.php/component/content/article/84 1 day ago
- RT @EnovationIRE: Vacancies - Marketing Manager (Maternity Leave Cover) - http://www.enovation.ie/index.php/component/content/article/84 1 day ago
- RT @chrisjhorn: Einstein may be wrong:: incredibly, evidence that the laws of physics may NOT be the same across the universe!!..... h ... 1 day ago
- More updates...
Powered by Twitter Tools
- Yahtzee HD now on iPad, please don't scream 'yahtzee!' in public
- The Dishwasher: Vampire Smile preview: hobbyist graduated
- See The Brand New PlayStation Move TV Ads
- PlayStation Network Video Content Update: Killers, MacGruber, Artist of the Month and more
- BioShock 2 fixes colourblind problem... but only if you buy DLC
- Ninety-Nine Nights II DLC detailed
- Microsoft's Halo: Reach Monday midnight launch revealed
- Swarm PAX 2010 trailer
- Steve Young Football iPad commercials draw a Crossfire
- Video: Portal 2 co-op fully revealed
- Houllier praises Villa's ambition
- 'International injuries are hard to explain'
- Wenger - Youth of today no worse than before
- Speed shuns Wales link
- Wenger believes in Walcott
- Sam tips City for the top
- N'Zogbia coy on l'OM link
- Arteta turns eye back to Spain
- Redknapp sees rotation need
- Vermaelen knock opens door for Squillaci
- Do Egyptian mummies have a right to privacy?
- New Tests Nab Gene Doping Athletes
- MIND Reviews: Philosophy Meets Neuroscience
- Rosette Nebula Sparkles In New Photo
- Printing in Three Dimensions
- Recommended: The 50 Most Extreme Places in Our Solar System
- Space Colonists Could Use Bacteria to Mine Minerals on Mars and the Moon
- Avatars learn gestures to match your tone of voice
- US navy seeks 'safer' bomb
- Is Genetically Modified Salmon Safe?
- Nokia celebrates its users' inventiveness in latest N8 ad (video)
- US military builds laser backpack for 3D indoor mapping
- QNAP pops Intel's 1.8GHz Atom D525 into refreshed Turbo NAS family
- Lego Android is 15 inches tall, eats apples for breakfast
- Beeb creates new global iPlayer post
- Shock treatment! Nokia's radical break with the past
- Microsoft boss waves goodbye to biz division wonder kid
- Intel to show off Sandy Bridge at IDF next week, AMD counters with Zacate demo nearby
- 'Is this science, or literature?'
- Second SMS Android Trojan targets smut-seeking Russians
- Revealed: The 'knicker spy' who sang for Hitler
- Blast levels San Francisco homes
- 475 abuse complaints against Belgian church
- Bomb suspect priest 'flamboyant'
- Arrests in sham wedding operation
- Merkel ally quits in WWII furore
- C4 bids farewell to Big Brother
- Cyclist's long hunt for missing son
- Anglo Irish split likely by year's end
- Court hears of McInerney Homes survival chance