Answers.Body: <p>Does your VPS let you choose the version of PHP?  If so, downgrade the version of PHP, upgrade CiviCRM, reset the PHP version.</p>
  
  <p>Alternatively you could copy your installation to another server with older PHP, upgrade CiviCRM there and then transfer back to your VPS.</p>
  
  <p>Since you have attempted an upgrade your system may be in a partially upgraded state.  You should start from the database dump and software tree that was backed up before the Ubuntu upgrade.</p>
  
  <p>If you want to copy to another server, be sure to follow the instructions at <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location" rel="nofollow noreferrer">Moving an Existing Installation to a New Server or Location</a>.  You may want to <a href="https://civicrm.org/partners-contributors" rel="nofollow noreferrer">get some help</a> if those instructions look daunting. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-27T19:48:54.137Z
Answers.LastActivityDate: 2017-04-27T19:48:54.137Z
Answers.UserDisplayName: Aidan
Body: <p>The VPS host running Drupal/CiviCRM was upgraded from Ubuntu 14 LTS to 16 LTS.  That ran without error. However, that upgrade came with PHP7.  immediately after the upgrade all three CiviCRM sites experienced The following Drupal Log error:</p>
  
  <p>"ParseError: syntax error, unexpected 'clone' (T_CLONE), expecting '(' in require_once() (line 1 of /var/www//sites/all/modules/civicrm/packages/DB/DataObject.php(207) : eval()'d code)."</p>
  
  <p>After disabling CiviCRM on all three sites the error cleared.</p>
  
  <p>Per CRM-17789 PHP 7 compatibility comes with CiviCRM 7.12.  Upgrade of 4.4.5 site tto 4.7.18 was attempted. However,  now "<a href="http://www" rel="nofollow noreferrer">http://www</a>..com/civicrm/upgrade?reset=1" produces the following: "ERROR: The website encountered an unexpected error. Please try again later."</p>
  
  <p>Apparently, the installation with the CiviCRM module enabled was not a fix.  This was tried several times after clearing the browser cache ... and in more than one browser with an open admin session set-up before the upgrade.</p>
  
  <p>Is there a way around short of a new install of CiviCRM?  </p>
  
  <p>The other two sites are currently running 4.1.2 and 4.2.8.  No CiviCRM upgrade has been attempted on these</p>
  
  <p>Thanks,</p>
  
  <p>TJH43</p>
  
Tags: <upgrade><php><php7>
Title: Need help upgrading 4.4.5 to 4.7.18 0n Ubuntu 16.04 server with PHP 7 on Drupal 7
ThreadText: # Need help upgrading 4.4.5 to 4.7.18 0n Ubuntu 16.04 server with PHP 7 on Drupal 7
  
  (Asked by: username_0 on 2017-04-27)
  
  The VPS host running Drupal/CiviCRM was upgraded from Ubuntu 14 LTS to 16 LTS. That ran without error. However, that upgrade came with PHP7. immediately after the upgrade all three CiviCRM sites experienced The following Drupal Log error:
  
  "ParseError: syntax error, unexpected 'clone' (T\_CLONE), expecting '(' in require\_once() (line 1 of /var/www//sites/all/modules/civicrm/packages/DB/DataObject.php(207) : eval()'d code)."
  
  After disabling CiviCRM on all three sites the error cleared.
  
  Per CRM-17789 PHP 7 compatibility comes with CiviCRM 7.12. Upgrade of 4.4.5 site tto 4.7.18 was attempted. However, now "<http://www>..com/civicrm/upgrade?reset=1" produces the following: "ERROR: The website encountered an unexpected error. Please try again later."
  
  Apparently, the installation with the CiviCRM module enabled was not a fix. This was tried several times after clearing the browser cache ... and in more than one browser with an open admin session set-up before the upgrade.
  
  Is there a way around short of a new install of CiviCRM?
  
  The other two sites are currently running 4.1.2 and 4.2.8. No CiviCRM upgrade has been attempted on these
  
  Thanks,
  
  username_0
  
  **Tags:** upgrade, php, php7
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-04-27. Score: 2
  
  Does your VPS let you choose the version of PHP? If so, downgrade the version of PHP, upgrade CiviCRM, reset the PHP version.
  
  Alternatively you could copy your installation to another server with older PHP, upgrade CiviCRM there and then transfer back to your VPS.
  
  Since you have attempted an upgrade your system may be in a partially upgraded state. You should start from the database dump and software tree that was backed up before the Ubuntu upgrade.
  
  If you want to copy to another server, be sure to follow the instructions at [Moving an Existing Installation to a New Server or Location](https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location). You may want to [get some help](https://civicrm.org/partners-contributors) if those instructions look daunting.
  
  
  ---
  
  