{"id":1356,"date":"2011-03-19T15:05:28","date_gmt":"2011-03-19T22:05:28","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=1356"},"modified":"2014-03-01T22:35:00","modified_gmt":"2014-03-02T06:35:00","slug":"troubleshooting-cron","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/troubleshooting-cron\/","title":{"rendered":"Troubleshooting Cron"},"content":{"rendered":"<h3><strong>The Problem<\/strong><\/h3>\n<ul>\n<li>Your autoresponder or broadcast emails are not going out (hourly cron job <strong>dap-cron.php<\/strong>)<\/li>\n<li>Your Affiliates aren&#8217;t being credited with sales (hourly cron job <strong>dap-cron.php<\/strong>)<\/li>\n<li>Your 1SiteAutomation\/1ShoppingCart Orders are not being processed. (10-minute cron job <strong>dap-emailorder.php<\/strong>)<\/li>\n<\/ul>\n<h3><strong>The Solution<\/strong><\/h3>\n<p>One possible solution is that your cron job(s) aren&#8217;t running correctly.<\/p>\n<p>DAP has two cron jobs. One that runs once an hour (dap-cron.php), and one that runs every 10 minutes (dap-emailorder.php).<\/p>\n<p>You can see how to set them up <a href=\"http:\/\/www.digitalaccesspass.com\/doc\/setting-up-cron-jobs\/\" target=\"_blank\">here<\/a>.<\/p>\n<p>But in this post, we will see how to make sure your cron is actually set up correctly, or if it&#8217;s running correctly.<\/p>\n<h3>How To Know If Cron Is Running<\/h3>\n<ol>\n<li>Go to <strong>System &gt; Logs<\/strong> and click on &#8220;Empty Logs&#8221;. That will fully clear out all logs.<\/li>\n<li>Go to <strong>Setup &gt; Config <\/strong>and set &#8220;<strong>Log Level<\/strong>&#8221; to &#8220;<strong>Log All Activity (during troubleshooting)<\/strong>&#8221; and click &#8220;<strong>Update<\/strong>&#8220;.<\/li>\n<li>Wait for the top of the hour for the hourly cron job to run. So if the time when you&#8217;re doing this, is say 11:20 AM, then wait for 12:00 Noon. If time is 3:45 PM, then wait for 4:00 PM.<\/li>\n<li>A few minutes past the top of the hour and go back to the <strong>System &gt; Logs<\/strong> screen.<\/li>\n<li>If you see hundreds of lines of text in the logs, then that means your cron job is running correctly. If you only see maybe 10-20 lines of text, then your cron job is NOT running correctly, and you need to make sure the cron job is actually <a href=\"http:\/\/DigitalAccessPass.com\/doc\/setting-up-cron-jobs\/\">set up correctly<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The Problem Your autoresponder or broadcast emails are not going out (hourly cron job dap-cron.php) Your Affiliates aren&#8217;t being credited with sales (hourly cron job dap-cron.php) Your 1SiteAutomation\/1ShoppingCart Orders are not being processed. (10-minute cron job dap-emailorder.php) The Solution One possible solution is that your cron job(s) aren&#8217;t running correctly. DAP has two cron jobs. [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[78,11,25,10,14,26],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/1356"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=1356"}],"version-history":[{"count":5,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/1356\/revisions"}],"predecessor-version":[{"id":4250,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/1356\/revisions\/4250"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=1356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=1356"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=1356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}