Page 1 of 1
RSS feed empty
Posted: Tue Jan 24, 2006 11:23 am
by Griffin
Hello guys,
I've a problem with RSS feed that appears to be empty, no title, no posts, nothing.
This is the web:
www.vancanza-praga.com
This is the xml 2.0:
http://www.vacanza-praga.com/feeds/index.rss2
Any ideas?
Thank's a lot in advance.
Re: RSS feed empty
Posted: Tue Jan 24, 2006 11:28 am
by garvinhicking
This is an error that can happen, if your server says it supports iconv/recode, but it executing it not right. Some PHP versions were broken in this regard, so you may need to ask your sysadmin to upgrade to a recent s9y version.
A workaround is to edit your include/functions.inc.php file and replace 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 if (function_exists('mb_convert_encoding')) {
return mb_convert_encoding($string, 'UTF-8', LANG_CHARSET);
} else {
return utf8_encode($string);
}
} else {
return $string;
}
}
with this:
Code: Select all
function serendipity_utf8_encode($string) {
if (strtolower(LANG_CHARSET) != 'utf-8') {
return utf8_encode($string);
} else {
return $string;
}
}
Best regards,
Garvin
Thanksnow works!! But...
Posted: Wed Jan 25, 2006 12:34 pm
by Griffin
Ok now Feeds works.
But there still a small trouble.
My feed shows only the first part of the post and then the link "to continue reading click here". But this second part doesn't work.
Actually that link "here" link to:
mywebsite/id.html#extended
But my posts are at:
mywebsite/post_title.html
So now is impossible to continue reading the posts, because the page
id.html does not exist.
Any ideas?
Thank you again for quick help on my previous problem!!

Re: Thanksnow works!! But...
Posted: Wed Jan 25, 2006 1:19 pm
by garvinhicking
Could you give me the URL to your site, so I could see it with real URLs?
I might also need the settings you made for your s9y paths and permalinks in the configuration.
Regards,
Garvin
Re: Thanksnow works!! But...
Posted: Wed Jan 25, 2006 2:33 pm
by Guest
garvinhicking wrote:Could you give me the URL to your site, so I could see it with real URLs?
I might also need the settings you made for your s9y paths and permalinks in the configuration.
Regards,
Garvin
Thanks Garvin.
All the information:
This is the
web:
www.vancanza-praga.com
This is the
xml 2.0:
http://www.vacanza-praga.com/feeds/index.rss2
Permalinks:
Permalink Entry URL structure praga/%title%.html
Permalink Author URL structure authors/%realname%
Permalink Category URL structure vacanze/%name%
Permalink RSS-Feed Category URL structure feeds/vacanze/%name%.rss
Permalink RSS-Feed Author URL structure eeds/authors/%realname%.rss
Path to archives: praga
Path to archive: archive
Path to categories: vacanze
Path to authors: authors
Path to unsubscribe comments: unsubscribe
Path to delete comments: delete
Path to approve comments: approve
Path to RSS Feeds: Feeds
Path to single plugin: plugin
Path to admin: admin
Path to search: search
Full Path: /home/mhd/
www.vacanza-praga.com/htdocs//
Hope is everything.
Thanks again
Errata (mistake)
Posted: Wed Jan 25, 2006 2:36 pm
by Guest
Anonymous wrote:garvinhicking wrote:Could you give me the URL to your site, so I could see it with real URLs?
I might also need the settings you made for your s9y paths and permalinks in the configuration.
Regards,
Garvin
Thanks Garvin.
All the information:
This is the
web:
www.vancanza-praga.com
This is the
xml 2.0:
http://www.vacanza-praga.com/feeds/index.rss2
Permalinks:
Permalink Entry URL structure praga/%title%.html
Permalink Author URL structure authors/%realname%
Permalink Category URL structure vacanze/%name%
Permalink RSS-Feed Category URL structure feeds/vacanze/%name%.rss
Permalink RSS-Feed Author URL structure eeds/authors/%realname%.rss
Path to archives: praga
Path to archive: archive
Path to categories: vacanze
Path to authors: authors
Path to unsubscribe comments: unsubscribe
Path to delete comments: delete
Path to approve comments: approve
Path to RSS Feeds: Feeds
Path to single plugin: plugin
Path to admin: admin
Path to search: search
Full Path: /home/mhd/
www.vacanza-praga.com/htdocs//
Hope is everything.
Thanks again
The web is:
http://www.vacanza-praga.com
Re: Errata (mistake)
Posted: Wed Jan 25, 2006 2:52 pm
by garvinhicking
Okay, please edit your include/functions_rss.inc.php file.
There you must replace this:
Code: Select all
} elseif ($entry['exflag']) {
$ext = '<br /><a href="' . $guid . '#extended">' . sprintf(VIEW_EXTENDED_ENTRY, htmlspecialchars($entry['title'])) . '</a>';
} else {
with this:
Code: Select all
} elseif ($entry['exflag']) {
$ext = '<br /><a href="' . $entryLink . '#extended">' . sprintf(VIEW_EXTENDED_ENTRY, htmlspecialchars($entry['title'])) . '</a>';
} else {
This fix has also been committed to SVN for the upcoming 1.0 version.
Thanks a lot,
Garvin
YES! Now works
Posted: Wed Jan 25, 2006 3:03 pm
by Griffin
Thank you very much!!
SERENDIPITY RULES!!

Re: YES! Now works
Posted: Wed Jan 25, 2006 3:27 pm
by garvinhicking
Great! Glad to hear that...spread the word!
Best regards,
Garvin