Closed (cannot reproduce)
Project:
Image
Version:
6.x-1.0-alpha4
Component:
image.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2009 at 14:18 UTC
Updated:
20 Dec 2010 at 23:39 UTC
Constantly getting broken path to images when creating new image node/ image import.
In my settings I have /sites/default/files/images but when I create new image node I get /system/files/images in sourcecode.
first of all I don't even have such folder 'system', and I never specified any folder like that anywhere in my drupal configuration.
This is fresh drupal installation, I never had here any single image or gallery, when I tried to create my first Image node - getting this problem.
Drupal version 6.10
Comments
Comment #1
Hetta commentedPrivate or public files? If private, /system/ is where all files go ... you could create the folder, but it needs a .htaccess file (which blocks all access that's not from within drupal).
Comment #2
Ectar commentedYeah, but system still creates image files and thumbnails files in sites/default/files/images/.. ?! It know where to create files but refers them from some non existing folder!
Comment #3
luebbe commentedI have the same problem here. (Image 6.x-1.0-alpha5)
Files are set to private. I have a private upload directory outside the web root. The links for the different image sizes created on the image node page all have absolute path names pointing to the private, unreachable path without the domain part.
Take a look at http://tam-lin.info/node/216 and hover you mouse over the "Original" size link.
It points to http://www/htdocs/w006c0e2/files/tam-lin/images/20090718_Rheinpfalz.jpg, which obviously won't work
instead of: http://tam-lin.info/system/files/images/20090718_Rheinpfalz.jpg
calling: http://tam-lin.info/node/216?size=_original directly works, but the link to the "Preview" image size is also broken.
Comment #4
luebbe commentedAdditional information: There seems to be some interference with lightbox 2. If I enable lightbox 2, the links are wrong. If I disable lightbox 2, the links are ok.
Comment #5
Ectar commentedYeah, is there any recommendations how to handle setup Image module with private file transfer?
Comment #6
Swift Arrow commentedlubbe, you should rewire your .htaccess file to allow that external directory to work. Otherwise, Drupal will re-write the whole url.
Another thing you could try is defining your filesystem path, or using a symlink inside the drupal directory. Infact, a symlink might be the easiest way.
Comment #7
luebbe commentedno, it has nothing to do with the .htaccess file. The problem lies within lightbox 2 and its automatic handling of image nodes.
See: http://drupal.org/node/528920
Comment #8
joachim commentedDoes that mean we can close this?
Comment #9
SamFlushing commentedNo, still got this problem at Drupal6 + image-6.x-1.0-beta5. (lightbox 2 is disabled)
Somebody help?
Comment #10
SamFlushing commentedProblem was fixed at the following way
Go to
http://yoursite/admin/settings/file-system
and change public mode (HTTP) to private (Drupal handling)
Comment #11
sunSorry, without further information this issue can only be closed as not reproducible.
Feel free to re-open this issue if you want to provide further information. Thanks.