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

jose reyero’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Try setting up 'process limits' on the module settings. Specially try 'process step' set it to something small, 10, 100

jose reyero’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No follow up.

liquidcms’s picture

i 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)

Valeratal’s picture

subscr
I have this too

digidoo’s picture

Same 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

rares’s picture

Title: Cron run exceeded the time limit and was aborted after Notification module enable » Cron error: Cannot use object of type stdClass as array
Category: support » bug
Status: Closed (fixed) » Active

I 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.

jeff h’s picture

I 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

rares’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

On 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.

OHGE’s picture

Subscribing

jose reyero’s picture

Status: Active » Fixed

Ok, so it seems this was due to a version mismatch.

Please reopen if it still happens with latest og stable version and notifications-dev

Status: Fixed » Closed (fixed)

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

dooug’s picture

Version: 6.x-1.x-dev » 6.x-2.2
Assigned: martinkrupicka » Unassigned
Status: Closed (fixed) » Active

Sorry 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:

, actions_permissions, admin_menu, content, content_copy, content_permissions, content_taxonomy, content_taxonomy_autocomplete, content_taxonomy_options, content_taxonomy_tree, contemplate, emaudio, emimage, emfield, emthumb, emvideo, emwave, fieldgroup, filefield, filefield_meta, flexifield, flexifield_displaycontexts, flexifield_fieldgroup, flexifield_filefield, imagefield, nodereference, nodereference_url, nodereferrer, number, optionwidgets, text, userreference, bulk_export, ctools, ctools_plugin_example, page_manager, views_content, aggregator, blog, blogapi, book, color, comment, contact, translation, dblog, forum, help, locale, menu, openid, path, php, ping, poll, profile, search, statistics, syslog, taxonomy, throttle, tracker, trigger, update, upload, block, filter, node, system, user, calendar, calendar_ical, jcalendar, date, date_api, date_locale, date_php4, date_popup, date_repeat, date_timezone, date_tools, devel, devel_generate, devel_node_access, messaging_debug, path_redirect_generate, performance, devel_themer, imageapi, imageapi_gd, imageapi_imagemagick, imagecache, imagecache_profiles, imagecache_ui, messaging_notify, messaging, messaging_mime_mail, messaging_phpmailer, messaging_privatemsg, messaging_xmpp, messaging_mail, messaging_simple, messaging_sms, messaging_twitter, notifications_cck, notifications_comment, notifications_content, notifications_feed, notifications_nice, notifications, notifications_autosubscribe, notifications_lite, notifications_ui, notifications_views, notifications_tags, advanced_help, help_example, ahah_response, better_formats, ckeditor, comment_display, custom_pagers, eminline, globalredirect, gajaxapi, imce, lightbox2, menu_block, menutrails, nice_menus, paging, panels_stylizer, path_redirect, pathauto, quicktabs, realname, search_restrict, site_map, stringoverrides, taxonomy_redirect, text_resize, token, token_actions, tokenSTARTER, transliteration, webform, panels_mini, panels_node, panels, profile_role, search_by_page, sbp_attach, sbp_nodes, sbp_paths, sbp_users, signup, signup_confirm_email, signup_guests, taxonomy_xml, imce_wysiwyg, jquery_ui, jquery_update, wysiwyg, better_exposed_filters, editview, semanticviews, views, views_bulk_operations, views_customfield, views_export, viewslivefilters, views_natural_sort, views_populate_profile_filter, views_popup_filters, views_ui,

stewest’s picture

Issue summary: View changes
Status: Active » Closed (outdated)