Alright...seems like this module dont like me...

When i press the submit button.. i got this message :

Full image file not uploaded. Thumbnail image file not uploaded.

Submit image
Thanks for your submission.

return | view | edit

but... when i look in my images directory.. the image is there... and the thumb is created in the thumb directory...

i have chmod 777 to the images directory and 777 to the thumb...

i cant figure out what is the problem... please help... thanx...
(I'm on linux 9.1 mandrake, apache2.0, ImageMagick)

Comments

Cogneur’s picture

And the image dont show up :/
... it's like the browser want to show it.. but it doesnt...

ghavo’s picture

I had the same problem...

I'm using
-Drupal 4.6
-Image 4.6
-GD2 Toolkit..

Eveytime I would create an Image page it would, in preview mode get that image with a red X in it. The pictures are uploaded (I looked in the path) but the browser can't show it.... I followed the link (I right clicked on the red X and selected properties) It was trying to use clean URLs. It will not work if you are NOT using CLEAN URLs. After fiddling around I found that if you go to

-Admin

-Settings

-File system settings section
-Download method:

select Private - files are transferred by Drupal it worked perfectly... I guess because you can't access the file using CLEAN URLs you can't access directly. Good luck!!!

Stephen Winters’s picture

Hi ghavo,
Thanks to much for telling what you did to fix the "image not showing, except for the red x" problem. I had the same problem. when I saw your post, I followed your instructions, and now my images show.

Thank you, Thank you, Thank you.

Best Wishes,
Stephen

libre fan’s picture

If you want any sort of access control on the downloading of files, this needs to be set to private. You can change this at any time, however all download URLs will change and there may be unexpected problems so it is not recommended.

from the settings page. Would this change bring about chaos?
---
Libres-Ailé(e)s (Association for Linux and libre software) (France, Cévennes)
Get Firefox! Rediscover the Web!

mostly water’s picture

Thanks ghavo! I spent quite a bit of time last night trying to sovle this same problem. Changing CHMOD to 777 worked, but I was very uncomfortable with that. Changing the File System settings to Private did the trick!

I had installed img_assist.module first, so perhaps that is what caused this problem for me in the first place, as someone mentions below.

The error I was getting in the logs when the pictures did not show was:

    403.shtml not found.

Type page not found
Date Thursday, April 27, 2006 - 11:58
User jag
Location /sites/fleet30.com/files/images/167_6714%20john.preview.JPG
Message 403.shtml not found.
Severity warning
Hostname 24.1.44.174

ghavo’s picture

duplicate post

karlfornes’s picture

(Quick caveat: I've just installed Drupal and have little or no idea what I'm doing in PHP or MySQL)

What you're describing sounds exactly like the trouble I had last night, and, for the life of me, I couldn't figure out what was going on. The images were in their directory and the browser would "appear" to try to load the image but it would quickly flash out.

I realized this morning that I had installed img_assist before installing the image module and tried to load an image before realizing that I needed the image module. This morning, I deleted both modules (and the img_assist_map table) and re-installed the image module before installing img_assist, and everything seems in order now.

Anyway, my thoughts are probably too late, but I've received enough help from this support forum for the past couple of days that I thought I would pipe in as soon as I had a chance.

gatezone’s picture

I'm having continuing problems with this module and desperately need it for several nonprofits I'm working with. I don't have the experience to help you, but you say you can see the thumb but you also say it is not uploaded? Can you clarify?

For me I can't get the thumb created/saved but the regular image is uploaded. See other threads on image module. GZ

Cogneur’s picture

yeah, it says that it's not uploaded ( full images and thumbs) but when i look in the directorys, they are !

In the site, they dont show up...

kinda weird i know..

gatezone’s picture

Still at it 24 hours later, tried commenting out the lines in the 960's with no change.

I get the images uploaded with no thumb and the error message below. Linux server (see previous post for environment details).

Any help or guidance might salvage our use of Drupal which seems like it has a lot of great things going for it.

This and the subscription module are stopping me dead in my tracks. I figured if I could get install and do lots of mods with phpbb, get Gallery with Imagmagick going, and PostNuke with its share of weirdnesses I'd be able to work with what seems like a very cleanly designed Drupal. I'm bummed by this image and subscription modules failure on a server where the systems mentioned above work well. I had a Monday (tomorrow) deadline for a demo that I thought would impress a nonprofit with a better way to handle their Intranet that is fast looking like history.

==================================
Error message:

warning: rename(tmp/tmpthumb_b0b952b8ee3c0b1a2ef747d42605b507.jpg,images/thumbs/thumb_b0b952b8ee3c0b1a2ef747d42605b507-41.jpg): No such file or directory in /home/virtual/site4/fst/var/www/html/tiva/modules/image.module on line 697.

==================================
Image admin check page:

Setting Status
Default image path OK
Default thumb path OK
Temporary image path OK
ImageMagick convert OK
GD Library available (version 2) - supported formats: JPEG, PNG, WBMP
Jhead disabled
Image vocabulary assigned

==================================

Default image path: images/
Default thumb path: images/thumbs/
Temporary image path: tmp/
Imagemagick Convert path: /home/virtual/site4/fst/usr/X11R6/bin/convert

==================================
Lines 696-698

// Rename Thumbnail
if (!rename(_image_tempthumbname($node), $node->thumb_path)) {
die(t("Cannot save image."));
==================================
Lines 959-965

// 040 = space
$filter = preg_replace("/[^A-Za-z0-9\.\-\+\040]/","",$filter);
$source = _image_escape_shell($source);
$dest = _image_escape_shell($dest);
$err = exec("$_imagick_convert $filter $source $dest");

return $err;

brucenicholls’s picture

I have just installed images myself and didn't have any problems.

I played around abit to see if I could get the same errors as you did and noticed that the image module only tests to see if the paths are writtable. ie returns path OK if it can write to it but doesn't test to see if it can read the file

When I set the /image directory to write only ( ie chmod -R 772 images ) I got an error with the same 'if' statement you did.

warning: rename() failed (Permission denied) in /var/www/html/drupal/modules/image.module on line 695

Are you sure that you have set all permissions in the directories correctly???

I used chmod -R 777 images and chmod -R 777 tmp
to set my permissions.
:-)

gatezone’s picture

Thanks for suggestion, but yea, I've chmod'ed them to 777 early on and have verified this several times. I agree it reads like a permission or simply a bad path name but I think it is either something the code is interpreting incorrectly for the paths or running convert from the absolute path doesn't work with my server's configuration and when I set any other path it doesn't show as verified in the admin image verification page. Anyone have any other ideas...?

brucenicholls’s picture

Can you put in some print_r statements to check the output??

Axel Segebrecht’s picture

hmm... the permissions are fine but you need to make sure you get the convert path to ImageMagic correct:

For me it's: /usr/bin/convert
it may also be: /usr/X11R6/bin/convert

(see: http://drupal.org/node/view/809#994)

All working fine now :D

axelS

mousse-man’s picture

The permission for the images directory must be 770, with the apache account being the owner. Then it should work.

ijulie’s picture

I'm perusing this post with interest, because I'm having what seems to be an identical problem. I tried setting permissions to 770, and got a "Safari couldn't load any data from this location" error. Anybody out there have further thoughts?

ijulie’s picture

I must admit that I am also having some trouble getting image to recognize the ImageMagick convert file (again, see http://drupal.org/node/view/809). On a whim, I set the module to use GD instead of ImageMagick (on its main config page). Magically, it then worked, both for creating individual image nodes and batch uploads! GD does suck -- you have to manipulate and scale the images beforehand, and the thumbnails are crappier. But I am very happy image module is at least working. Perhaps bad communication with ImageMagick was indeed the culprit all along?

aliak’s picture

I had the same problem and it's working now with ijulie's tip so must be something to do with imagemagick

the imagemagick I was using was from the linux gz file @ http://www.imagemagick.org/download/binaries/ - I just uploaded the bin directory, so perhaps it needs more of the libraries as well? I can't fit 45mb on my webspace just for image conversion..

can anyone post a convert file which is known to work?

I'll ask my isp if they have it installed somewhere else and try again later.

at least there are images now.. no thumbnails.

can it work with netpbm - I remember having similar issues setting up gallery in drupal for an earlier drupal version, but then finally got it working with netpbm.. if it can work with netpbm, I'll copy the binaries (known good) from my other site..

thanks

blindsay’s picture

Make this a sticky for the Image module so people won't think they are the only ones with this problem.

This answer works PERFECTLY.

THANKS!!!!!!!!

dchan’s picture

I am attempting to attach images to a custom node module,

I remembered to include the $form['#attributes'] = array("enctype" => "multipart/form-data"); to my hook_form()

When I try to create a new node It says " Thumbnail Image field is required. " , even though I've selected on in the form.

Does anyone have any ideas what i am doing wrong?

dchan’s picture

i was wrong, the file *IS* uploading.

However it always fails the default node_validate() hook because it's #value is empty

I worked around this by setting #required = FALSE, but i'd prefer if it was checked.

any ideas?