{"id":18843,"date":"2024-05-25T11:35:00","date_gmt":"2024-05-25T11:35:00","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/what-to-do-if-cron-jobs-do-not-run-on-magento-1-8-after-upgrade\/"},"modified":"2024-06-16T16:43:45","modified_gmt":"2024-06-16T16:43:45","slug":"what-to-do-if-cron-jobs-do-not-run-on-magento-1-8-after-upgrade","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/what-to-do-if-cron-jobs-do-not-run-on-magento-1-8-after-upgrade\/","title":{"rendered":"What to do if Cron Jobs do not run on Magento 1.8 After Upgrade?"},"content":{"rendered":"\n<p>This article focuses on the solution to a problem that may occur after upgrading a Magento installation to version 1.8.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"># What is the problem?<\/h2>\n\n\n\n<p>After upgrading a&nbsp;Magento installation&nbsp;to version 1.8 cron jobs, you will observe that it may not appear to run as expected. For example, you may see the following problems :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Newsletters are not visible.<\/li>\n\n\n\n<li>Catalog price rules didn\u2019t get updated.<\/li>\n\n\n\n<li>Google sitemap doesn\u2019t get generated.<\/li>\n\n\n\n<li>Currency rates don\u2019t get updated.<\/li>\n\n\n\n<li>Customer alerts don\u2019t get sent.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"># Solution to the problem.<\/h2>\n\n\n\n<p>Perform the following steps to solve this problem :<\/p>\n\n\n\n<p>1) Open the&nbsp;<strong>Magento cron.php file<\/strong>&nbsp;in a text editor file. To do this you can login to your account using SSH, or also if your account has cPanel then login using cPanel File Manager.<\/p>\n\n\n\n<p>2) Place the following code block around line 45 :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$disabledFuncs = explode(',', ini_get('disable_functions'));\n\n$isShellDisabled = is_array($disabledFuncs) ? in_array('shell_exec', $disabledFuncs) : true;\n\n$isShellDisabled = (stripos(PHP_OS, 'win') === false) ? $isShellDisabled : true;<\/pre>\n\n\n\n<p>3) Now the following code and paste it after the code block you placed in the above step 2 :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$isShellDisabled = true;<\/pre>\n\n\n\n<p>4) Save these changes to the cron.php file and exit the text editor. The cron job will run correctly now.<\/p>\n\n\n\n<p><strong>Also Read<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/hostvento.com\/kb\/web-hosting\/learn-using-gtmetrix-to-improve-magento-performance\/\" target=\"_blank\" rel=\"noopener\">Learn using GTMetrix to improve Magento Performance<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/hostvento.com\/kb\/web-hosting\/how-to-edit-a-htaccess-file-through-the-cpanel-file-manager\/\" target=\"_blank\" rel=\"noopener\">How To Edit A .htaccess File Through The cPanel File Manager?<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/How to Regenerate Thumbnails in WordPress?\" target=\"_blank\">How to Regenerate Thumbnails in WordPress?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article focuses on the solution to a problem that may occur after upgrading a Magento installation to version 1.8. # What is the problem? After upgrading a&nbsp;Magento installation&nbsp;to version 1.8 cron jobs, you will observe that it may not appear to run as expected. For example, you may see the following problems : # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":1398,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-18843","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=18843"}],"version-history":[{"count":2,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18843\/revisions"}],"predecessor-version":[{"id":21619,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/18843\/revisions\/21619"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=18843"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=18843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}