I am running a multi-site installation of Drupal - single code base, multiple databases, and vhost subdomains.
I have a files folder in each site so that the structure in the sites directory looks like the following:
sites
- all
- modules
- default
- settings.php
- sub1.example.com
- modules
- themes
- files
- settings.php
- sub2.example.com
- modules
- themes
- files
- settings.php
So, under file system, I have the file system path set to "sites/sub1.example.com/files" and "sites/sub2.example.com/files" respectively. The upload module that is part of Drupal core works fine with this set-up, as does imagefield and imce.
After installing the image module, the comments under the image configuration fields include the correct path - e.g. Subdirectory in the directory "sites/sub1.example.com/files" where pictures will be stored. Do not include trailing slash.
If I leave it with the default 'images', it creates an images folder in the main www directory, NOT in sites/sub1.example.com/files. What do I need to do to make images recognize the file system path??
Comments
Comment #1
jastraat commentedAs an additional note, if I set the image file path to "sites/sub1.example.com/files/images" the file goes to the correct place, but it never leaves the temp directory. No derivatives (thumbnail or preview) are created, and since the file only exists in the temp directory, the image isn't linked.
Comment #2
jastraat commentedJust to further clarify, here's the error message I see after trying to upload an image:
* Unable to create scaled thumbnail image
* Unable to create scaled thumbnail image
* The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
Comment #3
jastraat commentedI've figured out a part of this issue. It seems that the GD toolkit installed on our server doesn't contain the function 'imagecreatefromjpeg'. It might be useful to mention in the notes to the image module a list of exactly what functions it uses from the GD toolkit.
I'm still having the error: The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.
If anyone has suggestions, please let me know.
Comment #4
drewish commentedGD is part of core so you'll need to open a separate issue for that.
Comment #5
jastraat commentedThank you for the tip!
However the image module is still not working. The thumbnail and preview are created, but the original image is not moved from the temp directory.
Comment #6
jastraat commentedSame issue is here: http://drupal.org/node/152093
Comment #7
(not verified) commented