Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > MISCELLANEOUS > Archives > Bug Report 1.4.x

Post Reply
 
Thread Tools
  #1  
Old 05-18-2005, 05:19 AM
tanjatiziana Offline
pp regular
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 42
Send a message via MSN to tanjatiziana Send a message via Yahoo to tanjatiziana
RSS feed errors?

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?
Reply With Quote
  #2  
Old 05-18-2005, 06:25 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
humm...

which version of pixelpost are you running? 1/4 or 1.4.1 ?

the correct rss feed, which is in index.php is...

Code:
// ##########################################################################################//
// 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","<br />",$body);
        // added to remove HTML tags
        $body = strip_tags( $body );
        $output .= "
        <item>
        <title>$headline</title>
        <link>".$cfgrow['siteurl']."?showimage=$id</link>
        <description><img src="$image" align="right"> $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
__________________
i should say more clever stuff
Reply With Quote
  #3  
Old 05-18-2005, 06:33 AM
tanjatiziana Offline
pp regular
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 42
Send a message via MSN to tanjatiziana Send a message via Yahoo to tanjatiziana
will give that a try

I'm running 1.4...

I've ammended the .php file... we'll see if it works now.

Will post back.
Reply With Quote
  #4  
Old 05-18-2005, 07:00 AM
tanjatiziana Offline
pp regular
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 42
Send a message via MSN to tanjatiziana Send a message via Yahoo to tanjatiziana
no luck

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><img
src="http://www.doublecrossed.ca/thumbnai....jpg"
align="right"> Barber shop, Dufferin & St. Clair.
-------

Something about the thumbnail that it doesn't like.
Reply With Quote
  #5  
Old 05-18-2005, 08:49 AM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
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!
Reply With Quote
  #6  
Old 05-18-2005, 06:17 PM
n0d3 Offline
forum loafer
 
Join Date: Feb 2005
Location: localhost
Posts: 17
Send a message via ICQ to n0d3 Send a message via MSN to n0d3
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"
Reply With Quote
  #7  
Old 05-18-2005, 07:11 PM
tanjatiziana Offline
pp regular
 
Join Date: Apr 2005
Location: Toronto, Canada
Posts: 42
Send a message via MSN to tanjatiziana Send a message via Yahoo to tanjatiziana
so I can literally type in "&amp" instead of "&" and it'll get the best of both worlds?
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:08 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs