I installed FileField, ImageField, ImageAPI, and ImageCache.
I created my own content type, added a bunch of different fields, one of them being a file field that involved image upload.
I went to Administer > ImageCache > Add New Preset. Made the name "thumbnail" and added the action to scale size 100x100 pixels. SAVED EVERYTHING.

The i went to create content, I created content using my custom content type, filling out all of my fields, including the photos field as I added 3 images. CLICKED SAVE.
When I preview this content the images display huge. (Which is what ImageCache helps with)

Next I went to Adminster > Content Types > manage fields > configure (photos field) > DISPLAY FIELDS. From the drop down menu for the photos under teaser I select "thumbnail image linked to node" and save everything.
Now when I preview my post, there are no images at all where the photos field information should be displayed.

I HAVE TRIED EVERYTHING, reinstalling the modules, checking directories, changing different settings around and I still can't figure out how to get the thumbnails to appear. Only the huge images will appear if I set the DISPLAY of the field back to its default.

CAN anyone help? Please gives answers or suggestions. THANK YOU

Comments

jtunney1’s picture

I checked the Recent Log entries and found something

Location: http://localhost/sites/default/files/imagecache/thumbnail/imagecache_sam...

--my ImageCache_sample file got stored in the files folder by default, it is not in a folder called thumnbnail within the imagecache folder. I'm assuming that a folder called thumbnail should be getting created within the imagecache folder because "thumbnail" is the name of the SCALE 100x100 preset that I created. It isn't being created in there. And I also don't see the big DRUPAL logo sample image working like I do in some tutorial vids.--

Referer: http://localhost/?q=admin/build/imagecache/9

Message: FileField was trying to display the file sites/default/files/PIER VILLAGE AND OCEAN NIGHT CLUB (54).JPG, but it does not exist.

EVERYTIME! I try to check the homepage and the thumbnails are not showing it adds about 4 errors to the recent log entries. So this has to be the problem. It's either not finding my original pics uploaded from FileField or... ImageCache isn't creating the directories needed for whatever reason.

jtunney1’s picture

Nothing is being created in the sites > default > ImageCache folder. I guess it seems to be a directory problem? Although, within the files folder there is a folder called imagefield_thumbs where thumbnails of any image that I uploaded are being placed.... Is this from ImageCache or is this just Drupal creating thumbs for me automatically on the side???

I also have it so any images that are uploaded within my photos field should go to the directory sites > default > job photos. Which they do, which probably shouldn't be a problem should it? That is just where the original file that is uploaded is stored right?

I also have all of the modules within ImageCache turned on, so they shouldn't be the problem.

Please let me know how to make it so the ImageCache folder is being used properly! Thank you.

jtunney1’s picture

PROBLEM FIXED!!!

I just had to Enable Clean URLs. (NOT actually enable them (that's optional), but had to follow the steps that allows you to enable them.

Open up the httpd.conf file within WAMP or MAMP, then search for "mod_rewrite" and remove the # sign from mod_rewrite line.

THEN paste


RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

into the httpd.conf file under the Loaded Modules.

THIS IS ALL YOU HAVE TO DO!!! i'm new to drupal... now when I do a fresh drupal install... I will add this to my process before I get started with modules.

jtunney1’s picture

Title: ImageCache Problem - PLEASE HELP! » PROBLEM FIXED!!!

I just had to Enable Clean URLs. (NOT actually enable them (that's optional), but had to follow the steps that allows you to enable them.

Open up the httpd.conf file within WAMP or MAMP, then search for "mod_rewrite" and remove the # sign from mod_rewrite line.

THEN paste


RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

into the httpd.conf file under the Loaded Modules.

THIS IS ALL YOU HAVE TO DO!!! i'm new to drupal... now when I do a fresh drupal install... I will add this to my process before I get started with modules.