Answers.Body: <p>SOLVED.  Here's how...</p>
  <p>• revert to saved version of website</p>
  <p>• update &quot;Webform CiviCRM Integration&quot; module</p>
  <p>• update all modules Civi uses... Chaos Tools, Views</p>
  <p>• update drush version from 7.4.0 to 8.4.10. This allowed me to change the $DRUSH_PHP environment variable to use PHP 7.3, eliminating this warning I was getting &quot;CiviCRM requires at least PHP 7.2. (Currently using PHP 7.1.33)&quot;</p>
  <p>• perform the Drupal update again, as per <a href="https://www.drupal.org/docs/7/update/updating-drupal-using-drush" rel="nofollow noreferrer">https://www.drupal.org/docs/7/update/updating-drupal-using-drush</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-27T06:52:23.980Z
Answers.LastActivityDate: 2022-01-27T06:52:23.980Z
Answers.UserDisplayName: jcalvert
Body: <p>My site is currently running Drupal 7.82 and CiviCRM 5.45.1.</p>
  <p>When I try to update Drupal to 7.87, I get an error (below) and after that, CiviCRM is gone from the site.</p>
  <blockquote>
  <p>Error: Call to undefined function civicrm_initialize() in
  civicrm_member_roles_menu()</p>
  <p>(line 17 of
  /var/www/vhosts/sweetwatercollaborative.org/httpdocs/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module).</p>
  <p>The website encountered an unexpected error. Please try again later.</p>
  </blockquote>
  <p>Any help much appreciated.  Thanks -JC</p>
  
Tags: <error><upgrade><drupal-7>
Title: Drupal 7 update breaks CiviCRM
ThreadText: # Drupal 7 update breaks CiviCRM
  
  (Asked by: username_0 on 2022-01-27)
  
  My site is currently running Drupal 7.82 and CiviCRM 5.45.1.
  
  When I try to update Drupal to 7.87, I get an error (below) and after that, CiviCRM is gone from the site.
  
  > Error: Call to undefined function civicrm\_initialize() in
  > civicrm\_member\_roles\_menu()
  >
  > (line 17 of
  > /var/www/vhosts/sweetwatercollaborative.org/httpdocs/sites/all/modules/civicrm/drupal/modules/civicrm\_member\_roles/civicrm\_member\_roles.module).
  >
  > The website encountered an unexpected error. Please try again later.
  
  Any help much appreciated. Thanks -JC
  
  **Tags:** error, upgrade, drupal-7
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-01-27. Score: 3
  
  SOLVED. Here's how...
  
  • revert to saved version of website
  
  • update "Webform CiviCRM Integration" module
  
  • update all modules Civi uses... Chaos Tools, Views
  
  • update drush version from 7.4.0 to 8.4.10. This allowed me to change the $DRUSH\_PHP environment variable to use PHP 7.3, eliminating this warning I was getting "CiviCRM requires at least PHP 7.2. (Currently using PHP 7.1.33)"
  
  • perform the Drupal update again, as per <https://www.drupal.org/docs/7/update/updating-drupal-using-drush>
  
  
  ---
  
  