Body: <p>After upgrading Drupal to 7.71 trying to follow strictly the instructions found at <a href="https://www.drupal.org/docs/7/update" rel="nofollow noreferrer">https://www.drupal.org/docs/7/update</a>, the module CiviCRM was no longer visble. </p>
  
  <p>Several error messages appeared in the browser at update.php:</p>
  
  <pre><code>Oops! - The CiviCRM settings file (civicrm.settings.php) was not found in the expected location (sites/default/civicrm.settings.php) 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>
      Warning: include_once(sites/default/civicrm.settings.php): failed to open stream: No such file or directory in include_once() (line 200 of /usr/share/drupal/sites/all/modules/civicrm/drupal/civicrm.module).
      Warning: include_once(): Failed opening 'sites/default/civicrm.settings.php' for inclusion (include_path='.:/usr/share/drupal/sites/all/modules/civicrm:/usr/share/drupal/sites/all/modules/civicrm/packages:/usr/share/drupal/sites/all/modules/civicrm/vendor/tecnickcom:/usr/share/drupal/sites/all/modules/civicrm/vendor/phpseclib/phpseclib/phpseclib:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/pear_exception:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/auth_sasl:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/log:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/console_getopt:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/pear-core-minimal/src:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/mail:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/net_socket:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/net_smtp:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/validate_finance_creditcard:.:/usr/share/php') in include_once() (line 200 of /usr/share/drupal/sites/all/modules/civicrm/drupal/civicrm.module).
      Warning: Invalid argument supplied for foreach() in civicrm_menu_alter() (line 491 of /usr/share/drupal/sites/all/modules/civicrm/drupal/civicrm.module).
      Warning: Invalid argument supplied for foreach() in _block_rehash() (line 393 of /usr/share/drupal/modules/block/block.module).
  </code></pre>
  
  <p>I tried to re-install the module civicrm, and deleted the files located at <code>&lt;drupal_root&gt;/sites/all/modules/civicrm</code> but got nothing more than a white page.</p>
  
  <p>Since I am new in Drupal and CiviCRM, I don't know how to proceed. I have a complete backup of the site before upgrading.</p>
  
  <p>I managed to install <code>drush:7</code> with a lot of efforts, but issuing <code>drush status</code> gives me a bnch of warnings:</p>
  
  <pre><code>count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
   Drupal version                  :  7.71                                        
   Site URI                        :  http://default                              
   Database driver                 :  mysql                                       
   Database hostname               :  localhost                                   
   Database port                   :                                              
   Database username               :  drupal                                      
   Database name                   :  drupal_civicrm                              
   Drupal bootstrap                :  Successful                                  
   Drupal user                     :                                              
   Default theme                   :  bartik                                      
   Administration theme            :  bartik                                      
   PHP executable                  :  /usr/bin/php                                
   PHP configuration               :  /etc/php/7.2/cli/php.ini                    
   PHP OS                          :  Linux                                       
   Drush script                    :  /home/pf/.composer/vendor/drush/drush/drush 
                                      .php                                        
   Drush version                   :  7.0.0                                       
   Drush temp directory            :  /tmp                                        
   Drush configuration             :                                              
   Drush alias files               :                                              
   Install profile                 :  minimal                                     
   Drupal root                     :  /usr/share/drupal                           
   Site path                       :  sites/default                               
   File directory path             :  sites/default/files                         
   Private file directory path     :  sites/default/files/private                 
   Temporary file directory path   :  /tmp                                        
  </code></pre>
  
  <p>Any hint would be appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-04T15:48:53.380Z
