Answers.Body: <p>The <code>$civicrm_paths['civicrm.root']['path']</code> should match with $civicrm_root,</p>
  <p>can you try by updating your <code>$civicrm_paths['civicrm.root']['path']</code> to</p>
  <pre><code>$civicrm_paths['civicrm.root']['path'] = '/var/www/networkpaao/vendor/civicrm/civicrm-core/';
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-03T14:08:41.737Z
Answers.LastActivityDate: 2021-05-03T14:08:41.737Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I am trying to upgrade to the newest security release of Drupal 8 (8.9.14).  After completing the update (Drupal is bootstrapping because the login page works) but CiviCRM stops being able to require specific files.  The full error is:</p>
  <pre><code>PHP Fatal error:  require_once(): Failed opening required 'DB/DataObject.php' (include_path='.:/var/www/site_name/vendor/civicrm/civicrm-core:/var/www/site_name/vendor/civicrm/civicrm-core/packages:.:/var/www/site_name/vendor/civicrm/civicrm-core/:/var/www/site_name/vendor/civicrm/civicrm-core//packages:/var/www/site_name/vendor/civicrm/civicrm-core/vendor/tecnickcom:/var/www/site_name/vendor/pear/archive_tar:/var/www/site_name/vendor/pear/auth_sasl:/var/www/site_name/vendor/pear/console_getopt:/var/www/site_name/vendor/pear/db:/var/www/site_name/vendor/pear/log:/var/www/site_name/vendor/pear/mail:/var/www/site_name/vendor/pear/mail_mime:/var/www/site_name/vendor/pear/net_smtp:/var/www/site_name/vendor/pear/net_socket:/var/www/site_name/vendor/pear/pear-core-minimal/src:/var/www/site_name/vendor/pear/pear_exception:/var/www/site_name/vendor/pear/validate_finance_creditcard:.:/usr/share/pear:/usr/share/php') in /var/www/site_name/vendor/civicrm/civicrm-core/CRM/Core/DAO.php on line 26, referer: https://site.org/user/login
  </code></pre>
  <p>I tried adding the full relative path to the file (../../../civicrm-packages/DB/DataObject.php) and this does not stop the problem.</p>
  <p>My CiviCRM root is,</p>
  <pre><code>$civicrm_paths['civicrm.root']['path'] = '/var/www/site_folder/vendor/civicrm/'; 
  </code></pre>
  <p>The variable is</p>
  <pre><code>$civicrm_root = '/var/www/site_folder/vendor/civicrm/civicrm-core/';
  </code></pre>
  <p>I tried changing the path for the array in ['civicrm.root']['path'] but this did not do anything.</p>
  <p>I tried upgrading CiviCRM too. That did not work either.</p>
  <p>I have figured out that the issue is not related to the Drupal upgrade itself but rather to the packages being upgraded with Drupal.</p>
  <ul>
  <li>symfony/debug (v4.4.20 =&gt; v4.4.22):</li>
  <li>symfony/var-dumper (v4.4.21 =&gt; v4.4.22):</li>
  <li>guzzlehttp/psr7 (1.8.1 =&gt; 1.8.2)</li>
  <li>doctrine/cache (1.10.2 =&gt; 1.11.0)</li>
  <li>doctrine/inflector (1.4.3 =&gt; 1.4.4)</li>
  <li>laminas/laminas-feed (2.14.0 =&gt; 2.14.1)</li>
  </ul>
  <p>I have not narrowed down which library is the issue.</p>
  <p>I appreciate any help figuring this out.</p>
  <p>Thanks,
  Josh</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-05-03T18:30:19.327Z
