Resolving problems with the BuzzMonitor installation

Posted on June 6, 2007 by Guy Snir
Filed Under Open Source, Enterprise, PHP |

I have downloaded and installed BuzzMonitor, an Open Source content aggregating product.

I had a few issues with the custom installation process that I thought I would share:

  1. I got an error in the Apache error_log:
    PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes)
    This was simple to resolve, you just need to increase the memory_limit parameter in the php.ini file
  2. A little trickier was the following error:
    […] PHP Notice: Trying to get property of non-object in bootstrap.inc on line 574
    […] PHP Notice: Undefined property: stdClass::$uid in session.inc on line 35But after a quick Google search I found out that there was a missing user in the Drupal / BuzzMonitor database with a uid “0″ (i.e. INSERT INTO users (uid, name, mail) VALUES (0, ”, ”);)
  3. This next issue took me the longest, but actually is very simple once you look hard enough (The problem was many “roles ) ) : ?>” appearing in the main page). To solve this:
    In the file: <installation dir>/sites/default/themes/e0rdefault/block.tpl.php, change the following code
    <?
    global $user;
    if ( in_array ( “admin”, $user->roles ) ) :?>
    <a class=”blockeditor” style=”float: right”
    href=”<?php print base_path()?>admin/block/configure/<?=$block->module?>/
    <?=$block->delta?>”>[ Edit ]</a>
    <? endif; ?>

    To this code:
    <?php
    global $user;
    if (in_array(”admin”, $user->roles)): ?><a class=”blockeditor” style=”float: right” href=”<?php print base_path()?>admin/block/configure/
    <?php print $block->module?>/<?php print $block->delta ?>”>[ Edit ]</a>
    <?php endif; ?>

    And thats it.

These worked for me, and hopefully will help someone else.

Guy

AddThis Social Bookmark Button

Comments

17 Responses to “Resolving problems with the BuzzMonitor installation”

  1. Pierre Guillaume Wielezynski on June 7th, 2007 9:48 pm

    hi Guy,

    Thanks for identifying and offering a fix for these bugs. We have updated the install accordingly: http://buzzm.worldbank.org/download

    Thanks again!

    PG

  2. Guy Snir on June 10th, 2007 8:58 am

    Hi Pierre,

    No problem, happy I could help!

    While we are on the subject I would like to share some more details:

    1) In order to run the cron.php script you need to edit the .htaccess file and add your servers IP to the list of allowed IP’s

    2) I got many warnings regarding the e0r.module file (#1 argument is not an array). I am running php5 so I made the following changes to the sites/default/modules/e0r/e0r.module file:
    On lines 1167 and 1172 I added a cast to the $result parameter [i.e. (array)$result ] and this stopped the warnings

    Regards,
    Guy

  3. brent on June 21st, 2007 1:10 am

    Guy,

    I ran into the same errors that you mentioned in your comment:

    warning: array_merge() [function.array-merge]: Argument #1 is not an array in sites/default/modules/e0r/e0r.module on line 1167.

    Yet I can’t figure out how you got it working. Could you include a code snippet from lines 1167 and 1172?

    Thanks… Brent

  4. Guy Snir on June 21st, 2007 1:36 am

    Hi Brent,

    What worked for me was casting the $result into an array, like this:

    if ( ($arg == “source”) || ($arg == “url_profile”) ) {
    if ($args[$i+1] != “tag”) {
    // next argument should be sourceid, could be tag or date
    ##LINE1167-> $result = array_merge( (array)$result, e0r_parse_url_source($args[$i+1]));
    }
    }
    else if ($arg == “feed”) {
    if (isset($args[$i+1])) {
    ##LINE1172-> $result = array_merge( (array)$result, e0r_parse_url_feed($args[$i+1]));
    }
    }

    I had more errors after this part, but I did not have the time to try and solve them…

    Hope this helps,
    Guy

  5. Release Three's Got Fixes on July 7th, 2007 6:56 pm

    There’s a v 0.2 of BuzzMonitor available for download, now, that has fixes suggested by you, as well as couple others.

    Thanks for your continued feedback.

  6. Guy Snir on July 8th, 2007 12:11 am

    Good to know, I will try it out.

  7. Lopo on January 28th, 2008 5:09 pm

    Curiosly I’m getting a strange error that seems to be originated on sessions (I think).

    I have the last version of BM from the site.

    I login and when I try to do anything I’m logged out automaticaly.

    PHP 5.2.2.
    MySQL 5.0.16
    - with InnoDB is ON (done by hand)
    - with UTF-8 Unicode (utf8)
    - with Connection collation utf8_unicode_ci

    The PHPSESSIONID cookie is created.

    Does anyone know what could be?

  8. Lopo on January 28th, 2008 7:48 pm

    Ok!

    It is working (sort of) with PHP 4.2.2
    Leech doesn’t leech at all :(

  9. Guy Snir on January 29th, 2008 2:31 am

    Hey Lopo,

    It’s been a while since I tested BuzzMonitor, so I am afraid I cannot offer too much help.

    From my experience they are rather responsive to emails, so I would try contacting Pierre or someone else from the project.

    Guy

  10. Lopo on January 29th, 2008 8:57 am

    Ok! Thanks :)

  11. Lopo on February 3rd, 2008 9:44 am

    Hi,

    Nope. No answer.
    I manage to have it almost working but Leech does not leech a thing ;(

    Will try on the Leech forum but since the version on BM is not the currently available…

    I think I may quit it.

    Thanks anyway.

  12. Guy Snir on February 3rd, 2008 11:44 am

    Hi Lopo,

    Sorry to hear that…

    Please update if you find a valuable alternative!

    Best,
    Guy

  13. Lopo on February 3rd, 2008 10:31 pm

    I noticed that BM uses an old version of Leech and it seems also that it is based on Drupal 4.7.

    The guys at DevelopmentSeed.com developed something further using FeedAPI and the concept used in BM called ManagingNews but it seems that it will be an hosted product.

    It’s at http://www.managingnews.com/

  14. Lopo on February 3rd, 2008 10:39 pm
  15. Guy Snir on February 4th, 2008 4:07 am

    Very nice…

    Thanks for the update Lopo, I will follow this to see what the outcome is.

  16. Rninja on March 6th, 2008 3:41 pm

    I too am constantly getting logged out everytime I try to do something in the interface (similar to Lupo). I have pretty much the same setup too on FreeBSD 6.2.

    -Rninja

  17. Lopo on April 13th, 2008 3:24 pm

    Managing News is out… but is only hosted and a bit expensive for most small NGOs in Portugal.

    Neverthless, it looks good.