I have CiviCRM 5.18 running with Wordpress on a server where the Wordpress instance is managed by Cloudron (https://cloudron.io). Several other web applications being used as well on the same server, and handling all the updates is greatly simplified by using Cloudron. The CiviCRM settings needed to be tweaked slightly to get it to work: essentially from what I can see the Wordpress code sits in a directory /app/code (which is managed by Cloudron) apart from the wp-content directory which sits in /app/data/ with a symlink.
so, in my civicrm.settings.php file I have:
$civicrm_root = /app/data/wp-content/plugins/civicrm/civicrm/
CiviCRM reports:
[cms.root] as /app/code
[civicrm.root] as /app/data/wp-content/plugins/civicrm/civicrm
[civicrm.files] as /app/data/wp-content/uploads/civicrm
So far so good, and CiviCRM appears to be working flawlessly, with one exception: the WYSIWYG editor isn't loading.
For example, on the 'Memberships' tab of a contribution page, where I would expect to see rich text editor fields for the message text for new memberships and renewals, I'm just seeing standard text fields.
My browser console reports a 404 error on these pages, saying that it failed to load the resource at https://mydomain.org/app/data/wp-content/plugins/civicrm/civicrm/js/wysiwyg/crm.ckeditor.js?r=UgnWN
The URL it should be using is https://mydomain.org/wp-content/plugins/civicrm/civicrm/js/wysiwyg/crm.ckeditor.js?r=UgnWN so for some reason it is incorrectly constructing the URL.
I'm thinking that I could/should be able to override this URL in civicrm.settings.php and so avoid the issue, but I'not sure what variable I need to be setting there. Can anyone advise?