[Skip Header and Navigation] [Jump to Main Content]

Solving Cron run exceeded the time limit and was aborted Error

Recently i got this error in my log
Cron run exceeded the time limit and was aborted.

apparently it was because i have added a redirect page to keep an old path and avoid 404 error
so i have added a page with php code with a simple drupal_goto()

I have found that this breaks cron.php

I have found here is a simple solution , and here it is

<?php
// redirect only if this is not cron script  
if ($_SERVER['SCRIPT_NAME'] != '/cron.php') {
  drupal_goto('<front>');
}
?>
CMS -Content Management Systems
What is a CMS website
Drupal CMS
The Benefits of a Drupal website
DevArt- drupal websites
DevArt the website you need

Latest Tweets

DevArt: JCss version 6.x .1.1 is out http://tinyurl.com/27fbtzk 2 weeks 1 hour ago
DevArt: דרופל הגיע לממשלת ישראל ! http://tinyurl.com/3x5k4zw 6 weeks 5 days ago
DevArt: יבוא נתונים וניהול מסדי נתונים בדרופל http://tinyurl.com/35khcav 7 weeks 4 days ago
DevArt: קביעת שפה הכניסה לאתר לפי ארץ באתר רב לשוני http://tinyurl.com/34ft4s9 8 weeks 5 days ago
DevArt: בניית אתרים דרופל- סיפורי לקוחות מרוצים http://dev-art.net/he/testimonials 9 weeks 3 days ago

Testimony

I have worked with DevArt for over a year and I highly recommend them for any drupal needs.

 

What has impressed me most about Avior, is his loyalty and integrity. He has always been there for my company and because I was a start up company even helped me out on a payment plan. He's also a very hard worker and worked many late nights before my launch

 

Andrew Gitt

Principal & CMO

Story Time For Me, Inc.