FeedAPI module and Drupal 6.x - memory_get_usage() error

Events happening in the community are now at Drupal community events on www.drupal.org.
fioritto's picture

I have been trying to get Drupal 6.x to work with FeedAPI. I go through the installation process, create a feed, etc and once I try to refresh the feed to add the feed items I keep getting the following message:

error message: undefined function memory_get_usage()

The message refers to the feedapi.info file I think.

I managed to get this working on an installation of 5.x on my hosting service, HostingMatters.

Any thoughts? I searched around and can't find anything that specifically addresses this issue.

Thanks.

Comments

If you are using a PHP

fgm@drupal.org's picture

If you are using a PHP version lower than 5.2.1, you need to compile it with --enable-memory-limit in order for this function and memory_get_peak_usage() to be available.

See http://php.net/memory_get_usage

The best solution is probably to install an up-to-date PHP version. Otherwise you can just rebuild with that option.

I applied the patch provided

fioritto's picture

I applied the patch provided in the post above: http://drupal.org/node/551926

That solved my issue.

RSS & Aggregation

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: