Answers.Body: <p>This usually happens when your site directory is using symbolic link. To fix the variables you will need to make sure that the docroot specified in apache/ngnix config should match exactly with $civicrm_root and CIVICRM_TEMPLATE_COMPILEDIR in civicrm.settings.php. </p>
  
  <p>Try updating if its different and clear CiviCRM cache.</p>
  
  <p>Cheers</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-23T09:50:50.217Z
Answers.LastActivityDate: 2019-05-23T09:50:50.217Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>My issue is [civicrm.files] variable in Resources URL contains full real absolute path on our server '/var/www..' etc.</p>
  
  <p>It constructs as such:</p>
  
  <p><code>https://www.website.com/var/www/wp-content/uploads/civicrm/</code></p>
  
  <p>All variables in Upload Directories currently set as portable.</p>
  
  <p><a href="https://i.sstatic.net/Ng3bZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ng3bZ.png" alt="Upload Directories Settings"></a></p>
  
  <p>I'm using CiviCRM 5.14.3 on Wordpress 5.1</p>
  
Tags: <directory><resource-urls>
Title: Wrong compiled [civicrm.files] variable in Resources URL
ThreadText: # Wrong compiled [civicrm.files] variable in Resources URL
  
  (Asked by: username_0 on 2019-05-23)
  
  My issue is [civicrm.files] variable in Resources URL contains full real absolute path on our server '/var/www..' etc.
  
  It constructs as such:
  
  `https://www.website.com/var/www/wp-content/uploads/civicrm/`
  
  All variables in Upload Directories currently set as portable.
  
  [![Upload Directories Settings](https://i.sstatic.net/Ng3bZ.png)](https://i.sstatic.net/Ng3bZ.png)
  
  I'm using CiviCRM 5.14.3 on Wordpress 5.1
  
  **Tags:** directory, resource-urls
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-05-23. Score: 1
  
  This usually happens when your site directory is using symbolic link. To fix the variables you will need to make sure that the docroot specified in apache/ngnix config should match exactly with $civicrm\_root and CIVICRM\_TEMPLATE\_COMPILEDIR in civicrm.settings.php.
  
  Try updating if its different and clear CiviCRM cache.
  
  Cheers
  
  Pradeep
  
  
  ---
  
  