Comments.Text: I think Pradeep is right that the path settings are wrong, but also since you mention the packages this sounds like maybe [composer patches hasn't been enabled](https://civicrm.org/blog/daved/action-required-drupal-8-installs-and-upgrades-composer-and-patches)
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-29T15:33:13.420Z
Comments.Text: Paths are wrong : one has site_name and others have site_folder. 
  Also, upgrading to Drupal 8.9.x is useless since there are punch of fixes after that,  and 8x is no longer supported.
Comments.UserDisplayName: salah-1
Tags: <upgrade><civicrm.settings.php>
Title: Cannot Require Once When Loading CiviCRM After Drupal Upgrade
ThreadText: # Cannot Require Once When Loading CiviCRM After Drupal Upgrade
  
  (Asked by: username_0 on 2021-05-03)
  
  I am trying to upgrade to the newest security release of Drupal 8 (8.9.14).  After completing the update (Drupal is bootstrapping because the login page works) but CiviCRM stops being able to require specific files.  The full error is:
  PHP Fatal error:  require_once(): Failed opening required 'DB/DataObject.php' (include_path='.:/var/www/site_name/vendor/civicrm/civicrm-core:/var/www/site_name/vendor/civicrm/civicrm-core/packages:.:/var/www/site_name/vendor/civicrm/civicrm-core/:/var/www/site_name/vendor/civicrm/civicrm-core//packages:/var/www/site_name/vendor/civicrm/civicrm-core/vendor/tecnickcom:/var/www/site_name/vendor/pear/archive_tar:/var/www/site_name/vendor/pear/auth_sasl:/var/www/site_name/vendor/pear/console_getopt:/var/www/site_name/vendor/pear/db:/var/www/site_name/vendor/pear/log:/var/www/site_name/vendor/pear/mail:/var/www/site_name/vendor/pear/mail_mime:/var/www/site_name/vendor/pear/net_smtp:/var/www/site_name/vendor/pear/net_socket:/var/www/site_name/vendor/pear/pear-core-minimal/src:/var/www/site_name/vendor/pear/pear_exception:/var/www/site_name/vendor/pear/validate_finance_creditcard:.:/usr/share/pear:/usr/share/php') in /var/www/site_name/vendor/civicrm/civicrm-core/CRM/Core/DAO.php on line 26, referer: https://site.org/user/login
  
  I tried adding the full relative path to the file (../../../civicrm-packages/DB/DataObject.php) and this does not stop the problem.
  My CiviCRM root is,
  $civicrm_paths['civicrm.root']['path'] = '/var/www/site_folder/vendor/civicrm/'; 
  
  The variable is
  $civicrm_root = '/var/www/site_folder/vendor/civicrm/civicrm-core/';
  
  I tried changing the path for the array in ['civicrm.root']['path'] but this did not do anything.
  I tried upgrading CiviCRM too. That did not work either.
  I have figured out that the issue is not related to the Drupal upgrade itself but rather to the packages being upgraded with Drupal.
  
  symfony/debug (v4.4.20 => v4.4.22):
  symfony/var-dumper (v4.4.21 => v4.4.22):
  guzzlehttp/psr7 (1.8.1 => 1.8.2)
  doctrine/cache (1.10.2 => 1.11.0)
  doctrine/inflector (1.4.3 => 1.4.4)
  laminas/laminas-feed (2.14.0 => 2.14.1)
  
  I have not narrowed down which library is the issue.
  I appreciate any help figuring this out.
  Thanks,
  username_0
  
  **Tags:** upgrade, civicrm.settings.php
  
  > **Comments:**
  > **username_1**: I think Pradeep is right that the path settings are wrong, but also since you mention the packages this sounds like maybe [composer patches hasn't been enabled](https://civicrm.org/blog/daved/action-required-drupal-8-installs-and-upgrades-composer-and-patches)  
  > **username_2**: Paths are wrong : one has site_name and others have site_folder.  Also, upgrading to Drupal 8.9.x is useless since there are punch of fixes after that,  and 8x is no longer supported.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2021-05-03. Score: 0
  
  The $civicrm_paths['civicrm.root']['path'] should match with $civicrm_root,
  can you try by updating your $civicrm_paths['civicrm.root']['path'] to
  $civicrm_paths['civicrm.root']['path'] = '/var/www/networkpaao/vendor/civicrm/civicrm-core/';
  
  
  ---
  
  