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
- RT @Arsenal: Arsenal have agreed terms with Turkish side Galatasaray for the transfer of Emmanuel Eboue http://t.co/wz2GqvC 29 mins ago
- RT @Arsenal: Robin van Persie has been confirmed as Arsenal's new captain http://t.co/SkLG7VU 1 hr ago
- RT @nealhudson: My new sounds: Neal Hudson - Mr. Magoo Pt 1 on #SoundCloud http://t.co/XbpFYxK 17 hrs ago
- RT @SpaceXer: The Falcon 9 rocket that will carry Dragon to orbit stands vertical at SpaceX's Cape Canaveral launch site http://t.co/Ids4oVt 18 hrs ago
- RT @SpaceXer: And work continues at our CA HQ on the Dragon spacecraft that will berth with the Space Station later this year http://t.c ... 18 hrs ago
- More updates...
Powered by Twitter Tools
- Sony's Gamescom keynote, (still) live from Germany
- Kinectimals go Kinect-less on Windows Phone 7 this fall
- Steel Battalion: Heavy Armor uses Xbox 360 controller and Kinect simultaneously
- Kinect: Disneyland Adventures Out in Time for the Holidays
- FIFA Street Makes a Return in 2012
- Hideo Kojima tweets 'ZOE 3DS' logo
- Battlefield 3 multiplayer trailer is ... ooh, jets!
- SSX to feature 100,000 player events, pre-order bonuses announced
- Nintendo Selects budget line adds Super Mario Galaxy, Punch-Out!!, and more
- Xbox 360 Gamescom 2011 Announcements
- A Surprise from an Early Universe Monster
- Art and science collide at CERN
- NASA takes heat over whistle-blower policy
- The 'Virtual Universe' Will Be Full of Discoveries
- Food Prices May Predict Riots
- Top 10 Cities for Green Living
- The Social Nexus (preview)
- The Smartest Cities Will Use People as their Sensors [Video]
- Solar-powered soldiers to reduce weight of batteries
- Street-Savvy
- Why is LTE equipment being installed in an Apple Store?
- Nokia chimes in on Google's Moto deal, reaffirms its dedication to WP7
- Apple sells world's most expensive flash drive
- AT&T USBConnect Momentum 4G and Mobile Hotspot Elevate 4G scheduled for August 21st launch
- Saygus VPhone finally wins approval from Verizon, not so high-end anymore
- Company reveals plans for space hotel
- Court lifts Samsung Galaxy Tab 10.1 ban ... for now
- Lightning Motorcycles electric bike blazes past 2010 record, joins 200 MPH Club
- News International mail server password FAIL exposed
- Injunction suspended: EU can buy Galaxy Tabs again
- Tourists injured in pony and trap crash
- Leaders demand 'euro governance'
- Yemen's Saleh vows to return home
- VIDEO: Timelapse: Installing a turbine
- PC's attacker jailed for 12 years
- Three Manchester looters jailed
- Leona Lewis backs down over song
- Excitement over 'early wood' find
- VIDEO: Protests over Australia carbon tax
- Man Utd 'ponder Asian flotation'