Knowledge Base
MilesWeb / Web Hosting FAQ

What to do if Cron Jobs do not run on Magento 1.8 After Upgrade?

Approx. read time : 2 min

This article focuses on the solution to a problem that may occur after upgrading a Magento installation to version 1.8.

# What is the problem?

After upgrading a Magento installation to version 1.8 cron jobs, you will observe that it may not appear to run as expected. For example, you may see the following problems :

  • Newsletters are not visible.
  • Catalog price rules didn’t get updated.
  • Google sitemap doesn’t get generated.
  • Currency rates don’t get updated.
  • Customer alerts don’t get sent.

# Solution to the problem.

Perform the following steps to solve this problem :

1) Open the Magento cron.php file in a text editor file. To do this you can login to your account using SSH, or also if your account has cPanel then login using cPanel File Manager.

2) Place the following code block around line 45 :

3) Now the following code and paste it after the code block you placed in the above step 2 :

4) Save these changes to the cron.php file and exit the text editor. The cron job will run correctly now.

Also Read :

1) Learn to run PHP Scripts from Cron jobs

2) How to Take the Cron Job Backups using JetBackup?

Sonam Wagh
With an interest in doing something creative daily, Sonam works as a Digital Marketing Executive. She likes to write technical blogs related to web hosting, digital marketing, and other IT topics. She also likes to spend her leisure time on social media to find different strategies for client engagement.
Need help? We’re always here for you.
Register Your Free Domain Name
OFFER EXPIRES IN
04
min
59
sec