Answers.Body: <p>Based on <a href="https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-version" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-version</a> php 5.4 is not supported in the latest 5.x version.  As 5.4 is a very old vrsion of php, any chance you or your host can get you to php 7.1?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-07T23:18:27.773Z
Answers.Text: Good point - will ask - the main site is on php 7.1 but don't know why I'm on 5.4 cli?
Answers.UserDisplayName: John Bradford
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-07T23:42:34.057Z
Answers.Text: ok now pointing at php-5.6-cli & seems to work but no plans to upgrade beyond that (TSO Host) may need to have a longer think about this.
Answers.UserDisplayName: John Bradford
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-06T11:59:47.050Z
Answers.LastActivityDate: 2018-11-06T11:59:47.050Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>Recently updated to 5.6.1 (skipped a couple of the 5.x versions but the rest of the upgrade seems to have been successful). Running WP 4.9.8 / php 7.1.5</p>
  
  <p>After the update I started getting 'Cron not running' errors in Civi. I can force scheduled tasks from Admin - System Settings - Scheduled jobs, but the cron I've had running for (at least) a year has stopped.</p>
  
  <p>From ssh I run the same cron command:</p>
  
  <blockquote>
    <p>/usr/bin/php-5.4-cli /var/sites/h/hbb.org.uk/wp-cli.phar --user=XXX --url=<a href="https://hbb.org.uk" rel="nofollow noreferrer">https://hbb.org.uk</a> --path=/var/sites/h/hbb.org.uk/public_html/ civicrm api job.execute auth=0</p>
  </blockquote>
  
  <p>and get the error below:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '$this' (T_VARIABLE) in /var/sites/h/hbb.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php
    on line 1121</p>
  </blockquote>
  
  <p>It doesn't look like something wrong with my cron but with DAO.php (which I admit I have no idea what it is)? Am I passing too many arguments / not enough? Doesn't look like that kind of error.</p>
  
  <p>Did something change in the last upgrade or two? The docs still suggest the cron formatting I have.</p>
  
  <p>Thanks in advance.</p>
  
Tags: <wordpress><upgrade><cron>
Title: recent CRON error on WP - after upgrade to 5.6.x
ThreadText: # recent CRON error on WP - after upgrade to 5.6.x
  
  (Asked by: username_0 on 2018-11-06)
  
  Recently updated to 5.6.1 (skipped a couple of the 5.x versions but the rest of the upgrade seems to have been successful). Running WP 4.9.8 / php 7.1.5
  
  After the update I started getting 'Cron not running' errors in Civi. I can force scheduled tasks from Admin - System Settings - Scheduled jobs, but the cron I've had running for (at least) a year has stopped.
  
  From ssh I run the same cron command:
  
  > /usr/bin/php-5.4-cli /var/sites/h/hbb.org.uk/wp-cli.phar --user=XXX --url=<https://hbb.org.uk> --path=/var/sites/h/hbb.org.uk/public\_html/ civicrm api job.execute auth=0
  
  and get the error below:
  
  > Parse error: syntax error, unexpected '$this' (T\_VARIABLE) in /var/sites/h/hbb.org.uk/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php
  > on line 1121
  
  It doesn't look like something wrong with my cron but with DAO.php (which I admit I have no idea what it is)? Am I passing too many arguments / not enough? Doesn't look like that kind of error.
  
  Did something change in the last upgrade or two? The docs still suggest the cron formatting I have.
  
  Thanks in advance.
  
  **Tags:** wordpress, upgrade, cron
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-11-06. Score: 1
  
  Based on <https://docs.civicrm.org/sysadmin/en/latest/requirements/#php-version> php 5.4 is not supported in the latest 5.x version. As 5.4 is a very old vrsion of php, any chance you or your host can get you to php 7.1?
  
  > **Comments:**
  > **username_0**: Good point - will ask - the main site is on php 7.1 but don't know why I'm on 5.4 cli?  
  > **username_0**: ok now pointing at php-5.6-cli & seems to work but no plans to upgrade beyond that (TSO Host) may need to have a longer think about this.  
  
  ---
  
  