rss feed not getting a title
-
robandcathie
- Regular
- Posts: 7
- Joined: Fri May 27, 2005 9:47 pm
rss feed not getting a title
My rss feed is not getting a title. When I look at the file created for the feed the opening <title> is not included, however the closing </title> is. As a result my rss reader shows the date of the log but no title, and when I click on the log my lower window does not give the summary. I'm not real familiar with php or rss but do have some basic knowledge
-
robandcathie
- Regular
- Posts: 7
- Joined: Fri May 27, 2005 9:47 pm
Further Clarification
Just to further clarify, I use the rss2.0 for syndication. I have used this link: http://www.threelittleladiesrabbitry.co ... index.rss2 I have used it at My Yahoo and each article is listed as [Untitled]. I used RSS Bandit and the headline is listed as (...) with no topic. I'm having similar problems with every reader. Any feedback woul dbe greatly appreciated.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Further Clarification
There is really something wrong on your setup. The RSS Feed is missing a lot of stuff!
Please tell me:
- Which PHP version / Webserver you use
- Which Serendipity Plugins you use
- Which Database and version you use
And most of all, tell me if you modified/edited any files!
Regards,
Garvin
Please tell me:
- Which PHP version / Webserver you use
- Which Serendipity Plugins you use
- Which Database and version you use
And most of all, tell me if you modified/edited any files!
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
robandcathie
- Regular
- Posts: 7
- Joined: Fri May 27, 2005 9:47 pm
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Are you really sure you are using NO plugins at all? Go to Serendipity => Plugin Configuration and see which Event Plugins there are listed. I've never seen a Serendipity install without any plugin 
But now for the productive part. Please edit your rss.php and there go to line 12. The code should read something like:
Now after that $comments = false (or after the $title) please add this:
Then call your RSS feed again. You should only see a single line with this:
If you do NOT see this it means that Serendipity is failing to read your configuration. This then seems to depend on your Server/Host and their special setup, there would be then something going wrong. Maybe some buggy PHP Code Accelerator, Zend Cache or whatever. In this case I can only help you further if you can give me FTP access to your machine. If you don't want to do this you will need to contact your hoster and ask them for any clues about their special server setup.
What may also be of help is if you create a simple script:
and give a link to that page; this will tell me which PHP/Webserver version you'Re using exactly.
HTH
Garvin
But now for the productive part. Please edit your rss.php and there go to line 12. The code should read something like:
Code: Select all
header('Content-Type: text/xml; charset=utf-8');
session_cache_limiter('public');
include_once('serendipity_config.inc.php');
$version = $_GET['version'];
$description = $serendipity['blogDescription'];
$title = $serendipity['blogTitle'];
$comments = FALSE;
Code: Select all
die("Title: " . $serendipity['blogTitle']);
Code: Select all
Title: Three Little ladies Rabbitry Articles
What may also be of help is if you create a simple script:
Code: Select all
<?php
phpinfo();
?>
HTH
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
robandcathie
- Regular
- Posts: 7
- Joined: Fri May 27, 2005 9:47 pm
Ok I'll start with the plugins. Wow did I get that wrong. Here's the list:
Calendar
Quicksearch
Archives
Categories
Syndicate this Blog
Blog Administration
Powered By
Markup Serendipity
Markup: Emoticate
Markup: Nl2BR
Browser Compatibility
Spam Protector.
I also changed the rss.php file as you instructed, and got the following result:
XML Parsing Error: syntax error
Location: http://www.threelittleladiesrabbitry.co ... index.rss2
Line Number 1, Column 1:Title: Three Little ladies Rabbitry Articles
Basically what I'm doing is making weekly articles available for people raising rabbits, and I'm making them available through an rss feed. I will not be the only one writing the articles as I have several experts interested in helping me with this project. I use Mozilla Firefox. I may not need all the plugins.
I appreciate your time in helping me out with this.
Calendar
Quicksearch
Archives
Categories
Syndicate this Blog
Blog Administration
Powered By
Markup Serendipity
Markup: Emoticate
Markup: Nl2BR
Browser Compatibility
Spam Protector.
I also changed the rss.php file as you instructed, and got the following result:
XML Parsing Error: syntax error
Location: http://www.threelittleladiesrabbitry.co ... index.rss2
Line Number 1, Column 1:Title: Three Little ladies Rabbitry Articles
Basically what I'm doing is making weekly articles available for people raising rabbits, and I'm making them available through an rss feed. I will not be the only one writing the articles as I have several experts interested in helping me with this project. I use Mozilla Firefox. I may not need all the plugins.
I appreciate your time in helping me out with this.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Okay,you do get the title then at that point. Somewhen later though it seems that array is getting lost. Even though it does not seem that a plugin is responsiblefor it.
I can offer you to look into your installation if you can give me FTP access to your machine? If you want to do this, please send me a PM...
Regards,
Garvin
I can offer you to look into your installation if you can give me FTP access to your machine? If you want to do this, please send me a PM...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
robandcathie
- Regular
- Posts: 7
- Joined: Fri May 27, 2005 9:47 pm
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Problem investigated:
Your server has the "iconv" extension installed, but that extension is malfunctioning. Any call to it to make a utf8_encode() fails. This means your hoster has an error in their setup.
A temporary solution, which I have enabled on your host, is to bypass iconv encoding. To do this, one needs to edit include/functions.inc.php and modify this:
to:
Of course this is only a temporary solution. The real fix is needed on your Webspace provider side. This fix only solves the most pressing iconv-Errors, but other things like RSS Import or the RSS Sidebar plugin may create the same problems.
Regards,
Garvin
Your server has the "iconv" extension installed, but that extension is malfunctioning. Any call to it to make a utf8_encode() fails. This means your hoster has an error in their setup.
A temporary solution, which I have enabled on your host, is to bypass iconv encoding. To do this, one needs to edit include/functions.inc.php and modify this:
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;
}
}
Code: Select all
function serendipity_utf8_encode($string) {
if (strtolower(LANG_CHARSET) != 'utf-8') {
return utf8_encode($string);
} else {
return $string;
}
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/