Answers.Body: <p>If those tokens aren't working for you, it's OK to use the absolute URL or path without the token instead. Would that solve the problem for you?</p>
  
  <pre><code>https://www.example.org/wp-content/plugins/files/civicrm/
  </code></pre>
  
  <p>There seem to have been a few questions about this recently. I haven't run into it myself, but got an impression this may relate to symlinks in the webserver path.</p>
  
  <p>There has been a bit of work recently regarding miscalculation of <code>[civicrm.files]</code> values - contributing information to these linked discussions may help to get the problem resolved: </p>
  
  <ul>
  <li><a href="https://issues.civicrm.org/jira/browse/CRM-20609" rel="nofollow noreferrer">CRM-20609: File URL when CiviCRM detects Drupal doesn't match path set by [civicrm.files]</a></li>
  <li><a href="https://issues.civicrm.org/jira/browse/CRM-19303" rel="nofollow noreferrer">CRM-19303: CKEditor configuration can't be edited on a Drupal multisite installation</a></li>
  <li>Lots of discussion of this in <a href="https://github.com/civicrm/civicrm-core/pull/9458" rel="nofollow noreferrer">PR9458</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-04T23:38:02.460Z
Answers.Text: Yeah it works fine, and it could well be a symlink issue. Thanks anyway!
Answers.UserDisplayName: PeteRoss
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-03T20:57:59.440Z
Answers.LastActivityDate: 2017-06-03T21:09:42.690Z
Answers.LastEditDate: 2017-06-03T21:09:42.690Z
Answers.UserDisplayName: Chris Burgess
Body: <p>I am having an issue in Settings - Resource URLs where the [civicrm.files] variable is detecting incorrectly. It's actually detecting as <a href="https://www.mydomain.org/usr/home/webhoster/mydomain.org/wp-content/plugins/files/civicrm/" rel="nofollow noreferrer">https://www.mydomain.org/usr/home/webhoster/mydomain.org/wp-content/plugins/files/civicrm/</a></p>
  
  <p>Is there an override I can put in my civi URL variable settings file to make it right? Or do I need to get a tweak to my server?</p>
  
Tags: <civicrm.settings.php>
Title: Autodetecting variables for URL variables
ThreadText: # Autodetecting variables for URL variables
  
  (Asked by: username_0 on 2017-06-01)
  
  I am having an issue in Settings - Resource URLs where the [civicrm.files] variable is detecting incorrectly. It's actually detecting as <https://www.mydomain.org/usr/home/webhoster/mydomain.org/wp-content/plugins/files/civicrm/>
  
  Is there an override I can put in my civi URL variable settings file to make it right? Or do I need to get a tweak to my server?
  
  **Tags:** civicrm.settings.php
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-06-03. Score: 1 | Accepted answer
  
  If those tokens aren't working for you, it's OK to use the absolute URL or path without the token instead. Would that solve the problem for you?
  https://www.example.org/wp-content/plugins/files/civicrm/
  
  There seem to have been a few questions about this recently. I haven't run into it myself, but got an impression this may relate to symlinks in the webserver path.
  There has been a bit of work recently regarding miscalculation of [civicrm.files] values - contributing information to these linked discussions may help to get the problem resolved: 
  
  CRM-20609: File URL when CiviCRM detects Drupal doesn't match path set by [civicrm.files]
  CRM-19303: CKEditor configuration can't be edited on a Drupal multisite installation
  Lots of discussion of this in PR9458
  
  > **Comments:**
  > **username_0**: Yeah it works fine, and it could well be a symlink issue. Thanks anyway!  
  
  ---
  
  