reBlog is a nice server side aggregator based on Feed-on-Feeds. What you can do with it is to put your favorites feeds on, choose posts you like, comment on them or tag them and publish them all together later in a new feed. It’s pretty handy if you like to publish a feed with posts you’d like to write about, but you dont have time to..
All nice and pretty until you hit the “Publish Feed” link and instead of your feed you get an error:
Warning: Unknown class passed as parameter in …/reBlog/refeed/library/RF/ClientController.class.php on line 740
reBlog is in Beta as yet, so such things are meant to happen. After looking at the source code for a few minutes I found the offending snippet.
Well, you need to open the the file ClientController.php in library/RF directory which is found in your reBlog installation.
Go to line 737 and find the following snippet:
if(is_subclass_of($ARGS['user'], 'RF_User'))
return $ARGS['user'];
if(is_numeric($ARGS['user']))
return new RF_User(array('id' => intval($ARGS['user'])));
and put the last two lines before the first two so it looks like:
if(is_numeric($ARGS['user']))
return new RF_User(array('id' => intval($ARGS['user'])));
if(is_subclass_of($ARGS['user'], 'RF_User'))
return $ARGS['user'];
Save the file and try to click again on “Publish feed” link. You should be up and running now. You are all set!
February 2, 2008 at 3:48 am
Thanks alot
Worked like a charm
Question though…how do you fetch reblog to post the feed?
I have not been able to get any of the feeds into my feed
February 2, 2008 at 4:04 am
let me clarify a bit more:
Under feeds the output ATOM has articles there but there is no articles in the RSS 2.0 why is that? and how do i get them to display
thanks
February 3, 2008 at 12:57 am
Thank you for your feedback Shonari!
Well, I can’t find _why_ it can’t produce RSS2.0 feeds. The template it uses for RSS 2.0:
page-rss2.tplis similar to RSS 1.0:page-rss1.tplfound in therefeed/styles/templates/out/directory.The only workaround I found to be working is to enable RSS 1.0 feed at least. You can do this by adding the following two lines in
refeed/out/rss.php:The last line should look like:
echo $client_controller->respond(REBLOG_RESPONSE_PUBLISHED_FEED);
you need to delete the line and replace it with:
$ARGS = $_GET;
$ARGS['v'] = 'rss1.0';
echo $client_controller->respond(REBLOG_RESPONSE_PUBLISHED_FEED, $ARGS);
Once you save the file, and try again you’ll hopefully get an RSS feed. Mind though that it is version 1.0, regardless what the links say..
Hope that helps.
February 14, 2008 at 1:16 pm
I got past the 737 code problem, but got this one when I press published feeds:
Fatal error: Call to a member function itemPageCount() on a non-object in /home/admin03/public_html/refeed/library/RF/ClientController.class.php on line 604
February 20, 2008 at 12:00 am
[...] reblog, an open source project by eyebeam. It didn’t work straight off the bat, but I found this bugfix which tells you that there are a pair of lines out of order (line 737-8 of the file [...]
April 13, 2008 at 6:54 pm
methinks this is a php issue. Don’t have time to dig into it, but I’ve been tinkering with reblog this morning, on php5.2. Got the same error(s, also pgcount error). “downgraded” to php4.4, and voila, all appears well (including rss2). HTH….
April 15, 2008 at 8:36 pm
There’s a problem with the code relating to the “source” tag of the RSS2.0 output. I modified this document in the cache/ folder:
%%E7^E77^E77779C6%%page-rss2.tpl.php
Noting that the feed title is not an array, the following replacement fixed the RSS2.0 problem for me.
/*echo ((is_array($_tmp=$this->_tpl_vars['item']->feed['title'])) ? $this->_run_mod_handler(‘escape’, true, $_tmp) : smarty_modifier_escape($_tmp)); */
echo ((is_array($_tmp=$this->_tpl_vars['item']->feed->title)) ? $this->_run_mod_handler(‘escape’, true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
April 15, 2008 at 10:55 pm
Hi,
Although I used reBlog for a project of mine, after a while I abandoned it and wrote a script based on SimplePie. So, to be honest I can’t help with feedback since I dont have it installed. You can still use this area though for posting comments. It would be useful if you included along with your comment your PHP and reBlog version so people can compare against their installations.
Thanks for all the useful comments!