My Magento cron works normally about a few months ago. But recently, it suddenly stop generating schedule. The cron command itself running fine in my hosting server. It is Magento ver 1.8.0.0.
These are what I have tried:
-
I try executing cron.php in the browser, and it doesn't generate schedule in cron_schedule table.
-
Install AOE Scheduler extension, hoping it can solved the problem. I can generate schedule using this extension, but Magento cron cannot execute the cron schedule.
-
Install fresh Magento ver 1.8.0.0 in hosting server, and then executing cron.php in the browser, cron_schedule table still empty.
-
Install fresh Magento ver 1.8.0.0 in my localhost, and then executing cron.php in the browser, it generates schedule. So I try to upload it to the hosting server. I clear Magento cache, then executing cron.php in the browser, surprisingly nothing happen in cron_schedule table. But it works fine in my localhost.
I have another Magento site ver 1.7.0.2 in the same hosting server, the cron is working fine.
I still don't know what the cause of this problem, so I post it here. Hoping that somebody have the same problem, and share the solution.
Best Answer
I found the solution in the forums (link not online anymore)
Previously I tried to install Magento 1.7.0.2 in my hosting server, and the cron is running fine. So I assumed my hosting cannot run Magento 1.8.0.0 cron so I was planned to downgrade my Magento site to 1.7.0.2. But before I downgrade my site, I found the solution on the link above.
After
$isShellDisabled = (stripos(PHP_OS, ‘win’) === false) ? $isShellDisabled : true;
around #47 add this line of code$isShellDisabled = true;
And now My Magento 1.8.0.0 cron run perfectly.