Answers.Body: <p>Did you run check-req with the <code>--cms-base-url</code> argument? It needs to be specified there too.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-30T20:13:14.000Z
Answers.Text: which tool uses check-req? Thanks, Josh
Answers.UserDisplayName: Josh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-30T23:54:39.577Z
Answers.Text: I figured it it out. It is cv core:check-req
Answers.UserDisplayName: Josh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-31T05:50:41.050Z
Answers.Text: I ran `cv core:check-req --cms-base-url="https://example.com"` and it worked. No more error message. However, it doesn't seem to matter what I specify in the argument as long as it is a valid URL syntax. Thank you. :)
Answers.UserDisplayName: mgb-it-ag
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-29T23:42:17.090Z
Answers.LastActivityDate: 2021-03-29T23:42:17.090Z
Answers.UserDisplayName: Demerit
Body: <p><strong>Error:</strong></p>
  <p>When I check the installation requirements (<code>cv core:check-req</code>) I get an error message that says:</p>
  <blockquote>
  <p>The &quot;cmsBaseUrl&quot; (http://localhost/usr/local/bin/usr/local/bin/) is
  unavailable or malformed. Consider setting it explicitly.</p>
  </blockquote>
  <p>Despite this message, there have never been any errors related to the base url when operating the site. I only noticed it when I ran the above check.</p>
  <p><strong>Setup:</strong></p>
  <p>I installed CiviCRM on Drupal8 with the following cv command:</p>
  <pre><code>cv core:install --cms-base-url=&quot;https://example.org&quot; --lang=&quot;de_DE&quot; -m loadGenerated=1 -v
  </code></pre>
  <p>And looking in <code>civicrm.settings.php</code> I can see that the base url is set with:</p>
  <pre><code>if (!defined('CIVICRM_UF_BASEURL')) {
    define( 'CIVICRM_UF_BASEURL'      , 'https://example.org');
  }
  </code></pre>
  <p><strong>Troubleshooting attempts:</strong></p>
  <p>In <code>civicrm.settings.php</code> it says:</p>
  <blockquote>
  <p>IMPORTANT: Trailing slashes should be used on all URL settings.</p>
  </blockquote>
  <p>Accordingly, I changed <code>https://example.org</code> to <code>https://example.org/</code> in that file.</p>
  <p>I then cleaned up the Drupal and CiviCRM cashes via the admin interface. The error message remains.</p>
  
Tags: <drupal><drupal-8><civicrm.settings.php><cv>
Title: The "cmsBaseUrl" is not set according to the information in civicrm.settings.php
ThreadText: # The "cmsBaseUrl" is not set according to the information in civicrm.settings.php
  
  (Asked by: username_0 on 2021-03-29)
  
  Error:
  When I check the installation requirements (cv core:check-req) I get an error message that says:
  
  The "cmsBaseUrl" (http://localhost/usr/local/bin/usr/local/bin/) is
  unavailable or malformed. Consider setting it explicitly.
  
  Despite this message, there have never been any errors related to the base url when operating the site. I only noticed it when I ran the above check.
  Setup:
  I installed CiviCRM on Drupal8 with the following cv command:
  cv core:install --cms-base-url="https://example.org" --lang="de_DE" -m loadGenerated=1 -v
  
  And looking in civicrm.settings.php I can see that the base url is set with:
  if (!defined('CIVICRM_UF_BASEURL')) {
    define( 'CIVICRM_UF_BASEURL'      , 'https://example.org');
  }
  
  Troubleshooting attempts:
  In civicrm.settings.php it says:
  
  IMPORTANT: Trailing slashes should be used on all URL settings.
  
  Accordingly, I changed https://example.org to https://example.org/ in that file.
  I then cleaned up the Drupal and CiviCRM cashes via the admin interface. The error message remains.
  
  **Tags:** drupal, drupal-8, civicrm.settings.php, cv
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-03-29. Score: 2 | Accepted answer
  
  Did you run check-req with the `--cms-base-url` argument? It needs to be specified there too.
  
  > **Comments:**
  > **username_2**: which tool uses check-req? Thanks, username_2  
  > **username_2**: I figured it it out. It is cv core:check-req  
  > **username_0**: I ran `cv core:check-req --cms-base-url="https://example.com"` and it worked. No more error message. However, it doesn't seem to matter what I specify in the argument as long as it is a valid URL syntax. Thank you. :)  
  
  ---
  
  