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

Hetta’s picture

Private 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).

Ectar’s picture

Yeah, 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!

luebbe’s picture

I 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.

luebbe’s picture

Additional 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.

Ectar’s picture

Yeah, is there any recommendations how to handle setup Image module with private file transfer?

Swift Arrow’s picture

lubbe, 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.

luebbe’s picture

no, 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

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Does that mean we can close this?

SamFlushing’s picture

No, still got this problem at Drupal6 + image-6.x-1.0-beta5. (lightbox 2 is disabled)
Somebody help?

SamFlushing’s picture

Problem was fixed at the following way

Go to
http://yoursite/admin/settings/file-system
and change public mode (HTTP) to private (Drupal handling)

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Sorry, 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.