[civicrm.root] is being computed incorrectly. Entering the absolute URLs in
Settings > Resource URLs has been sufficient to fix most problems, but some problems persist.
For example, when i encounter an error like crm.ckeditor.js getting an error, the console tells me it can't find it at
You'll notice that
mysite.org is repeated.
I'm running (CiviCRM 4.7.22) on an "Addon Domain" on my host. When you manage files for your addon domains, they show up as a folder on in your file manager. So my Civi files are installed at:
I assume that when Civi is computing the
[civicrm.root] variable, it just assumes it can replace
/home/username/public_html with the base url defined by
CIVICRM_UF_BASEURL, which would explain why I'm getting this
So how do I fix this permanently? Clearly using absolute URLs in
Settings > Resource URLs isn't sufficient for every case. To clarify the values frrom
define( 'CIVICRM_UF_BASEURL' , 'https://mysite.org/');
$civicrm_root = '/home/user/public_html/mysite.org/wp-content/plugins/civicrm/civicrm/';