Troubleshooting a Magento Cronjob

You’ve setup a Magento cronjob correctly following the How to Setup a Magento Cronjob tutorial but it is still non-functional. Firstly ensure you are using the method of calling cron.php directly. Why you ask? Because it is the most universal method of running the cronjob and helps eliminate other potential permission and server side issues which could be at fault.

Cron issues on Magento 1.8/1.9 Community Edition

In the root of your Magento installation open the cron.php file and locate the following line (around line 48):

Directly after that line add the following line of code:

Save the file and upload it to your server ensuring you overwrite the previous version.

 

Cronjob Not Running All Queued Tasks

Sometimes tasks pile up and the store is unable to run all the assigned tasks in the allotted time. When this happens Magento will skip the un-run tasks. To decrease the likelihood that a task will be skipped set the stores “Missed if Not Run Within” setting to a longer time duration with the following steps:

In the admin panel navigate to System>Configuration>System>Cron (Scheduled Tasks) and set this to 60 and save the config.

 

Hans-Eirik Hanifl

view all posts

Hans-Eirik Hanifl is a forward thinking e-commerce and marketing consultant. As an advocate for the free exchange of knowledge, he founded E-Commerce Gorilla as a place where like-minded individuals can ask questions and share their expertise on practical solutions in the area of e-commerce and marketing. He is the owner of TRM Marketing and an avid supporter of the open source community.

0 Comments Join the Conversation →


Leave a Reply

Stay in the loop!

E-Commerce Gorilla Avatar

Join the E-Commerce Gorilla e-mail newsletter. We provide monthly updates on new articles featuring all aspects of online sales and E-Commerce setup. We cover the do's and don'ts of effective online sales, along with great giveaways. As a newsletter subscriber you are automatically entered for any competitions and giveaways.* Join our community of engaged online marketing experts, great content, and great giveaways. You can't go wrong.