×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Some RSS feeds don't work?

Some RSS feeds don't work? 15 years 7 months ago #3880

  • emeyer
  • emeyer's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
Any guidance? On some pages the RSS feeds work, but on others they don't.

Could this be a problem with parsing bbcode?

Some RSS feeds don't work? 15 years 7 months ago #3886

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, I don't know.

Give me some examples.

Some RSS feeds don't work? 15 years 7 months ago #3913

  • emeyer
  • emeyer's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
I worked it out, it was a sh404sef configuration problem. If anyone else needs help on the topic, I'll provide some guidance.

Some RSS feeds don't work? 15 years 7 months ago #3916

  • emeyer
  • emeyer's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
...but after setting the sef so it does not change the feeds, the feeds no longer have titles, which means it is only possible to subscribe to one of the feeds, after which an error message appears saying the feed already exists. The same problem is reported for v3. here:

www.compojoom.com/forum.html?func=view&catid=6&id=111

Some RSS feeds don't work? 15 years 7 months ago #3917

  • emeyer
  • emeyer's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
I found the problem, it is in commehnt.php:
function createFeed(){
 require_once(JPATH_SITE."/includes/feedcreator.class.php");
$contentid = JOSC_utils::decodeData('contentid');
$component = ''; /* com_content TODO: adapt to others...  */
$database = JFactory::getDBO();
$database->setQuery("SELECT * FROM jos_content WHERE id='$contentid'");
$content = null;
$database->loadObject($content);
 $rss = new UniversalFeedCreator();
$rss->useCached();

In Joomla 1.5, $database->loadObject($content) needs to be:
$content=$database->loadObject();

Some RSS feeds don't work? 15 years 7 months ago #3927

  • emeyer
  • emeyer's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
There's one more tiny thing with the 4.0 code for RSS -- the JROUTE statement:
$rss_item->link = 
 JRoute::_("index.php?option=com_content&task=view&id=$contentid#JOSC" . $item['id']);

Is failing because if there are no comments yet, there is no itemid, so the #JOSC has no anchor. So that leads to a 404 and it's not possible to subscribe to the feed until a comment exists in it. Changing it to:
index.php?option=com_content&task=view&id=$contentid#" . $item['id']);
works because then the trailing hashmark defaults to the top of the file, and the browser can still open the link.

There is another problem but it's a Joomla problem. Joomla sef thinks an 'rss' suffix is a directory and appends a slash to it. Browsers are intelligent enough to do a rediirect, but it causes an HTTP -1 error on link checkers and fills the error log with hundreds of irritating entries.
  • Page:
  • 1
Time to create page: 0.108 seconds