Tech blog: Problems with rss2html.php with Feedburner feeds
Disclaimer: First of all if you don't blog or otherwise deal with RSS feeds for your webpage, then just ignore this blog entry. There's nothing sexy or bitingly sarcastic here. It's just geeky info.
So I was getting the following error displayed on my webpage when using rss2html.php with Feedburner feeds:
$errorCode = 2
xml_error_string() = syntax error
xml_get_current_line_number() = 2
xml_get_current_column_number() = 49
xml_get_current_byte_index() = 89
This was troubling as I had no problems using my current settings for almost a year, and now suddenly I was getting this error.
I searched high and low, but other than finding a lot of other webpages fuxored with the same error, I didn't find any fixes, including the forums at Feedburner and the the ones for rss2html (feedforall.com). It took me a lot of trial and error as I had no idea where the problem actually originated (especially since non-Feedburner RSS feeds worked fine.)
So anyway, here's the fix:
In your rss2html.php file it says:
// Set the following variable useFopenURL to one if you want/need to use
// fopen() instead of CURL
So we change this line from:
$useFopenURL = 0;
to
$useFopenURL = 1;
and it fixed the problem! Just like that.
So hopefully anyone now searching for this problem will get this blog entry.
Peace,
Izabael



Comments