I'm having some problems with the CiviCRM Resource URL setting that I can't get my head around. Set as [civicrm.root]/
the System Status screen displays the error 'The Resource URL is not set correctly'. Set as [cms.root]/sites/all/modules/civicrm/
everything seems to work fine (until I try to upgrade). But surely both should resolve to the same place?
In the File System Paths section of civicrm.settings.php I have the following:
$civicrm_root = '/var/sites/c/beta.example.net/public_html/sites/all/modules/civicrm';
if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) {
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/sites/c/beta.example.net/public_html/sites/default/files/civicrm/templates_c/');
}
And in the Site URLs section I have:
if (!defined('CIVICRM_UF_BASEURL')) {
define( 'CIVICRM_UF_BASEURL' , 'https://example.net/');
}
Trying to load the with the [civicrm.root]/
setting results in a load of javascript errors, of which the following is an example:
[Error] Failed to load resource: The request timed out. (logo_sm.png, line 0) https://var/sites/c/beta.example.net/public_html/sites/all/modules/civicrm/i/logo_sm.png
That looks as though $civicrm_root is set incorrectly, but it seems to be right in accordance with the examples given in the comments. What am I missing?
Edit: If I go to the CiviCRM Resources URLs page and click on ? I see the variables listed as:
[cms.root] https://example.net/
[civicrm.root] https://example.net//var/sites/c/beta.example.net/public_html/sites/all/modules/civicrm/
[civicrm.files] https://example.net/sites/default/files/civicrm/
But if I got to the Directories page and do the same, I see
[cms.root] /var/sites/j/example.net/public_html
[civicrm.root] /var/sites/c/beta.example.net/public_html/sites/all/modules/civicrm
[civicrm.files] /var/sites/c/beta.example.net/public_html/sites/default/files/civicrm
Where are these getting calculated from that means they're producing different results? Particularly that random one with the /j/ in the middle, which I've never seen before anywhere!