Problem
After you upgrade a Magento installation to version 1.8, cron jobs do not appear to run. For example, you may notice that the following occurs:- Catalog price rules are not updated.
- Newsletters are not sent.
- Google Sitemaps are not generated.
- Customer alerts are not sent.
- Currency rates are not updated.
Resolution
To work around this problem, follow these steps:- Open the Magento cron.php file in a text editor. You can do this by logging in to your account using SSH, or if your account includes cPanel, from the cPanel File Manager.
- Locate the following code block around line 45:
- Copy the following line of code and paste it after the code block you located in step 2:
- Save the changes to the cron.php file and exit the text editor. The cron job should now run correctly.