Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Call to a member function seed() on a non-object

I am attempting to get BirdFeeder working with a Drupal installation, and am running into the following error when I access the RSS Feed:

Call to a member function seed() on a non-object

My Birdfeeder call is as follows:

global $Mint;
global $Pepper;
global $BirdFeeder;

define('BIRDFEED', $channel['title']);

include_once('/path/to/feeder/index.php');
$node->link = $BirdFeeder->seed($node->title, $base_url);

The feed is available here to show the error. The include statement has an absolute path, as the Document Root path returned an incorrect value, so this had been changed in /feeder/index.php also.

Thanks in advance for your help.

Shaun Inman
Mint/Pepper Developer
Posted on Mar 26, '08 at 11:25 am

Try moving:

global $Mint;
global $Pepper;
global $BirdFeeder;

Below:

include_once('/path/to/feeder/index.php');

Those variables won’t exist before the Feeder is included. Beyond that I am not familiar enough with Drupal to identify what the problem might be. Perhaps another user can chime in with a solution.

I have moved the global declarations below the include statement, however it still generates the same error.

It has been a while since I have done much PHP work. Can someone point me in the direction of what I could do to try to investigate where the error lies (eg getting more error information etc) so that I can try to track this down?

Instructions for installing BirdFeeder on Drupal can be found here: anvandbart.se/drupal-mint-birdfeeder-rs … statistics

You must be logged in to reply. Login above or create an account