Comments.Text: It sounds like as part of your drupal upgrade you maybe deleted something in sites/default? Also the drush error is because drush 7 is too old and isn't compatible with your version of php. You can install drush 8 and it will work with drupal 7.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-04T15:52:15.683Z
Comments.Text: I still have the content of the old site. Shoud I overwrite the new site with the content of old one? Partly? Completely?
Comments.UserDisplayName: Pierre François
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-04T15:53:14.257Z
Comments.Text: Thank you for the hint: drush:7 was working before, but I will upgrade it to drush:8.
Comments.UserDisplayName: Pierre François
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-04T15:53:35.913Z
Comments.Text: Overwriting might be the easiest. And you'd need to replace the database too.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-05T21:44:41.263Z
Comments.Text: Solved by extracting files manually from backup and by executing the mysql script included into thebackup  to rebuild the database.
Comments.UserDisplayName: Pierre François
Tags: <drupal><civicrm.settings.php>
Title: CiviCRM under Drupal 7: the CiviCRM settings file (civicrm.settings.php) was not found in the expected location
ThreadText: # CiviCRM under Drupal 7: the CiviCRM settings file (civicrm.settings.php) was not found in the expected location
  
  (Asked by: username_0 on 2020-06-04)
  
  After upgrading Drupal to 7.71 trying to follow strictly the instructions found at <https://www.drupal.org/docs/7/update>, the module CiviCRM was no longer visble.
  
  Several error messages appeared in the browser at update.php:
  
  ```
  Oops! - The CiviCRM settings file (civicrm.settings.php) was not found in the expected location (sites/default/civicrm.settings.php) 
  
  ```
  
  and
  
  ```
  
      Warning: include_once(sites/default/civicrm.settings.php): failed to open stream: No such file or directory in include_once() (line 200 of /usr/share/drupal/sites/all/modules/civicrm/drupal/civicrm.module).
      Warning: include_once(): Failed opening 'sites/default/civicrm.settings.php' for inclusion (include_path='.:/usr/share/drupal/sites/all/modules/civicrm:/usr/share/drupal/sites/all/modules/civicrm/packages:/usr/share/drupal/sites/all/modules/civicrm/vendor/tecnickcom:/usr/share/drupal/sites/all/modules/civicrm/vendor/phpseclib/phpseclib/phpseclib:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/pear_exception:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/auth_sasl:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/log:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/console_getopt:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/pear-core-minimal/src:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/mail:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/net_socket:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/net_smtp:/usr/share/drupal/sites/all/modules/civicrm/vendor/pear/validate_finance_creditcard:.:/usr/share/php') in include_once() (line 200 of /usr/share/drupal/sites/all/modules/civicrm/drupal/civicrm.module).
      Warning: Invalid argument supplied for foreach() in civicrm_menu_alter() (line 491 of /usr/share/drupal/sites/all/modules/civicrm/drupal/civicrm.module).
      Warning: Invalid argument supplied for foreach() in _block_rehash() (line 393 of /usr/share/drupal/modules/block/block.module).
  
  ```
  
  I tried to re-install the module civicrm, and deleted the files located at `<drupal_root>/sites/all/modules/civicrm` but got nothing more than a white page.
  
  Since I am new in Drupal and CiviCRM, I don't know how to proceed. I have a complete backup of the site before upgrading.
  
  I managed to install `drush:7` with a lot of efforts, but issuing `drush status` gives me a bnch of warnings:
  
  ```
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
  count(): Parameter must be an array or an object that implements     [warning]
  Countable Table.php:789
   Drupal version                  :  7.71                                        
   Site URI                        :  http://default                              
   Database driver                 :  mysql                                       
   Database hostname               :  localhost                                   
   Database port                   :                                              
   Database username               :  drupal                                      
   Database name                   :  drupal_civicrm                              
   Drupal bootstrap                :  Successful                                  
   Drupal user                     :                                              
   Default theme                   :  bartik                                      
   Administration theme            :  bartik                                      
   PHP executable                  :  /usr/bin/php                                
   PHP configuration               :  /etc/php/7.2/cli/php.ini                    
   PHP OS                          :  Linux                                       
   Drush script                    :  /home/pf/.composer/vendor/drush/drush/drush 
                                      .php                                        
   Drush version                   :  7.0.0                                       
   Drush temp directory            :  /tmp                                        
   Drush configuration             :                                              
   Drush alias files               :                                              
   Install profile                 :  minimal                                     
   Drupal root                     :  /usr/share/drupal                           
   Site path                       :  sites/default                               
   File directory path             :  sites/default/files                         
   Private file directory path     :  sites/default/files/private                 
   Temporary file directory path   :  /tmp                                        
  
  ```
  
  Any hint would be appreciated.
  
  **Tags:** drupal, civicrm.settings.php
  
  > **Comments:**
  > **username_1**: It sounds like as part of your drupal upgrade you maybe deleted something in sites/default? Also the drush error is because drush 7 is too old and isn't compatible with your version of php. You can install drush 8 and it will work with drupal 7.  
  > **username_0**: I still have the content of the old site. Shoud I overwrite the new site with the content of old one? Partly? Completely?  
  > **username_0**: Thank you for the hint: drush:7 was working before, but I will upgrade it to drush:8.  
  > **username_1**: Overwriting might be the easiest. And you'd need to replace the database too.  
  > **username_0**: Solved by extracting files manually from backup and by executing the mysql script included into thebackup  to rebuild the database.  
  
  ---
  
  ## 0 answers
  
  