I was enable Notification module in my drupal 6.9 after that I was unable run cron.
Cron always crash with message: "Cron run exceeded the time limit and was aborted"
Apache log:
[Fri Jan 23 13:20:07 2009] [error] [client 172.16.1.58] PHP Fatal error:
Cannot use object of type stdClass as array in C:\\Web\\sites\\all\\modules\\notifications\\notifications.cron.inc on line 459, referer: http://194.213.40.99/admin/reports/status
Drupal: 6.9
MySQL database 5.1.30
PHP 5.2.8
PHP memory limit 128M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache/2.2.11 (Win32) PHP/5.2.8
Comments
Comment #1
jose reyero commentedTry setting up 'process limits' on the module settings. Specially try 'process step' set it to something small, 10, 100
Comment #2
jose reyero commentedNo follow up.
Comment #3
liquidcms commentedi am seeing these as well when cron isn't running
how is some setup fixing a "Cannot use object of type stdClass as array " fatal error, sound like a bug in the code where you are treating an object as if it was an array (something you could get away with in php 4, but not in 5)
Comment #4
Valeratal commentedsubscr
I have this too
Comment #5
digidoo commentedSame problem with version 5.12 when using mimemail method.
In my case, cron broke while processing notifications, but the apache log figured out that there's is a problem related to the module simplenews_template v5.14:
PHP Fatal error: Call to undefined function _simplenews_template_message() in /var/www/sites/all/modules/simplenews_template/simplenews_template.module on line 183
I fixed this issue as described here: http://drupal.org/node/373113.
Now, my notfications with mimemail are working fine.
Cheers
Comment #6
rares commentedI also have this problem, and this happens on a fresh site with no content, so I don't think it's any kind of cron overload.
This has also been reported as #412070: Cron error using organic groups notification and notifications module, so I would like to retag this.
EDIT: I am using Nessaging 6.x-1.1 and Notifications 6.x-1.0. I know there is Notifications 6.x-1.1 available, but I am using 1.0 because of Organic Groups. However, I get this message even when OG is disabled.
Comment #7
jeff h commentedI was getting the same error, and I'm not using Simplenews. I traced it all the way back to the mimemail module (I was using a dev version, because there's nothing released for 6 yet).
If this could be you, check my post over at that module (http://drupal.org/node/415392)... hope this helps someone.
Jeff
Comment #8
rares commentedOn my setup, which required notifications+messaging to serve Organic Groups, the problem was fixed by upgrading to the -dev versions of of notifications and of messaging, and to the 6.x-1.2 version of OG. I am using simplemail though, so I can't say much about mimemail.
Comment #9
OHGE commentedSubscribing
Comment #10
jose reyero commentedOk, so it seems this was due to a version mismatch.
Please reopen if it still happens with latest og stable version and notifications-dev
Comment #12
dooug commentedSorry to reactivate this thread, but I am experience this problem with Cron dying and giving the error: "Cron run exceeded the time limit and was aborted"
I used the advice in the comment below to identify that the Notifications module is the cause of Cron stopping.
http://drupal.org/node/123269#comment-644012
I tried disabling the sub-modules, but it seems the notifications module is causing the problem.
here are the modules on the site:
Comment #13
stewest