Answers.Body: <p>Your 'web guy' appears to have set up a (linux system) cron correctly, but it's not &quot;working&quot;, likely for any of many possible reasons, e.g. permissions, ownership, environment, etc. It's not something you'd be normally be able to diagnose or fix without access to the server or reports that might get generated.</p>
  <p>You could look at your list of system jobs and see if any of them are running - it's possible that one of them early on is breaking the cron in some way, that might be a helpful clue (e.g. the php process in the cron may be a different version of php, be running out of memory, be hitting some kind of security issue, etc.).</p>
  <p>re: your notes about what works and what doesn't. The bit that works tells me that if your cron is setup, then civimail should work. The bit that doesn't work suggests your server doesn't have any mail server installed. You can likely fix that by installing this excellent extension: <a href="https://civicrm.org/extensions/transactional-emails" rel="nofollow noreferrer">https://civicrm.org/extensions/transactional-emails</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-09T17:03:50.380Z
Answers.LastActivityDate: 2023-02-09T17:28:32.740Z
Answers.LastEditDate: 2023-02-09T17:28:32.740Z
Answers.UserDisplayName: Alan Dixon
Answers.Body: <p>It isn't possible to configure cron jobs within CiviCRM itself. This is something that needs to be done on the server. So this is probably something that you will need your 'web guy' to help you with.</p>
  <p>The documentation about how to set this up is here:</p>
  <p><a href="https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-18T16:51:04.327Z
Answers.LastActivityDate: 2023-02-18T16:51:04.327Z
Answers.UserDisplayName: William Mortada
Body: <p>Please talk to me like I'm five with this one.</p>
  <p>What we're using:</p>
  <ul>
  <li>civiCRM version 5.41.0</li>
  <li>Wordpress 5.9.5</li>
  <li>PHP 7.2.34 (I do get a warning that this one should be updated)</li>
  <li>Mosaico 2.7.16</li>
  </ul>
  <p>The web guy told me that cron is set up as per docs instructions every six hours:
  <a href="https://i.sstatic.net/tb2ay.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/tb2ay.png" alt="enter image description here" /></a></p>
  <p>But when I get into civi I get greeted with the &quot;Cron not running&quot; message and I don't know how to make it work.
  I have to execute everything by hand from Administer &gt; System settings &gt; Scheduled jobs menu.</p>
  <p>Civirules cron is enabled (no parameters) and so are Send scheduled mailings and Update membership statuses.</p>
  <p>I would like to illustrate the problem when sending out e-mail (Mailtrap is being used for testing):</p>
  <p>What works:</p>
  <ol>
  <li>Mailings &gt; New mailing &gt; send test (immediately works)</li>
  </ol>
  <p>What sort of works:</p>
  <ol>
  <li>Mailings &gt; New mailing &gt; next &gt; Schedule (Send immediately) &gt; Submit mailing (but only after I manually execute scheduled job in System settings)</li>
  </ol>
  <p>What doesn't work:</p>
  <ol>
  <li>Contact &gt; more &gt; Send an email results in &quot;Mailing error - expected a string or file resource&quot;</li>
  <li>Contact &gt; Actions &gt; Email - send now results in &quot;Mailing error - expected a string or file resource&quot;</li>
  <li>Contact &gt; Actions &gt; Email - Email - schedule/send via Civimail results in Send test to either single person or group as greyed out and being able only to save the draft</li>
  </ol>
  <p>How do I activate cron jobs so that I don't have to do it all by hand? Is it something that can be done from civi or do I need to contact the web guy and what should I tell him?</p>
  <p>Thank you</p>
  
Tags: <wordpress><cron><mailing><mosaico>
Title: Setting up cron
ThreadText: # Setting up cron
  
  (Asked by: username_0 on 2023-02-07)
  
  Please talk to me like I'm five with this one.
  
  What we're using:
  
  * civiCRM version 5.41.0
  * Wordpress 5.9.5
  * PHP 7.2.34 (I do get a warning that this one should be updated)
  * Mosaico 2.7.16
  
  The web guy told me that cron is set up as per docs instructions every six hours:
  [![enter image description here](https://i.sstatic.net/tb2ay.png)](https://i.sstatic.net/tb2ay.png)
  
  But when I get into civi I get greeted with the "Cron not running" message and I don't know how to make it work.
  I have to execute everything by hand from Administer > System settings > Scheduled jobs menu.
  
  Civirules cron is enabled (no parameters) and so are Send scheduled mailings and Update membership statuses.
  
  I would like to illustrate the problem when sending out e-mail (Mailtrap is being used for testing):
  
  What works:
  
  1. Mailings > New mailing > send test (immediately works)
  
  What sort of works:
  
  1. Mailings > New mailing > next > Schedule (Send immediately) > Submit mailing (but only after I manually execute scheduled job in System settings)
  
  What doesn't work:
  
  1. Contact > more > Send an email results in "Mailing error - expected a string or file resource"
  2. Contact > Actions > Email - send now results in "Mailing error - expected a string or file resource"
  3. Contact > Actions > Email - Email - schedule/send via Civimail results in Send test to either single person or group as greyed out and being able only to save the draft
  
  How do I activate cron jobs so that I don't have to do it all by hand? Is it something that can be done from civi or do I need to contact the web guy and what should I tell him?
  
  Thank you
  
  **Tags:** wordpress, cron, mailing, mosaico
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2023-02-09. Score: 1
  
  Your 'web guy' appears to have set up a (linux system) cron correctly, but it's not "working", likely for any of many possible reasons, e.g. permissions, ownership, environment, etc. It's not something you'd be normally be able to diagnose or fix without access to the server or reports that might get generated.
  
  You could look at your list of system jobs and see if any of them are running - it's possible that one of them early on is breaking the cron in some way, that might be a helpful clue (e.g. the php process in the cron may be a different version of php, be running out of memory, be hitting some kind of security issue, etc.).
  
  re: your notes about what works and what doesn't. The bit that works tells me that if your cron is setup, then civimail should work. The bit that doesn't work suggests your server doesn't have any mail server installed. You can likely fix that by installing this excellent extension: <https://civicrm.org/extensions/transactional-emails>
  
  
  ---
  
  ### Answer by username_2 on 2023-02-18. Score: 0
  
  It isn't possible to configure cron jobs within CiviCRM itself. This is something that needs to be done on the server. So this is probably something that you will need your 'web guy' to help you with.
  
  The documentation about how to set this up is here:
  
  <https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/>
  
  
  ---
  
  