View Full Version : RSS feed errors?
tanjatiziana
05-18-2005, 05:19 AM
Had a viewer of my blog report today that my RSS (and ATOM) links don't appear to be working for them in Firefox.
The error reads "Live Bookmark failed to load"...
I've been poking around here reading some posts on problems with 1.4 RSS feeds, but I'm sure where to go from here.
The blog is http://www.doublecrossed.ca can anyone help?
blinking8s
05-18-2005, 06:25 AM
humm...
which version of pixelpost are you running? 1/4 or 1.4.1 ?
the correct rss feed, which is in index.php is...
// ################################################## ########################################//
// RSS 2.0 FEED
// ################################################## ########################################//
if($_GET['x'] == "rss") {
pullout($cfgrow['sitetitle']);
$output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<rss version=\"2.0\">
<channel>
<title>".$cfgrow['sitetitle']."</title>
<link>".$cfgrow['siteurl']."</link>
<description>".$cfgrow['sitetitle']." photoblog</description>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>pixelpost</generator>
";
$tzoner = $cfgrow['timezone'];
$tprefix = '+';
$tzoner = sprintf ("%01.2f", $tzoner);
if (substr($tzoner,0,1)=='-') {
$tzoner = (substr($tzoner,1));
$tprefix = '-';
}
if ($tzoner < 10){$tzoner = "0".$tzoner;}
$hh = substr($tzoner,0,2);
$mm = substr($tzoner,-2);
$tzoner = $tprefix.$hh.$mm;
$query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc limit 10");
while(list($id,$datetime,$headline,$body,$image) = mysql_fetch_row($query)) {
$headline = pullout($headline);
$body = pullout($body);
$image = $cfgrow['siteurl']."thumbnails/thumb_$image";
$datetime = strtotime($datetime);
$datetime = date("D, d M Y H:i",$datetime);
$datetime .= ' ' .$tzoner;
$body = stripslashes($body);
$body = str_replace("\n","&lt;br /&gt;",$body);
// added to remove HTML tags
$body = strip_tags( $body );
$output .= "
<item>
<title>$headline</title>
<link>".$cfgrow['siteurl']."?showimage=$id</link>
<description>&lt;img src=&quot;$image&quot; align=&quot;right&quot;&gt; $body</description>
<pubDate>$datetime</pubDate>
</item>
";
}
$output .= "
</channel>
</rss>";
header("Content-type:application/xml");
echo $output;
exit;
}
if changing this still does not work, it has to do with the characters you used in a post, something is not right with your charset and its causing and error for some reason
tanjatiziana
05-18-2005, 06:33 AM
I'm running 1.4...
I've ammended the .php file... we'll see if it works now.
Will post back.
tanjatiziana
05-18-2005, 07:00 AM
After amending the index.php file, the RSS errors appears as:
-------
XML Parsing Error: not well-formed
Location: http://www.doublecrossed.ca/index.php?x=rss
Line Number 13, Column 176: <description>&lt;img
src=&quot;http://www.doublecrossed.ca/thumbnails/thumb_20050518004625_dxd_barbershop.jpg&quot;
align=&quot;right&quot;&gt; Barber shop, Dufferin & St. Clair.
-------
Something about the thumbnail that it doesn't like.
Joe[y]
05-18-2005, 08:49 AM
it doesn't like the & in your title. this is a bug that needs fixing - for now, temporarily remove the & from your title and see if that helps!
Yup, got the same problems. I overcame it by using &amp instead of just &. Remember to fill it in again as it breaks when you try to edit the post. Eg. "Me & Her" becomes "Me"
tanjatiziana
05-18-2005, 07:11 PM
so I can literally type in "&amp" instead of "&" and it'll get the best of both worlds?
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.