Magento - cron job script is running, but Magento order confirmation emails are not sending

Magento - cron job script is running, but Magento order confirmation emails are not sending

August 13, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento - cron job script is running, but Magento order confirmation emails are not sending

Why Magento Cron Jobs Aren’t Sending Order Confirmation Emails

As an experienced e-commerce developer, I understand the frustration when automated tasks like order confirmation emails stop working in Magento. The documentation clearly states that you need to set up a cron job on your web server for these tasks to function properly.

The issue you’re facing is quite intriguing: the cron job script appears to be running, but no automated tasks are completing. This results in order confirmation emails not being sent to customers, which can severely impact sales.

Understanding Your Issue

Let’s break down your problem step-by-step:

  1. You have a valid Magento installation with the AOE Scheduler extension installed.
  2. The cron job is configured correctly and running every minute.
  3. The cron.sh script triggers the cron.php file when executed manually (via SSH or browser).
  4. However, none of the automated tasks are completing in the scheduled 1-minute intervals.

Potential Causes and Solutions

There could be several reasons for this issue:

  1. PHP or Permissions Issue: Ensure that the PHP version running on your server is compatible with Magento 1.x. Also, verify that the user running the cron job has sufficient permissions to execute the script and access necessary files/directories.

    To check the PHP version:

    php -v
    

    To set proper file permissions (for example):

    chmod 755 /absolute/path/to/magento/cron.sh
    
  2. Environment Variables: Confirm that all required environment variables are properly configured in your Magento installation, especially for the core_email_queue_send_all task.

  3. Database Connection Issues: The cron job might face issues connecting to the database due to incorrect credentials or network issues. Double-check your database configuration file (usually located at app/etc/local.xml).

  4. Performance Bottlenecks: If your server is under heavy load, it might struggle to execute the cron jobs within the scheduled intervals. Consider optimizing your server’s performance or increasing its resources.

Debugging Steps

To better understand what’s happening:

  1. Enable Magento’s logging system by setting log to true in your index.php file.
  2. Check the system.log file (usually located at /var/log/system.log) for any error messages or warnings related to the cron job execution.

Recommended Best Practices

To ensure that your Magento cron jobs run smoothly:

  1. Always use the official Magento documentation as a reference: https://devdocs.magento.com/guides/m1x/install/installing_install.html#install-cron

  2. Regularly update your Magento installation and extensions to their latest stable versions.

  3. Monitor your server’s performance using tools like top or htop.

  4. Consider using a managed hosting provider that specializes in e-commerce platforms for better support and optimized configurations.

Conclusion

In summary, there could be various reasons why your Magento cron jobs aren’t executing properly—from PHP version incompatibilities to database connection issues. The key is to diagnose the problem by checking server logs, permissions, and environment variables.

Remember that Magento relies heavily on its cron jobs for automated tasks like order confirmation emails. If you’re unable to resolve the issue yourself, consider reaching out to a professional support service or your hosting provider’s technical team for further assistance.

For more information on Magento development best practices and troubleshooting guides, be sure to explore our blog at Laravel Company. We regularly publish articles covering various aspects of e-commerce development.

Magento 1 Security Extensions Configuration

Our network