FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 RSSmesh Missing Entry #1 ???? View next topic
View previous topic
Post new topicReply to topic
Author Message
autotech



Joined: 08 Jan 2009
Posts: 16

PostPosted: Tue Aug 18, 2009 10:48 am Reply with quoteBack to top

Here's the URL for the RSS mesh combining 5 feeds:

http://www.realworldautomotive.com/rss/mix/feed.html

And below is the script from the /feed.php file

Entry #1 is http://www.realworldautomotive.com/questions-and-answers/rss/feed.html

which is a good feed with new files entered up to today. However, on the mesh feed it stopped displaying new files on from this feed on July 25 (1995 Dodge Ram:).

All other entries are working up to date, all are on the same server, and they all work on the mesh feed except for Entry #1.

Can't figure out why. The data may have stopped going into the mesh from that feed the day I switched servers, but I don't see how that could make a difference, espeacilly seeing that all other entries are working correctly.

Help!


Code:
<?PHP

//
// Enable the caching for the resulting XML file.
$useOutputCaching = 0;

//
// The variable $outputCacheTTL controls how many seconds a cached copy of
// resulting RSS feed can be used before it must be recreated.
$outputCacheTTL = 3600;

//
// $XMLTemplate is the XML file that contains the outer, , items
// for the produced feed.  This MUST be a valid RSS 2.0 feed without any
// 's.  It must also specify "UTF-8" encoding, since all the produced
// items will be in UTF-8.
$XMLTemplate = "rssMesh_Template.xml";

//
// The variable $sortOutputByPubDate controls if the items in the resulting
// feed are sorted by their pubDate's, thus merging them together.
$sortOutputByPubDate = 0;

//
// The variable $feedList defines the feeds that will be used to create
// a new feed with.
$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.realworldautomotive.com/questions-and-answers/rss/feed.html",
      "itemCount" => "5",
      "feedTTL" => "3600"
      )
,

// Entry #2
Array("fileURL" => "http://www.realworldautomotive.com/forums/rss.php?cid=51",
      "itemCount" => "4",
      "feedTTL" => "3600"
      )
,

// Entry #3
Array("fileURL" => "http://www.realworldautomotive.com/forums/rss.php?cid=50",
      "itemCount" => "2",
      "feedTTL" => "3600"
      )
,

// Entry #4
Array("fileURL" => "http://www.realworldautomotive.com/fuel-economy/rss/feed.html",
      "itemCount" => "4",
      "feedTTL" => "3600"
      )
,

// Entry #5
Array("fileURL" => "http://www.realworldautomotive.com/car-reliability/rss/feed.html",
      "itemCount" => "4",
      "feedTTL" => "3600"
      )
);
//
// Since we are calling rssMesh.php from here, we don't want
// to include a separate config file.
$ConfigFilename = "DO_NOT_INCLUDE_CONFIG";
if (!isset($_REQUEST["buildConfig"])) {
@include_once("rssMesh.php");
}


?>



[/code][/quote]
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Tue Aug 18, 2009 6:46 pm Reply with quoteBack to top

autotech wrote:
Here's the URL for the RSS mesh combining 5 feeds:

http://www.realworldautomotive.com/rss/mix/feed.html

And below is the script from the /feed.php file

Entry #1 is http://www.realworldautomotive.com/questions-and-answers/rss/feed.html

which is a good feed with new files entered up to today. However, on the mesh feed it stopped displaying new files on from this feed on July 25 (1995 Dodge Ram:).

All other entries are working up to date, all are on the same server, and they all work on the mesh feed except for Entry #1.

Can't figure out why. The data may have stopped going into the mesh from that feed the day I switched servers, but I don't see how that could make a difference, espeacilly seeing that all other entries are working correctly.

Help!


Code:
<?PHP

//
// Enable the caching for the resulting XML file.
$useOutputCaching = 0;

//
// The variable $outputCacheTTL controls how many seconds a cached copy of
// resulting RSS feed can be used before it must be recreated.
$outputCacheTTL = 3600;

//
// $XMLTemplate is the XML file that contains the outer, , items
// for the produced feed.  This MUST be a valid RSS 2.0 feed without any
// 's.  It must also specify "UTF-8" encoding, since all the produced
// items will be in UTF-8.
$XMLTemplate = "rssMesh_Template.xml";

//
// The variable $sortOutputByPubDate controls if the items in the resulting
// feed are sorted by their pubDate's, thus merging them together.
$sortOutputByPubDate = 0;

//
// The variable $feedList defines the feeds that will be used to create
// a new feed with.
$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.realworldautomotive.com/questions-and-answers/rss/feed.html",
      "itemCount" => "5",
      "feedTTL" => "3600"
      )
,

// Entry #2
Array("fileURL" => "http://www.realworldautomotive.com/forums/rss.php?cid=51",
      "itemCount" => "4",
      "feedTTL" => "3600"
      )
,

// Entry #3
Array("fileURL" => "http://www.realworldautomotive.com/forums/rss.php?cid=50",
      "itemCount" => "2",
      "feedTTL" => "3600"
      )
,

// Entry #4
Array("fileURL" => "http://www.realworldautomotive.com/fuel-economy/rss/feed.html",
      "itemCount" => "4",
      "feedTTL" => "3600"
      )
,

