1

I am having Magento 1.9.1 with cron setup and triggered fine! When i place a new order i am not receiving any emails (not admin not customer). I have tried all possible commands:

*/5 * * * * /bin/sh MAGENTO_PATH/cron.sh
*/5 * * * * /bin/bash MAGENTO_PATH/cron.sh
*/5 * * * * /usr/bin/php MAGENTO_PATH/cron.php
*/5 * * * * /usr/local/bin/php -f MAGENTO_PATH/cron.php 

Do the .sh script need any modification?? Do i miss anything else?

3
  • Not need in modification
    – Amit Bera
    Commented Jan 17, 2015 at 20:51
  • Are your other cron jobs working? Are there erros in the log files?
    – SR_Magento
    Commented Jan 17, 2015 at 21:17
  • are you getting the original order emails as these are not sent via cron Commented Jan 19, 2015 at 10:00

1 Answer 1

2

I had the same issue. I guess its bug from Magento 1.8~1.9.1.

Try this. Open the file cron.php in the root directory of Magento and look for (around line 47):

$isShellDisabled = (stripos(PHP_OS, ‘win’) === false) ? $isShellDisabled : true;

After this line, add:

$isShellDisabled = true;

Save the file. After a couple minutes the cron should start working.

Thanks for the source: http://support.xtento.com/wiki/Setting_up_the_Magento_cronjob

From this I fixed the newsletter and for emails use this extension: http://www.magentocommerce.com/magento-connect/smtp-pro-email-free-custom-smtp-email.html

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.