Magento Cron Fix

If your Magento cron isn’t working then try this quick fix.

Open cron.php in your root & find this code:

$disabledFuncs = explode(',', ini_get('disable_functions'));
$isShellDisabled = is_array($disabledFuncs) ? in_array('shell_exec', $disabledFuncs) : true;
$isShellDisabled = (stripos(PHP_OS, 'win') === false) ? $isShellDisabled : true;

Add this line to the bottom:

$isShellDisabled = true;

To make:

$disabledFuncs = explode(',', ini_get('disable_functions'));
$isShellDisabled = is_array($disabledFuncs) ? in_array('shell_exec', $disabledFuncs) : true;
$isShellDisabled = (stripos(PHP_OS, 'win') === false) ? $isShellDisabled : true;
$isShellDisabled = true;
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

Unknown cipher in list: TLSv1 [duplicate]

Next Post

UK Magento VAT rules & VAT rules for The Isle of Mann & The Channel Islands

Related Posts