// Entry #5
Array("fileURL" => "http://www.realworldautomotive.com/car-reliability/rss/feed.html",
      "itemCount" => "4",
      "feedTTL" => "3600"
      )
);
//
// Since we are calling rssMesh.php from here, we don't want
// to include a separate config file.
$ConfigFilename = "DO_NOT_INCLUDE_CONFIG";
if (!isset($_REQUEST["buildConfig"])) {
@include_once("rssMesh.php");
}


?>





The problem is the first feed is putting items in backwards. Convention says the newest items go at the top of the file. The first feed is doing it backwards. Changing "$sortOutputByPubDate" from 0 to 1 should fix the problem.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
autotech



Joined: 08 Jan 2009
Posts: 16

PostPosted: Tue Aug 18, 2009 7:50 pm Reply with quoteBack to top

Hi Jim,

I can only find $sortOutputByPubDate in the rssMesh.php file and the feed.php file in the mesh directory. rssMesh.php is at 1 and feed.php is at 0. Changing either one does not fix the problem.

$sortOutputByPubDate is not present in any of the files for the individual feeds.

So what makes Entry #1 backwards?

Alex
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Wed Aug 19, 2009 10:29 am Reply with quoteBack to top

I think they mean for you to change both of the statements to 1 (0 = false, 1 = true).

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
autotech



Joined: 08 Jan 2009
Posts: 16

PostPosted: Wed Aug 19, 2009 10:53 am Reply with quoteBack to top

With both at (1) nothing changes. It sounded to me that he was referring to the Entry #1 feed itself being backwards, nothing wrong in the mesh files.

There's gotta be an answer. What would you like to try next?
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Wed Aug 19, 2009 5:57 pm Reply with quoteBack to top

autotech wrote:
Hi Jim,

I can only find $sortOutputByPubDate in the rssMesh.php file and the feed.php file in the mesh directory. rssMesh.php is at 1 and feed.php is at 0. Changing either one does not fix the problem.

$sortOutputByPubDate is not present in any of the files for the individual feeds.

So what makes Entry #1 backwards?

Alex


As I said feeds traditionally put the newest items at the beginning of the file. RSSMesh takes the first x entries. This feed is backwards from tradition in that it puts the new entries at the end.

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Wed Aug 19, 2009 6:06 pm Reply with quoteBack to top

autotech wrote:
With both at (1) nothing changes. It sounded to me that he was referring to the Entry #1 feed itself being backwards, nothing wrong in the mesh files.

There's gotta be an answer. What would you like to try next?


The solution, while kind of ugly will work just fine. You will have to run this feed through a copy of RSSMesh to put the feed in the right order. Then use the output of that RSSMesh in the second copy.

[code]
<?PHP

$useOutputCaching = 0;
$outputCacheTTL = 3600;
$XMLTemplate = "rssMesh_Template.xml";
$sortOutputByPubDate = 1;
$feedList = Array(

// Entry #1
Array("fileURL" => "http://www.realworldautomotive.com/questions-and-answers/rss/feed.html",
"itemCount" => "99999",
"feedTTL" => "3600"
)
);
//
// Since we are calling rssMesh.php from here, we don't want
// to include a separate config file.
$ConfigFilename = "DO_NOT_INCLUDE_CONFIG";
if (!isset($_REQUEST["buildConfig"])) {
@include_once("rssMesh.php");
}


?>

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
autotech



Joined: 08 Jan 2009
Posts: 16

PostPosted: Wed Aug 19, 2009 6:17 pm Reply with quoteBack to top

Not sure exactly what you want me to do with this script.

The mesh script was working and stopped working, as you can see where the last file from entry #1 stopped on July 25.

I want to fix the problem. I do not want to do a major work-around to cover up the problem.

How can we find out exactly what's wrong? Can we have the php writers take a look at it?

I still don't see what you mean by the entry #1 RSS feed being backwards. It's displaying elements newest from top to bottom like all the rest.

Thank you.
View user's profile
autotech



Joined: 08 Jan 2009
Posts: 16

PostPosted: Fri Aug 21, 2009 11:32 am Reply with quoteBack to top

Hi Jim,

I spoke with Jeremy and he suggested I let you know that all feeds are coming from the same feedforall sql2rss scripts.

I also noticed that if you view source at the subject feed: http://www.realworldautomotive.com/questions-and-answers/rss/feed.html

And look closely, you'll see that the elements are not backwards (old to new from the top) but they are completely random.

I also noticed that if I raise the "itemCount" on the subject feed in the mesh script, to a number higher than the actual number of feeds, they will all appear on the mesh feed. So with a lower "itemCount" it is cutting out the newer elements (or possibly cutting them out randomly, like the order they are in the source).

The problem may very well be affecting all feeds, but the other's have such a low number of elements it has not yet been noticed.

It sure seems like the sql2rss scripts, not the mesh scripts, need to be fixed in order to sort the elements correctly.

Let me know what you think.

Thank you,

Alex
View user's profile
autotech



Joined: 08 Jan 2009
Posts: 16

PostPosted: Sat Aug 22, 2009 10:11 am Reply with quoteBack to top

Jim,

Correction:

Entry #2 and #3 are from a different rss script used on my forums, and they seem to be in the correct order.

Entry #1, #4 and #5 are sql2rss.

Alex
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme