Answers.Body: <p>CiviCRM 4.2.4 is a very old version - it's from 2012.  It's not compatible with newer versions of PHP - I'd be surprised if it worked with PHP 5.6, let alone 7+.  You can downgrade PHP or upgrade CiviCRM - but since you're upgrading from such an old version, be sure to a) take a backup of the database before beginning, b) upgrade a few versions at a time (I'd go to the last version of 4.4, 4.5, 4.6, 4.7 before going to 5.18), c) if you DO have to restore the database, be sure to delete the existing database before restoring the backup.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-13T16:47:59.250Z
Answers.LastActivityDate: 2019-10-13T16:47:59.250Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>When I try to edit pages in my WordPress site, I get a message on the editing page: The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.  </p>
  
  <p>The email I receive about the error states:</p>
  
  <h1>Error Details</h1>
  
  <p>An error of type E_PARSE was caused in line 1 of the file /home/susquehanna/ssorchestra.org/wp-content/plugins/civicrm/civicrm/packages/DB/DataObject.php(207) : eval()'d code. Error message: syntax error, unexpected 'clone' (T_CLONE), expecting '('</p>
  
  <p>If I deactivate CiviCRM, I can edit my site like normal, if it's activated, I get the error messages. How can I fix this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-11T13:18:45.693Z
Comments.Text: Welcome to SE!  What version of php are you using?  Sounds like you might need to switch to php 7.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-11T13:46:13.833Z
Comments.Text: Hi, I just upgraded to the latest version about a week ago
Comments.UserDisplayName: Shannon Raum
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-11T13:50:24.777Z
Comments.Text: sorry, forgot the version - it's PHP 7.2
Comments.UserDisplayName: Shannon Raum
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-11T21:34:27.667Z
Comments.Text: Follow-up - what version of CiviCRM are you using?  Aidan is definitely right, this is a PHP mismatch issue - but usually we see people using old versions of PHP with new versions of CiviCRM.  You might have the "opposite" problem.
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-12T12:11:53.127Z
Comments.Text: Also, check that your webserver is actually using php7.2 - webserver and command-line can use different versions.  Depends on your setup and hosting but if you describe more we can point you in the right direction.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-13T15:13:42.710Z
Comments.Text: I can't log back into my account here (having a bad day all around) but I have CiviCRM 4.2.4
Comments.UserDisplayName: Shannon Raum
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-13T15:44:19.443Z
Comments.Text: 4.2.4 is ancient - as Jon G says, you have the opposite problem.  Try going back to PHP5.6
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-13T15:50:15.060Z
Comments.Text: Aidan - could I also update Civi to the latest version to fix the issue?
Comments.UserDisplayName: Shannon Raum
Tags: <wordpress><extension><error>
Title: Error in WordPress affecting site editing
ThreadText: # Error in WordPress affecting site editing
  
  (Asked by: username_0 on 2019-10-11)
  
  When I try to edit pages in my WordPress site, I get a message on the editing page: The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
  
  The email I receive about the error states:
  
  # Error Details
  
  An error of type E\_PARSE was caused in line 1 of the file /home/susquehanna/ssorchestra.org/wp-content/plugins/civicrm/civicrm/packages/DB/DataObject.php(207) : eval()'d code. Error message: syntax error, unexpected 'clone' (T\_CLONE), expecting '('
  
  If I deactivate CiviCRM, I can edit my site like normal, if it's activated, I get the error messages. How can I fix this?
  
  **Tags:** wordpress, extension, error
  
  > **Comments:**
  > **username_1**: Welcome to SE!  What version of php are you using?  Sounds like you might need to switch to php 7.  
  > **username_0**: Hi, I just upgraded to the latest version about a week ago  
  > **username_0**: sorry, forgot the version - it's PHP 7.2  
  > **username_2**: Follow-up - what version of CiviCRM are you using?  username_1 is definitely right, this is a PHP mismatch issue - but usually we see people using old versions of PHP with new versions of CiviCRM.  You might have the "opposite" problem.  
  > **username_1**: Also, check that your webserver is actually using php7.2 - webserver and command-line can use different versions.  Depends on your setup and hosting but if you describe more we can point you in the right direction.  
  > **username_0**: I can't log back into my account here (having a bad day all around) but I have CiviCRM 4.2.4  
  > **username_1**: 4.2.4 is ancient - as Jon G says, you have the opposite problem.  Try going back to PHP5.6  
  > **username_0**: username_1 - could I also update Civi to the latest version to fix the issue?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-10-13. Score: 1
  
  CiviCRM 4.2.4 is a very old version - it's from 2012. It's not compatible with newer versions of PHP - I'd be surprised if it worked with PHP 5.6, let alone 7+. You can downgrade PHP or upgrade CiviCRM - but since you're upgrading from such an old version, be sure to a) take a backup of the database before beginning, b) upgrade a few versions at a time (I'd go to the last version of 4.4, 4.5, 4.6, 4.7 before going to 5.18), c) if you DO have to restore the database, be sure to delete the existing database before restoring the backup.
  
  
  ---
  
  