FeedAPI doesnt woks after drupal 6.14 upgrade. Aggregator module works fine, but feedapi doesnt find new items when cron runs. Feeds only refresh manually. Thanks for any help.


westwesterson’s picture

Title: FeedAPI doesnt woks after drupal 6.14 upgrade » FeedAPI doesnt update on cron run after drupal 6.14 upgrade

I can confirm that this is a problem.

yhahn’s picture

Priority: Normal » Critical

This is caused by a change in 6.14 to common.inc which clears out the max_execution_time setting of PHP when running cron:

function drupal_cron_run() {
  // Try to allocate enough time to run all the hook_cron implementations.
  if (function_exists('set_time_limit')) {

This is meant to make the cron max exec time unlimited, but feedapi (and other modules) that attempt calculations based on max_execution_time in order to limit their cron time usage more or less barf. For example, this change causes feedapi_cron_time() to always return 0, meaning that feedapi will no longer run.

It's not clear what the right solution is here and it is somewhat disconcerting given that several other modules make use of this PHP setting for calculations.

Aron Novak’s picture

Status: Active » Fixed

In -dev, it's already fixed. However this change in core is painful.

$max_exec_time = ini_get('max_execution_time') == 0 ? 120 : ini_get('max_execution_time');
alex_b’s picture

For the record, the issue for the fix in #3 is here: #350788-33: Feeds not refreshing on cron - until a FeedAPI 1.9 beta 1 is out, please apply the patch from there.

aharown07’s picture

Haven't updated to 6.14 yet and need to make sure I'm clear on what to do.
I gather that 6.14 will break FeedAPI updating, but the patch to fix that is here: http://drupal.org/node/350788#comment-1971190?

Or can I just as easily install the latest FeedAPI dev and fix it that way?

westwesterson’s picture

No need to patch if you install the beta.
See: http://drupal.org/node/581484

AaronELBorg’s picture

Any other issues involved with this beta?

hass’s picture

Only to note - the patch for this core bug can be found at #193383: set_time_limit: Centralize calls and prevent warnings and errors or now in D6-DEV.

tobey_p’s picture


mimpse’s picture

Upgrading to FeedAPI 1.9 beta worked for me too...

lbarrioc’s picture

But where is "Promoted items" parameter in feedAPI 6.x-1.9 content types configuration?
Now the cron runs but new feed items aren't published in fronpage.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

spangaroo’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Active

Sorry I don't know if it's bad etiquette to open something that's already been closed, but this was the first thing that came up in my search.

I'm up to date on all of my modules and core 6.14. My feedAPI version is 6.x-1.9-beta2.

I'm also experiencing the problem of my RSS feed of images from a Flickr group that's not updating. The core aggregator has no issue, but I have to refresh manually to receive the new images.

Excellent module overall, just curious as to what to do about this. Thank you.

telcopolis’s picture

Same issue here. Drupal 6.14 and FEEDAPI 1.9 beta 2
Only manual, new feeds are added.
Cron does not seem to work.

hass’s picture

ianchan’s picture


Ether’s picture

Version: 6.x-1.8 » 6.x-1.9-beta3

How to apply the patch ?

Matt V.’s picture

Ether, there is a handbook section on applying patches.

For what it's worth, I was still having a problem after updating to 6.x-1.9-beta3. I applied the patch linked to from comment #15 and that fixed the issue for me.

quickcel’s picture

Or you can upgrade to the 6.15 release....the patch is rolled into that one for you: http://drupal.org/node/661600

neclimdul’s picture

Status: Active » Closed (fixed)

Between this been mostly dealt with in feedapi and the fix in core I think this really is closed now.

fiLi’s picture

Same problem. Subscribe.