the first time i run cron.php today :
error :Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\modules\update\update.fetch.inc on line 185
so , i run again the crom.php
but more error showup:

Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\includes\common.inc on line 501

Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\includes\session.inc on line 56

Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\sites\all\modules\memcache\memcache_admin\memcache_admin.module on line 224

Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\includes\session.inc on line 14

the third time i run cron "failed"
.
.
.
failed and failed again and again

i think cron.php is a week point of my site , so , asked for your help

Comments

cesar.brod@gmail.com’s picture

I just noticed my cron didn't run drupal's cron for the last five days for the same reason. Tweaking php.ini max_execution_time didn't help at all. Drupal always reported the 240 seconds. Tried to low to 50 the number of indexed itens in: admin/settings/search. Also lowered to 10. Still not working. Anyone? Any hint?

Thanks!

haojiang’s picture

i delete all of my feed , then the cron.php goes all right , but the point is that ::::: i have to delete all!
do you use the module "feedapi" too?

haojiang’s picture


Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\includes\common.inc on line 501

Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\includes\session.inc on line 56

Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\sites\all\modules\memcache\memcache_admin\memcache_admin.module on line 224

Fatal error: Maximum execution time of 240 seconds exceeded in C:\root\feed\includes\session.inc on line 14
cesar.brod@gmail.com’s picture

Nopes, I don't use the feedapi and it seems my problem is only with the search.module. I still haven't figured out how to solve this.

Thanks!

cesar.brod@gmail.com’s picture

Well, I just tried to run it again and it seems this problem is not actually tied to a specific module:

Fatal error: Maximum execution time of 240 seconds exceeded in /var/casacinepoa/includes/unicode.inc(345) : regexp code on line 1

Question is: how to make this Maximum execution time bigger, so at least we can debug this a little further?

mikeryan’s picture

Status: Active » Closed (duplicate)

The cron limitation of 240 seconds is a long-standing problem, this is the currently active issue for that: #375578: Cron: guarantee each cron implementation the same share of execution time.

In terms of figuring out what module is taking so much cron time, one thing to do is to instrument module_invoke_all() - something like

    $function = $module .'_'. $hook;
    if ($hook == 'cron') {
      $start = time();
      print $function . ': ';
    }
    $result = call_user_func_array($function, $args);
    if ($hook == 'cron') {
      print time() - $start . ' sec<br />;
    }
finaukaufusi’s picture

Hi guys,

Look inside: includes/common.inc
Line: 2716

Change the set_time_limit to a higher number such as 400.

Hope it will help someone.

Finau

www.businessme.co.nz

Chimos’s picture

Issue summary: View changes

This worked, thanks!