I have successfully installed the node_images on several sites. I recently installed it on a new site, however, and it is not functioning. I had tried out the pblog module, and am not sure if this broke something within my configuration. I've compared my setup to my existing, functioning site, and cannot find the problem.

The symptoms are as follows: the user browses for the image, there is a delay, as if the file is uploading, but the image never gets added to the node. I notice on my good site, that the text bar that contains the name of the image, turns to a scrolling gray bar when the image is actually being uploaded to the site. This does not occur on the site that is not functioning properly.

I have given anonymous users permission to create a user review. All you need to do is add the title - nothing else is required. Once you save, you can then edit, and add an image.

I've noticed some 'access denied' errors in the watchdog log, but they came from anonymous, and I am not sure if they are related to the image upload. My 'files' and 'images' directories are both set to 755 permissions.

My other site specifies the 'images' directory within the configuration of 'image' and the 'files' directory is specified within the configuration of 'node_images'. I am not sure if node_images relies on image. I do not believe so.

The site where the node_images is working is here: http://www.zuckerslist.com (node_images have been added to the classified ad content type)

The site where node_images is NOT working is here: http://www.traveluptuous.com (anonymous users have permissions to create a user review - there is also a link to the right for User Reviews where I have placed several test nodes)

Any help would be greatly appreciated.

Thanks in advance.....

Comments

kmv’s picture

755 permissions will only work for 'files' (and 'images') if they happen to be owned by the user the web server runs as (probably 'nobody' or 'apache'), they should really be set to 777.

Personally, I like to set 'files' 2777 and have a regular user and group own it.

zucker-1’s picture

I tried 777, but that didn't make it work. Also, the files directory is set to 755 in the sites where node_images is working. Man, this is frustrating!

Thanks again for the reply..

zucker-1’s picture

I just tried again and got this in the watchdog log:

Type Datesort icon Message User Operations
warning access denied 08/16/2007 - 17:36 node/21/images Anonymous

The node/21/images leads to a link that then takes me back to my post that I just attempted to add an image to using node_images. I don't understand why 'images' is in the path, when 'files' is indicated as the location within the configuration of node_images....

zucker-1’s picture

Nevermind - I see that error on the sites that works.....still stuck..