Answers.Body: <p>The 'Extension Resource URL' under 'Resource URLs' is the web-accessible URL that points to the extensions directory, not the path to that directory on the server's filesystem. The path on the server belongs in 'CiviCRM Extensions Directory' under 'Directories'.</p>
  
  <p>Edit: for the example shown, the 'Extension Resource URL' is '<a href="https://ffnew/sites/default/extensions" rel="nofollow noreferrer">https://ffnew/sites/default/extensions</a>' for a 'CiviCRM Extensions Directory' of '/var/www/html/prod/drupal/sites/default/extensions'. This will differ if you're not on Drupal.</p>
  
  <p><a href="https://i.sstatic.net/VAD7C.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VAD7C.png" alt="Extensions URL"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-30T16:03:14.107Z
Answers.Text: Thanks Dave, this all looks to be more or less what I have now, but I am still getting an error that seems to imdicating the the extensions are going to the wrong place.
Answers.UserDisplayName: andywozhere
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-30T08:32:00.310Z
Answers.LastActivityDate: 2015-09-30T09:00:45.180Z
Answers.LastEditDate: 2015-09-30T09:00:45.180Z
Answers.UserDisplayName: DaveFF
Body: <p>When I save the Extension Resource URL it is rewritten from:</p>
  
  <pre><code>/var/www/vhosts/examplesite/httpdocs/wp-content/plugins/files/civicrm/custom_ext
  </code></pre>
  
  <p>to</p>
  
  <pre><code>https://www.examplesite.com//var/www/vhosts/examplesite/httpdocs/wp-content/plugins/files/civicrm/custom_ext
  </code></pre>
  
  <p>It looks like it is taking the <a href="https://www.examplesite/" rel="nofollow">https://www.examplesite/</a> part from the civicrm.settings.php file:</p>
  
  <pre><code>define( 'CIVICRM_UF_BASEURL'      , 'https://www.examplesite.com/' );
  </code></pre>
  
  <p>I'm getting a number of errors telling me that extensions are pointing to the wrong place, so I figure I've <strong>gone astray somewhere in the settings</strong>. I see the Extension Resource should be the same as the CiviCRM Extensions Directory, which currently is:</p>
  
  <pre><code>/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext
  </code></pre>
  
  <p>Where have I gone wrong? Any pointers much appreciated!</p>
  
  <p>Edit: </p>
  
  <p>So I changed the Resource URL to <a href="https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext" rel="nofollow">https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext</a>, but I still seem to get an error indicating that maybe the extensions are still not pointing to the right place?</p>
  
  <p><code>mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required 'CRM/Core/Session.php' (include_path='/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/uk.co.vedaconsulting.mailchimp-1.0-beta4/:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/packages/:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/:.:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm/packages:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:.:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm/:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm//packages:.:') in /var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/uk.co.vedaconsulting.mailchimp-1.0-beta4/mailchimp.php on line 442</code></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-29T20:50:30.317Z
