I have a very simple drupal 7 site. It was moved to another domain by someone other than myself. Since the move, we have not been able to upload images to any content type. Existing images are there, but we can't upload new ones into the pre-made image field that comes in the Article content type or any other image field we make. I saw that the default image field had the path field/image and I realized that something happened to that directory in the file structure.
I added the files under sites/default/files/
Like so: sites/default/files/field/image
and I changed the ownership and group to www-data which is apache on our server, so it's not tied to root and the permissions are 755 which is similar to other site file setups. But no matter what I do, I cannot get these image fields to work. Does anyone have any idea of what else I could try to fix this?
Becky
Comments
Check max_upload_size (or
Check max_upload_size (or something like that) in your php settings - it may be set too small for your images.
Contact me to contract me for D7 -> D10/11 migrations.
Thanks for the suggestion but
Thanks for the suggestion but I checked that too. Sorry I just forgot to say. I have a max upload of 20mb which is plenty of room. All the image files are smallish.
Then you should also check
Then you should also check the max post size. If it's smaller than the max upload, you won't be able to upload.
Contact me to contract me for D7 -> D10/11 migrations.
I just realized I"m getting
I just realized I"m getting this log error. I don't understand what the tags are there for and not sure how these files should really look . I found a bunch of folders that say things like
<em>basic page</ and <em>article</emas the name of the file folder in my sites/default/files folder. Found this corresponding error.Any advice?
Screenshot: http://www.microsanj.com/log.png
Either the file path hasn't
Either the file path hasn't been set in file settings, or you your files folder is not writable and needs the permissions changed.
Contact me to contract me for D7 -> D10/11 migrations.
The tags in the file folder
The tags in the file folder name are kind of weird though right? I should probably remove that part huh? I don't understand though because the path has been sit in the filed settings and filed/image. I'm not sure where these other files come into play right now.
Everything in files is 755 and the owner is apache.
Try to chmod the directory
Try to chmod the directory "image" under "sites/default/files/field/" to 777