Answers.Body: <p>One reason that the value may not change is because it's overridden in <code>civicrm.settings.php</code>.  See the <a href="https://docs.civicrm.org/sysadmin/en/latest/customize/settings/" rel="nofollow noreferrer">Overriding Settings</a> section of the documentation.</p>
  
  <p>An upcoming version of CiviCRM will make overridden settings clearly non-editable, but for now, check <code>civicrm.settings.php</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-03T19:33:41.800Z
Answers.Text: Great, thanks. I might just hide the warning for now so if it'll be fixed soon.
Answers.UserDisplayName: Vshura
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-04T01:16:28.117Z
Answers.Text: The upcoming version won't fix the warning; it'll just make it clear whether the problem I identified is the one you're having.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-03T19:11:08.500Z
Answers.LastActivityDate: 2017-12-03T19:11:08.500Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Starting in 4.7.26 in order to handle the multiple ways that WordPress can be installed on various hosts, we are determining the correct path and setting both the path to the site (front end) and the path to the backend (wp-admin) in civicrm.settings.php.</p>
  
  <p>The resource url status warning will need to be updated to handle this.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-05T16:13:36.153Z
Answers.Text: I'm still getting the warning to make Resource URLs portable, and in Administer/System Settings/Reource URLs, the CiviCRM Resource URL value is not in a field that can be edited.
Answers.UserDisplayName: Prónay
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-05T16:23:14.623Z
Answers.Text: Had to edit the line in civicrm.settings.php to "$civicrm_setting['domain']['userFrameworkResourceURL'] = '[civicrm.root]/';" and the portable Resource URLs warning is finally gone. Guessing the absolute path is an artifact of the installer.
Answers.UserDisplayName: Prónay
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-03T19:34:41.657Z
Answers.LastActivityDate: 2017-12-03T19:34:41.657Z
Answers.UserDisplayName: Kevin Cristiano
Body: <p>I'm getting a warning for my Wordpress install of CiviCRM, under the title <strong>Resource URLs: Make them portable</strong>:</p>
  
  <blockquote>
    <p>Resource URLs may use absolute paths, relative paths, or variables.
    Absolute paths are more difficult to maintain. To maximize
    portability, consider using a variable in each URL (eg "[cms.root]" or
    "[civicrm.files]").</p>
  </blockquote>
  
  <p>On the Resource URLs page it brings me to, I have the <em>CiviCRM Resource URL</em> as</p>
  
  <pre><code>http:// &lt;path to Wordpress install&gt; /wp-content/plugins/civicrm/civicrm
  </code></pre>
  
  <p>The others on this page which are populated are <em>Image Uplaod URL</em></p>
  
  <pre><code>[civicrm.files]persist/contribute
  </code></pre>
  
  <p>and <em>Extension Resource URL</em></p>
  
  <pre><code>[civicrm.files]/ext/
  </code></pre>
  
  <p>But when I try to change <em>CiviCRM Resource URL</em> to</p>
  
  <pre><code>[civicrm.root]/
  </code></pre>
  
  <p>which is the recommended portable value from the help button near the top, and then save it, the value is not saved, and reverts to the absolute URL above, and the warning persists.</p>
  
  <p>I have installed CiviCRM 4.7.27 on Wordpress 4.9.1.</p>
  
Tags: <wordpress><resource-urls>
Title: Problems making resource URLs portable on CiviCRM
ThreadText: # Problems making resource URLs portable on CiviCRM
  
  (Asked by: username_0 on 2017-12-03)
  
  I'm getting a warning for my Wordpress install of CiviCRM, under the title Resource URLs: Make them portable:
  
  Resource URLs may use absolute paths, relative paths, or variables.
    Absolute paths are more difficult to maintain. To maximize
    portability, consider using a variable in each URL (eg "[cms.root]" or
    "[civicrm.files]").
  
  On the Resource URLs page it brings me to, I have the CiviCRM Resource URL as
  http://  /wp-content/plugins/civicrm/civicrm
  
  The others on this page which are populated are Image Uplaod URL
  [civicrm.files]persist/contribute
  
  and Extension Resource URL
  [civicrm.files]/ext/
  
  But when I try to change CiviCRM Resource URL to
  [civicrm.root]/
  
  which is the recommended portable value from the help button near the top, and then save it, the value is not saved, and reverts to the absolute URL above, and the warning persists.
  I have installed CiviCRM 4.7.27 on Wordpress 4.9.1.
  
  **Tags:** wordpress, resource-urls
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-12-03. Score: 1 | Accepted answer
  
  One reason that the value may not change is because it's overridden in `civicrm.settings.php`. See the [Overriding Settings](https://docs.civicrm.org/sysadmin/en/latest/customize/settings/) section of the documentation.
  
  An upcoming version of CiviCRM will make overridden settings clearly non-editable, but for now, check `civicrm.settings.php`.
  
  > **Comments:**
  > **username_0**: Great, thanks. I might just hide the warning for now so if it'll be fixed soon.  
  > **username_1**: The upcoming version won't fix the warning; it'll just make it clear whether the problem I identified is the one you're having.  
  
  ---
  
  ### Answer by username_2 on 2017-12-03. Score: 3
  
  Starting in 4.7.26 in order to handle the multiple ways that WordPress can be installed on various hosts, we are determining the correct path and setting both the path to the site (front end) and the path to the backend (wp-admin) in civicrm.settings.php.
  
  The resource url status warning will need to be updated to handle this.
  
  > **Comments:**
  > **username_3**: I'm still getting the warning to make Resource URLs portable, and in Administer/System Settings/Reource URLs, the CiviCRM Resource URL value is not in a field that can be edited.  
  > **username_3**: Had to edit the line in civicrm.settings.php to "$civicrm_setting['domain']['userFrameworkResourceURL'] = '[civicrm.root]/';" and the portable Resource URLs warning is finally gone. Guessing the absolute path is an artifact of the installer.  
  
  ---
  
  