Comments.Text: Maybe the Extension Resource URL should just be an absolute URL, like: `https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext` ?
Comments.UserDisplayName: andywozhere
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T09:11:42.793Z
Comments.Text: That's exactly the Extension Resource URL in your case. Have a look at DaveFF answer.
Comments.UserDisplayName: Andrei
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T16:21:07.503Z
Comments.Text: Maybe the URL in the CiviCRM Extensions Directory should be the full URL: `https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext` rather than  `/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext`?
Comments.UserDisplayName: andywozhere
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-30T18:13:56.853Z
Comments.Text: Have another check through of all your entries in civicrm.settings.php
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-01T08:39:06.800Z
Comments.Text: Extensions Resources URL: `https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext` Extensions Directory Path: `/var/www/vhosts/examplesite.com/httpdocs/wp-content/files/civicrm/custom_ext/` (don't forget the last slash "/"). CiviCRM Base URL: `https://www.examplesite.com` (note the "s" in https:// if you are using SSL) after that cleanup caches and update paths. Also after applying this changes, as @petednz suggests double check your entries in civicrm.settings.php if after that you're still facing the same issue you might need to provide more info about your server.
Comments.UserDisplayName: Andrei
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-01T10:27:58.770Z
Comments.Text: Added trailing slash. Paths saved and cache cleaned. civicrm.settings.php checked and rechecked. Still getting errors!  I get this warning in the admin area, could this be something to do with it?
  
  **WARNING: The downloader may be unable to download files which require HTTP redirection. This may be a configuration issue with PHP's open_basedir or safe_mode.**
Comments.UserDisplayName: andywozhere
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-01T11:12:11.930Z
Comments.Text: Could it be an issue with PHP? I have just noticed the server is running cersion 5.3.3 and CiviCRM recommends at least 5.3.10. Seems odd that this would just impact the extensions though.
Comments.UserDisplayName: andywozhere
Tags: <extension><resource-urls>
Title: Extension Resource URL being rewritten
ThreadText: # Extension Resource URL being rewritten
  
  (Asked by: username_0 on 2015-09-29)
  
  When I save the Extension Resource URL it is rewritten from:
  /var/www/vhosts/examplesite/httpdocs/wp-content/plugins/files/civicrm/custom_ext
  
  to
  https://www.examplesite.com//var/www/vhosts/examplesite/httpdocs/wp-content/plugins/files/civicrm/custom_ext
  
  It looks like it is taking the https://www.examplesite/ part from the civicrm.settings.php file:
  define( 'CIVICRM_UF_BASEURL'      , 'https://www.examplesite.com/' );
  
  I'm getting a number of errors telling me that extensions are pointing to the wrong place, so I figure I've gone astray somewhere in the settings. I see the Extension Resource should be the same as the CiviCRM Extensions Directory, which currently is:
  /var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext
  
  Where have I gone wrong? Any pointers much appreciated!
  Edit: 
  So I changed the Resource URL to https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext, but I still seem to get an error indicating that maybe the extensions are still not pointing to the right place?
  mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required 'CRM/Core/Session.php' (include_path='/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/uk.co.vedaconsulting.mailchimp-1.0-beta4/:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/packages/:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/com.drastikbydesign.stripe/:.:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm/packages:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm/vendor/phpseclib/phpseclib/phpseclib:.:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm/:/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/civicrm/civicrm//packages:.:') in /var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext/uk.co.vedaconsulting.mailchimp-1.0-beta4/mailchimp.php on line 442
  
  **Tags:** extension, resource-urls
  
  > **Comments:**
  > **username_0**: Maybe the Extension Resource URL should just be an absolute URL, like: `https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext` ?  
  > **username_1**: That's exactly the Extension Resource URL in your case. Have a look at username_3 answer.  
  > **username_0**: Maybe the URL in the CiviCRM Extensions Directory should be the full URL: `https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext` rather than  `/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/custom_ext`?  
  > **username_2**: Have another check through of all your entries in civicrm.settings.php  
  > **username_1**: Extensions Resources URL: `https://www.examplesite.com/wp-content/plugins/files/civicrm/custom_ext` Extensions Directory Path: `/var/www/vhosts/examplesite.com/httpdocs/wp-content/files/civicrm/custom_ext/` (don't forget the last slash "/"). CiviCRM Base URL: `https://www.examplesite.com` (note the "s" in https:// if you are using SSL) after that cleanup caches and update paths. Also after applying this changes, as @petednz suggests double check your entries in civicrm.settings.php if after that you're still facing the same issue you might need to provide more info about your server.  
  > **username_0**: Added trailing slash. Paths saved and cache cleaned. civicrm.settings.php checked and rechecked. Still getting errors!  I get this warning in the admin area, could this be something to do with it?  **WARNING: The downloader may be unable to download files which require HTTP redirection. This may be a configuration issue with PHP's open_basedir or safe_mode.**  
  > **username_0**: Could it be an issue with PHP? I have just noticed the server is running cersion 5.3.3 and CiviCRM recommends at least 5.3.10. Seems odd that this would just impact the extensions though.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2015-09-30. Score: 2 | Accepted answer
  
  The 'Extension Resource URL' under 'Resource URLs' is the web-accessible URL that points to the extensions directory, not the path to that directory on the server's filesystem. The path on the server belongs in 'CiviCRM Extensions Directory' under 'Directories'.
  
  Edit: for the example shown, the 'Extension Resource URL' is '<https://ffnew/sites/default/extensions>' for a 'CiviCRM Extensions Directory' of '/var/www/html/prod/drupal/sites/default/extensions'. This will differ if you're not on Drupal.
  
  [![Extensions URL](https://i.sstatic.net/VAD7C.png)](https://i.sstatic.net/VAD7C.png)
  
  > **Comments:**
  > **username_0**: Thanks Dave, this all looks to be more or less what I have now, but I am still getting an error that seems to imdicating the the extensions are going to the wrong place.  
  
  ---
  
  