Hello,
I want to use imce on my server with a multisite configuration, but I have some problems.
I have set up the files directory path to a directory inside the multisite configuration like sites/test.com/files. I want to use the private download method.
Then I added a picture using imce to a normal page. After saving, the page is displayed without any error. Then I pressed the refresh button and then I got the following error messages:
warning: realpath() [function.realpath]: Unable to access "wrong absolute path to the image"
The filename in this warning message is wrong. It contains the root directory of the domain of my server + the relative path to the image. The path of my multisite configuration is not present.
When I use the public download method I have no problems, because the link in the tag is set correctly without using "/system/...".
Can any body help me with this problem?
Thanks for your help and for this great drupal module.
Frank
Comments
Comment #1
-Anti- CreditAttribution: -Anti- commented> I have set up the files directory path to a directory inside the multisite configuration like sites/test.com/files.
> I want to use the private download method.
That's a contradiction. It doesn't work that way. The way you've set it up does not make your uploads private
from direct linking. Also realise that private means private - anonymous users will NEVER see or access any of
your uploaded files, even if a node itself has anonymous permission. Any images/files for anonymous visitors
have to be uploaded by ftp instead of drupal, into the normal /sites/files/etc directories.
Further, perhaps you don't realise that your multisites are separate sites - each needs set-up within
its own backend. It sounds like you haven't set-up your test.com site.
To make your files private, assuming you have drupal installed in home/public_html/ (ie. in your web root)...
Go to: domain.com -> admin -> file system
The path should be: ../private_default exactly like that.
This will create a folder above your web root: /home/private_default
Enable 'private file system'.
Go to: test.com -> admin -> file system
The path should be: ../private_test exactly like that.
This will create a folder above your web root: /home/private_test
Enable 'private file system'.
Note that if you installed drupal in a subfolder or subdomain, you would use:
../../private_default & ../../private_test instead
Now set up your IMCE profile in BOTH domain.com and test.com.
You will see the root has changed to ../private_default and ../private_test respectively.
Hope that solves your problem.
Reopen the thread if you need futher help.
Comment #2
-Anti- CreditAttribution: -Anti- commentedComment #3
afuller CreditAttribution: afuller commentedI am having the same problem. I have a Drupal multisite configuration and would like to use IMCE w/ FCKeditor. However, when I enable IMCE, it creates the user file directories on the server under "*\root\httpdocs\files" instead of "*\root\httpdocs\sites\sub.test.com\files"
Is there a way to direct IMCE to create user directories under the site folders instead of in the root folder?
Thanks!
Comment #4
-Anti- CreditAttribution: -Anti- commented> Is there a way to direct IMCE to create user directories under the site folders instead of in the root folder?
You need to set-up the UPLOAD MODULE directory for *each* multisite.
IMCE then uses *that* for the root in each of the sites.
Comment #5
ufku CreditAttribution: ufku commentedClosing 6.x-1.x issues as this branch is no more supported.