Page 1 of 1

RSS feeds

Posted: Thu Feb 24, 2005 11:04 am
by Wim
I have installed Serendipity and all seems to be o.k.
I have only one problem, RSS feeds das not display a site name or description.
Can't find wath I did wrong so I droped my question here. :?:
I hope someone kan help me out on this.
My site is located at: http://www.fotochemie.nl

Re: RSS feeds

Posted: Thu Feb 24, 2005 1:25 pm
by garvinhicking
Check your Serendipity configuration for the "Blog Title" and "Blog Description" setting. They seem to be not set!

Regards,
Garvin

RSS feed

Posted: Thu Feb 24, 2005 9:21 pm
by Wim
The name and the description you can olso see in the header, I have set this in the configuration settings in the admin page. Or do you mean other settings that I missed.

RSS feed

Posted: Thu Feb 24, 2005 11:49 pm
by Wim
Dear Garvin,

First of all sorry for my poor Englisch.
The problem I have is that I installed Serendipity without any error and with all the lines completed also name and description and still the RSS feed das not display the name and description.

Regards,
Wim

Posted: Fri Feb 25, 2005 1:53 pm
by Kic
Hi all,

yes, I can only confirm this... all my entries in the index.rss2 "file" don't have anything in their <title>, so when I subscribe to the entries for example in firefox, all entries are shown with their creation dates only.
Here's an excerpt of one of my items in index.rss2:

Code: Select all

<item>
  <title/>
  <link>
    http://blog.mydomain.de/index.php?/archives/11-WWW.html
  </link>
  <comments>
    http://blog.mydomain.de/index.php?/archives/11-WWW.html#comments
  </comments>
  <wfw:comment>http://blog.mydomain.de/wfwcomment.php?cid=11</wfw:comment>
  <slash:comments>0</slash:comments>
  <wfw:commentRss>
    http://blog.mydomain.de/rss.php?version=2.0&type=comments&cid=11
  </wfw:commentRss>
  <author> ()</author>
  <content:encoded>
  </content:encoded>
  <pubDate>Fri, 25 Feb 2005 11:22:58 +0100</pubDate>
  <guid isPermaLink="false">
    http://blog.mydomain.de/index.php?/archives/11-guid.html
  </guid>
</item>
As you can see, the <title/> is empty - is this a configuration error?

Thanks a lot and greetings from Munich,
Torben

Posted: Sun Feb 27, 2005 12:52 am
by garvinhicking
I can see the title properly in my latest CVS Serendipity.

What did you guys enter as BlogTitle and BlogDescrition exactly? Are you logged in as Administrators or as Chief Editors?

Are you by any chance using Supersized.org hosting? In that case it seems to be a supersized bug...

Regards,
Garvin

Posted: Mon Feb 28, 2005 12:15 pm
by Guest
Hi Garvin,

thanks for replying. I have "MyCompany" as BlogTitle and "All we need to remember" as BlogDescription. What I just saw is that even the RSS-Channel-Title is empty. I tried Serendipity 0.8-alpha12 and the official stable version - same problem. I am hosting this on an own server here at our company, running PHP 4.3.1.

Do you think it could be the PHP version or a php.ini setting?

The Blog itself is perfect, but my work mates would love to subscribe to the RSS feeds, but complain about the "dates only"...

Oh, and by the way, I tried to register as "Kic" in the forum, but the confirmation email is not getting to me :-(

Many greetings and thank you,
Torben

Posted: Mon Feb 28, 2005 3:29 pm
by garvinhicking
Hm, this is strange. I've never seen this error :) What is your Blog URL?

Can you please check your serendipity_config database table and see if blogDescription and blogTitle appear there properly? And are you sure you are using the right Serendipity-alpha snapshot files and extracted them with full paths? :)

Regards,
Garvin

Posted: Mon Feb 28, 2005 4:05 pm
by Kic unregistered
Hi Garvin,

sigh, I cannot give you access to the blog, it's in our intranet, sorry for that...

According to MySQL this is the content you asked for:

blogTitle "MyCompany Blog"
blogDescription "All we need to remember!"

Why do you think the blogTitle and blogDescription entries would prevent the titles of the articles to be written out in the rss2-File?

And yes, I extracted the tar-File using tar xvzf s9y...., changed ownership of the directory to the webserver's id/group... and I upgraded to today's snapshot already... no change except that the full user name is printed out now...

Sorry for bothering you, but since Wim seemed to have the same problem this could be something happening to more users than just me.

Thanks anyway already and greetings,
Torben

Posted: Mon Feb 28, 2005 4:14 pm
by garvinhicking
Hi Kic

This is strange - and hard to reproduce.

Please open your rss.php file, and at the top you'll see this:

Code: Select all

include_once('serendipity_config.inc.php');
$version         = $_GET['version'];
$description     = $serendipity['blogDescription'];
$title           = $serendipity['blogTitle'];
$comments        = FALSE;
Please add this line directly after the block:

Code: Select all

die($serendipity['blogTitle']);
And tell me if it then outputs the blogtitle. Then we'll go further from there. If you're able to go to irc.freenode.net, please join #s9y and I'll try to make live-debugging :-)

Regards,
Garvin

SOLUTION (in my case)

Posted: Mon Feb 28, 2005 6:12 pm
by Kic
Hi Wim and all,

Garvin tracked down my problem to a wrong behaviour of the iconv library on my system (SuSE 8.2). It seems to garble the converted strings to an empty or unusable format.

My solution was to comment out the usage of the iconv library. This is done by commenting out some code in <install_directory>/include/functions.inc.php line 306 and following:

Code: Select all

function serendipity_utf8_encode($string) {
    if (strtolower(LANG_CHARSET) != 'utf-8') {
        // if (function_exists('iconv')) {
        //       return iconv(LANG_CHARSET, 'UTF-8', $string  );
        // } else {
            return utf8_encode($string);
        // }
    } else {
        return $string;
    }
}
Another solution would be disabling the use of iconv in your php.ini. I didn't try that though.

Hope this helps others, too.

Greetings from Munich,
Torben