I believe [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 https://mysite.org/mysite.org/wp-content/plugins/civicrm/civicrm/js/wysiwyg/crm.ckeditor.js.
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:
/home/username/public_html/mysite.org/wp-content/plugins/civicrm/civicrm/
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 https://mysite.org/mysite.org/wp-content...
.
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 settings.civicrm.php
:
define( 'CIVICRM_UF_BASEURL' , 'https://mysite.org/');
$civicrm_root = '/home/user/public_html/mysite.org/wp-content/plugins/civicrm/civicrm/';
$civicrm_root
, which is defined incivicrm.settings.php
. You should editcivicrm.settings.php
to use CKEditor. As to your original question - 90% of what's posted here is a red herring. Could you please rewrite the question to be reflective of what you've found regarding the calculation issue? – Jon G - Megaphone Tech Aug 12 '17 at 19:09[civicrm.root]
is defined incivicrm.settings.php
but I need to know what to change so that my URLs are calculated correctly. – Tomulent Aug 14 '17 at 17:15CIVICRM_UF_BASEURL
and also of$civicrm_root
? I'm having a hard time visualizing the values from the outputs. – Jon G - Megaphone Tech Aug 14 '17 at 18:47mysite.org
. – Tomulent Aug 14 '17 at 19:27