Download & Extend

The directory files/images/import does not exist

Project:Image
Version:6.x-1.0-alpha4
Component:image_import
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I've just run across what I think is a bug, so I'm reporting it here. I've just deployed the newly released image.module 5.x-1.0 on a brand new 5.1 site, and it seems to be working properly. Image_import, however, has a config error:

"The directory files/images/import does not exist".

Details are as follows. There IS a dir at that location. Drupal is installed in /dev/. The import dir resides inside /dev/sites/default/files/images/import. All directories below /sites/default/ have octal 777 right now for testing purposes. Oh, and this image.module was upgraded from 5.x-1.x-dev, if that matters. I doubt it.

Comments

#1

Status:active» postponed (maintainer needs more info)

it uses file_check_directory() function to check that the directory exists and is writable. please double check all the permissions. you might try providing a full path to the import directory.

#2

Status:postponed (maintainer needs more info)» fixed

"sites/default/files/images/import" != "files/images/import". you need to make it "sites/default/files/images/import"

#3

Status:fixed» postponed (maintainer needs more info)

Not so, my good man, for the "files" directory is a Drupal default path. It is created by drupal during an installation, if so desired, and therefore must necessarily be considered to be under the /sites/default/, or wherever else the user elected to place it. If I installed a site with /files/ in the 'default' location of /sites/default/files, I would assume that if image_import.module informed me of it's intent to create it's own directory in files/images/import, and I already had a files/images directory due to the install of image.module, it would be looking in that same path. You know, the Drupal way.

What if this is an instance of lack of communication to the end user? If image.module creates and/or wants a files/images, then image_import should want the same relative path. Since it doesn't, should I re-write the paragraph underneath the config setting form for image_import, and submit it as a patch? What do you guys think?

#4

Category:bug report» feature request
Status:postponed (maintainer needs more info)» active

better docs are always welcome. the thing is that the image import module often will be importing form some directory that you really don't want to be web accessible. putting the default path in the files directory was a compromise.

#5

just started out with Drupal .. and all works well until i've installed the image module. I've got the same "The directory files/images/import does not exist" error which do exist as sites/mysite/files/images/import with chmod 777.

i tried /files/images/import #fails
i MKD "files/import" with chmod 777
Still the directory files/import does not exist error
as well as /files/import

After a whole day of failed attempt, i created the import directory on the root directory /import or httpdocs/import; i entered "import" (without / ) in the Import path and it finally works.

Now, I really want to know how to put the import directory in sites/mysite/files/images/import

i'm using drupal 5.1

#6

Status:active» needs review

dave_c? did you try specifying sites/mysite/files/images/import. it sounds like you're a bit confused by the leading /. a leading / means that the path is specified relative to the server's root directory, not your webroot. no leading slash indicates that the path is relative to drupal's root directory.

i didn't really think this was that complicated but i've learned that if two people bother to report a problem it's worth adding in some checks to help them diagnose the problem. the attached patch uses drupal's files directory as the starting point for the import folder and provides clearer instructions.

AttachmentSizeStatusTest resultOperations
image_import.module_131508.patch1.66 KBIgnored: Check issue status.NoneNone

#7

Status:needs review» fixed

I've committed that last patch to HEAD and DRUPAL-5

#8

Status:fixed» closed (fixed)

#9

I have the same error message:
The directory files/images/import does not exist

At this point I can't remember how I installed it. It was a week ago. I thought I was following the directions. I am new to drupal and some of the suggestions in the read me files indicate that drupal/sites/all/ should be the directory I send installs to, but I originally set druapl up with modules in the main drupal folder so now every module I install I'm having to deal with misreads. Also having problems installing tinyMCE, but the image modules are more important.

If there is anyone who can help me with this, please click on my chat button at jamescarvin.com

Thanks!

James Carvin
561-459-5690 (o)
561-310-7990 (m)

#10

Hi,

Anyone has clue or fix on this. I followed the suggestion given by "drewish" and not able to fix this. I replaced "files/images/import" to "home/site/public_html/files/images/import". Please let me know if there is any fix for this.

Current error:
The directory home/site/public_html/files/images/import does not exist.

tia

#11

I tried with this path and it worked now.

sites/default/files/images/import

HTH

#12

Version:5.x-1.0» 6.x-1.0-alpha4
Category:feature request» support request

My status report lists the same error: "The import directory must be configured and exist in order for the Image import module to function." In the error, the word "configured" is a link to the adimin -> site configuration page. So on this page, I clicked "Images". Then I clicked the "Image import" tab.

There, I have the following error msg in red: "The directory /tmp/image does not exist". Immediately below that is a msg in green: "Your settings are configured correctly, you can import images here." the word "here" is a link, so I click that.

This brings me to the admin/content/image_import page, where I have the following message in red: "You need to configure the import directory on the image import module's settings page." The words "settings page" is a link, so I click that.

This brings me to the admin/settings/image/image_import page, which is where I started when I first clicked the link in my status report.

I have tried a number of different options suggested by others for the import path on this page, but nothing works.

LATER: OK (blush), as I went through this to make sure I had documented the error properly, I noticed that at one point it did give me the correct path. When I entered that path, it worked. The correct path for me is: sites/default/files/images.

#13

ok. yes for me it also worked:

the path i entered was:

sites/default/files/images

then I got this message:

# Your settings are configured correctly, you can import images here.
# The configuration options have been saved.

#14

however, my images still dont show!! I get this error when I click on the spot where the pic is supposed to be:

Parse error: syntax error, unexpected '<' in /.../sites/all/modules/photos/tpl/photos_imageblock.tpl.php on line 5

#15

Ok everybody, after some Drupal soul searching I found out that you have to actually go to your ftp to find where your files/images files are under sites (on your ftp). Where ever it is write down the actual path of it. Then go to, admin, site config, images, image_import, scroll down to where it says "import path". Input whatever path you wrote down earlier, so it can point to where it actually is. For example, mines was under sites/default/files/image. Put that as the path under import path and wha la!!! Also, another thng I did was change the permission under every folder under sites to 777, just in case. It actually was able to place a temp folder there. So I don't know if the first part helped or the latter, or both but it worked!!!

nobody click here