G'day,
Using CiviCRM 5.7.2 with Drupal 7.61, when editing a newsletter in CiviMail, the image browser always points me to
$drupaldir/sites/all/modules/civicrm/persist/contribute/images/
no matter what I configure as the directory path for "Image Directory" at
civicrm/admin/setting/path?reset=1
I've tried relative path ([cms.root]/sites/default/files/uploads), absolute path, and absolute path via settings override in civicrm.settings.php; all to no avail.
[added to clarify in response to @Chris Burgess' comment]: The setting does stick, as in it shows up as entered in the form after a reload; and when I tried settings override via civicrm.settings.php, that setting showed up instead and made the form field uneditable. Still, whatever shows up there does not seem to have any impact on where the image browser takes me.
I double- and triple-checked permissions and they are fine; we're also using the same directory with ckEditor and IMCE in Drupal with no problems.
Not sure if I'm missing something, but isn't that the correct setting for what I want to do? Either way, is there a way to point the image browser to our general image path in the drupal files directory?
Many thanks in advance for any advice!
Update: The image browser window shows the following URL:
<mywebsite>/sites/all/modules/civicrm/packages/kcfinder/browse.php?cms=civicrm&type=images&CKEditor=crmUild_1&CKEditorFuncNum=0&langCode=en-au
so I poked around a bit in the kcfinder
directory. There's a config.php
, but it appears that the settings in there are also ignored.
So I took more desperate measures:
cd $drupaldir/sites/all/modules/civicrm/persist/contribute
mv images images.HOLD; ln -s ../../../../../default/files/uploads images
Now it shows me the correct directory (though with the wrong name), but whatever I try to do, I get a "warning" dialog stating "unknown error". Well, was worth a try.
Anything else I could try to get this to work?