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:
- 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 - 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, ”, ”);) - 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
Comments
17 Responses to “Resolving problems with the BuzzMonitor installation”
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
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
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
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
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.
Good to know, I will try it out.
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?
Ok!
It is working (sort of) with PHP 4.2.2
Leech doesn’t leech at all
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
Ok! Thanks
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.
Hi Lopo,
Sorry to hear that…
Please update if you find a valuable alternative!
Best,
Guy
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/
More on this evolution at http://www.developmentseed.org/blog/managingnews/design/extreme_makeover
Very nice…
Thanks for the update Lopo, I will follow this to see what the outcome is.
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
Managing News is out… but is only hosted and a bit expensive for most small NGOs in Portugal.
Neverthless, it looks good.