FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Some feeds not producing output, some are fine. View next topic
View previous topic
Post new topicReply to topic
Author Message
gnfti



Joined: 15 Jan 2008
Posts: 15
Location: The Hague, Netherlands

PostPosted: Thu May 15, 2008 2:30 pm Reply with quoteBack to top

Some feeds in my mesh scripts don't produce any output (when accessed directly they load fine). The config file is below, any ideas? I've commented out the feeds that *do* work for debugging purposes. The high item counts are for debugging as well, I'll change this back. Thanks in advance!

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 = 1;

//
// $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_blogs.xml";

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

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

// Entry #1
//Array("fileURL" => "http://feeds.gawker.com/wonkette/excerpts.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Wonkette",
//      "feedExtra1" => "http://www.wonkette.com/"
//      )
//,

// Entry #2
Array("fileURL" => "http://feeds.feedburner.com/firedoglake/fdl",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "Firedoglake",
      "feedExtra1" => "http://firedoglake.com/"
      )
,

// Entry #3
Array("fileURL" => "http://feeds.feedburner.com/TheCarpetbaggerReport",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "The Carpetbagger Report",
      "feedExtra1" => "http://www.thecarpetbaggerreport.com/"
      )
,

// Entry #5
//Array("fileURL" => "http://localhost/electicker/add_timezone_0100_dc.php?feed=http://feeds.huffingtonpost.com/huffingtonpost/TheBlog",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Huffington Post: The Blog",
//      "feedExtra1" => "http://www.huffingtonpost.com/the-blog/"
//      )
//,

// Entry #7
//Array("fileURL" => "http://localhost/electicker/add_timezone_0400_std.php?feed=http://feeds.feedburner.com/timeblogs/real_clear_politics",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Real Clear Politics Time Blog",
//      "feedExtra1" => "http://www.time-blog.com/real_clear_politics/"
//      )
//,

// Entry #8
//Array("fileURL" => "http://blogs.guardian.co.uk/usa/atom.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Guardian: Deadline USA",
//      "feedExtra1" => "http://blogs.guardian.co.uk/usa/"
//      )
//,

// Entry #10
Array("fileURL" => "http://feeds.feedburner.com/andrewsullivan/rApM",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "Andrew Sullivan",
      "feedExtra1" => "http://andrewsullivan.theatlantic.com/"
      )
,

// Entry #11
//Array("fileURL" => "http://localhost/electicker/add_timezone_0400_std.php?feed=http://marcambinder.theatlantic.com/index.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Marc Ambinder",
//      "feedExtra1" => "http://marcambinder.theatlantic.com/"
//      )
//,

// Entry #12
//Array("fileURL" => "http://localhost/electicker/add_timezone_est_to_edt_and_add_ellipsis.php?feed=http://www.politico.com/rss/bensmith.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Ben Smith",
//      "feedExtra1" => "http://www.politico.com/blogs/bensmith/"
//      )
//,

// Entry #13
//Array("fileURL" => "http://opinionator.blogs.nytimes.com/rss2.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "NYT: Opinionator",
//      "feedExtra1" => "http://opinionator.blogs.nytimes.com/?hp"
//      )
//,

// Entry #15
//Array("fileURL" => "http://localhost/electicker/add_timezone_est_to_edt_and_add_ellipsis.php?feed=http://www.politico.com/rss/jonathanmartin.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Jonathan Martin",
//      "feedExtra1" => "http://www.politico.com/blogs/jonathanmartin/"
//      )
//,

// Entry #16
Array("fileURL" => "http://obsidianwings.blogs.com/obsidian_wings/index.rdf",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "Obsidian Wings",
      "feedExtra1" => "http://obsidianwings.blogs.com/obsidian_wings/"
      )
);
//
// 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]
View user's profileVisit poster's website
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Sat May 17, 2008 8:10 am Reply with quoteBack to top

gnfti wrote:
Some feeds in my mesh scripts don't produce any output (when accessed directly they load fine). The config file is below, any ideas? I've commented out the feeds that *do* work for debugging purposes. The high item counts are for debugging as well, I'll change this back. Thanks in advance!

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 = 1;

//
// $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_blogs.xml";

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

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

// Entry #1
//Array("fileURL" => "http://feeds.gawker.com/wonkette/excerpts.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Wonkette",
//      "feedExtra1" => "http://www.wonkette.com/"
//      )
//,

// Entry #2
Array("fileURL" => "http://feeds.feedburner.com/firedoglake/fdl",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "Firedoglake",
      "feedExtra1" => "http://firedoglake.com/"
      )
,

// Entry #3
Array("fileURL" => "http://feeds.feedburner.com/TheCarpetbaggerReport",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "The Carpetbagger Report",
      "feedExtra1" => "http://www.thecarpetbaggerreport.com/"
      )
,

// Entry #5
//Array("fileURL" => "http://localhost/electicker/add_timezone_0100_dc.php?feed=http://feeds.huffingtonpost.com/huffingtonpost/TheBlog",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Huffington Post: The Blog",
//      "feedExtra1" => "http://www.huffingtonpost.com/the-blog/"
//      )
//,

// Entry #7
//Array("fileURL" => "http://localhost/electicker/add_timezone_0400_std.php?feed=http://feeds.feedburner.com/timeblogs/real_clear_politics",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Real Clear Politics Time Blog",
//      "feedExtra1" => "http://www.time-blog.com/real_clear_politics/"
//      )
//,

// Entry #8
//Array("fileURL" => "http://blogs.guardian.co.uk/usa/atom.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Guardian: Deadline USA",
//      "feedExtra1" => "http://blogs.guardian.co.uk/usa/"
//      )
//,

// Entry #10
Array("fileURL" => "http://feeds.feedburner.com/andrewsullivan/rApM",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "Andrew Sullivan",
      "feedExtra1" => "http://andrewsullivan.theatlantic.com/"
      )
,

// Entry #11
//Array("fileURL" => "http://localhost/electicker/add_timezone_0400_std.php?feed=http://marcambinder.theatlantic.com/index.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Marc Ambinder",
//      "feedExtra1" => "http://marcambinder.theatlantic.com/"
//      )
//,

// Entry #12
//Array("fileURL" => "http://localhost/electicker/add_timezone_est_to_edt_and_add_ellipsis.php?feed=http://www.politico.com/rss/bensmith.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Ben Smith",
//      "feedExtra1" => "http://www.politico.com/blogs/bensmith/"
//      )
//,

// Entry #13
//Array("fileURL" => "http://opinionator.blogs.nytimes.com/rss2.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "NYT: Opinionator",
//      "feedExtra1" => "http://opinionator.blogs.nytimes.com/?hp"
//      )
//,

// Entry #15
//Array("fileURL" => "http://localhost/electicker/add_timezone_est_to_edt_and_add_ellipsis.php?feed=http://www.politico.com/rss/jonathanmartin.xml",
//      "itemCount" => "3",
//      "feedTTL" => "1",
//      "feedExtra" => "Jonathan Martin",
//      "feedExtra1" => "http://www.politico.com/blogs/jonathanmartin/"
//      )
//,

// Entry #16
Array("fileURL" => "http://obsidianwings.blogs.com/obsidian_wings/index.rdf",
      "itemCount" => "33",
      "feedTTL" => "1",
      "feedExtra" => "Obsidian Wings",
      "feedExtra1" => "http://obsidianwings.blogs.com/obsidian_wings/"
      )
);
//
// 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]


I have seen this with feed burner not using the encoding that it says it is. I haven't yet found a work around that always works. Not some of their servers work just fine.

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
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