Answers.Body: <p>Welcome to SE!  Do you really mean CiviCRM 4.5? - that's really old.  The docs Jitendra points to are for the current version of Civi.  If you are back on Civi 4.5 it won't work with any version of php7.</p>
  <p>Go back to php5.6 and plan to upgrade.  You'll want to do that in stages - see some of the other answers on here for upgrading from very old versions.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-22T11:01:44.083Z
Answers.LastActivityDate: 2020-12-22T11:01:44.083Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>The requirement docs at <a href="https://docs.civicrm.org/installation/en/latest/general/requirements/#php-version" rel="nofollow noreferrer">https://docs.civicrm.org/installation/en/latest/general/requirements/#php-version</a> says it is still incompatible with PHP 7.4.</p>
  <p><a href="https://i.sstatic.net/BJ507.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BJ507.png" alt="enter image description here" /></a></p>
  <p>More info and discussion is at <a href="https://lab.civicrm.org/dev/core/-/issues/1496" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/1496</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-22T03:05:14.643Z
Answers.LastActivityDate: 2020-12-22T03:05:14.643Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>After upgrading to PHP 7.4, started getting</p>
  <p>ParseError thrown
  syntax error, unexpected 'clone' (T_CLONE), expecting '('</p>
  <p>when accessing posts, tags, categories</p>
  <p>Everything went back to normal after deactivating CiviCRM 4.5 (I'm using Wordperfect version 5.6)</p>
  <p>How can I fix this?</p>
  
Tags: <wordpress>
Title: Parse error unexpected 'clone' (T_CLONE), expecting '('
ThreadText: # Parse error unexpected 'clone' (T_CLONE), expecting '('
  
  (Asked by: username_0 on 2020-12-22)
  
  After upgrading to PHP 7.4, started getting
  
  ParseError thrown
  syntax error, unexpected 'clone' (T\_CLONE), expecting '('
  
  when accessing posts, tags, categories
  
  Everything went back to normal after deactivating CiviCRM 4.5 (I'm using Wordperfect version 5.6)
  
  How can I fix this?
  
  **Tags:** wordpress
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-12-22. Score: 3
  
  Welcome to SE! Do you really mean CiviCRM 4.5? - that's really old. The docs Jitendra points to are for the current version of Civi. If you are back on Civi 4.5 it won't work with any version of php7.
  
  Go back to php5.6 and plan to upgrade. You'll want to do that in stages - see some of the other answers on here for upgrading from very old versions.
  
  
  ---
  
  ### Answer by username_2 on 2020-12-22. Score: 1
  
  The requirement docs at <https://docs.civicrm.org/installation/en/latest/general/requirements/#php-version> says it is still incompatible with PHP 7.4.
  
  [![enter image description here](https://i.sstatic.net/BJ507.png)](https://i.sstatic.net/BJ507.png)
  
  More info and discussion is at <https://lab.civicrm.org/dev/core/-/issues/1496>
  
  
  ---
  
  