Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After running cron.php and waiting several minutes the cron run fails with Error 500 Internal Server Error - Does anyone know how I can fix this?
Comments
Comment #1
aristeides CreditAttribution: aristeides commentedsame issue here....
Comment #2
yan CreditAttribution: yan commentedThere can be many reasons. In my case it was the number of items to index on each cron run. I lowered it and the error disappeared. Do so on admin/settings/search.
But I still don't know which setting causes this error.
Comment #3
dpearcefl CreditAttribution: dpearcefl commentedphp is timing out (max_execution_time) because the reindex time is too long. Decreasing the number of items to index will overcome this issue. Or increasing the max_execution_time setting will help also.
If this issue is resolved, please set this issue to closed.
Comment #4
lily.yan CreditAttribution: lily.yan commentedsame issue here...., how to fix it? thanks a lot.
Comment #5
lelizondo CreditAttribution: lelizondo commentedif you can, try running cron using drush
Comment #6
lily.yan CreditAttribution: lily.yan commentedAfter running "sudo drush cron", I got the following:
PHP Fatal error: Call to undefined function views_build_view() in /var/www/html/../drupal-6.22/includes/common.inc(1696) : eval()'d code on line 6
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function views_build_view() in /var/www/html/../drupal-6.22/includes/common.inc(1696) : eval()'d code, line 6
WD cron: Cron run exceeded the time limit and was aborted.
Comment #7
lelizondo CreditAttribution: lelizondo commentedWell, now you know that there is a problem with Views. Check for available updates on your modules.
Also, you can configure your php.ini to increase the max_execution_time. In ubuntu it would be something like /etc/php5/cli/php.ini