Cron exceeding time limit with module installed
ajzz - October 2, 2009 - 01:49
| Project: | Classified Ads |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
After inserting a watchdog output clause in modules.inc, the cron timeout can be traced to this error:
Fatal error: Call to undefined function user_preferred_language() in /xxx/xxxx/xxxx/ed_classified/ed_classified_notifications.inc on line 90
Please help. The production system is running on cvs version with Drupal-5 tag. Disabling the classified module gets rid of the error.

#1
This is still an issue... any ideas?
#2
That error message ("Cron exceeding time limit") can be misleading. I had it happen when a bad PHP code snippet redirected to another page (cron calls the node rendering functions, which causes filters to be invoked, etc.) so it is probably due to faulty node rendering somewhere in the classified module.
See: http://drupal.org/node/123269
and especially: http://drupal.org/node/123269#comment-644012