Hello,
I am trying to understand the reason why I cannot see my image (for now I am just in a test site, using your image and text - just to see it working) on the front page (in the cool Article-based header that you have created.
I see the text, but the image doesn't show.
If you email me I can send you a URL and login to the site - I am sure it is something silly.
I worked through the "Advanced" instructions methodically, and can see the "Article" content type, the "Normal Node view: carousel_view" in views, etc.
Let me know how to approach this - I have been administering drupal for some years, but the CCK/Views area is somewhat overwhelming :(
I will send you an email also.
Thanks.
Don
Hi Don,
Everything looks set up properly, and I'm 90% sure the problem is being caused by Imagecache. The images aren't being created properly, or they're being created in the wrong folder. You might want to check on your host via FTP or cpanel (whatever your options are) to see if the images are being resized/created at all. I'm still looking into it, although I'm having a bit of difficulty accessing the URL you sent to me - at times I get a 'server not found' error.
Anyway, I'm trying to recreate the problem on my end now and I'll let you know as soon as I have some info.
Hi Rob,
Thanks for looking into it for me.
I was doing lots of maintenance type stuff yesterday.
The server should be more stable today.
Note that I cannot see any images arriving in the "files" directory (the path in the site you are accessing, cityethics.com is:
buni:/var/www/TESTING.Drupal6.MultiSite/sites/cityethics.com/files$
Listing of directories: (excludes the "files" directory, as there are no new files there either)
css:
total 16
drwxrwxr-x 2 www-data www-data 4096 2009-11-21 19:39 .
drwxr-xr-x 13 www-data www-data 12288 2010-01-22 12:34 ..
imagecache:
total 16
drwxrwxr-x 2 www-data www-data 4096 2010-01-21 16:22 .
drwxr-xr-x 13 www-data www-data 12288 2010-01-22 12:34 ..
imagefield_default_images:
total 16
drwxr-xr-x 2 www-data www-data 4096 2010-01-20 16:30 .
drwxr-xr-x 13 www-data www-data 12288 2010-01-22 12:34 ..
imagefield_thumbs:
total 40
drwxr-xr-x 3 www-data www-data 4096 2010-01-22 12:34 .
drwxr-xr-x 13 www-data www-data 12288 2010-01-22 12:34 ..
-rw-rw-r-- 1 www-data www-data 2436 2010-01-22 12:34 DSC05780.JPG
drwxr-xr-x 2 www-data www-data 4096 2010-01-21 16:22 imagecache
-rw-rw-r-- 1 www-data www-data 14679 2010-01-21 16:22 Win07.png
imagefield_thumbs/imagecache:
total 8
drwxr-xr-x 2 www-data www-data 4096 2010-01-21 16:22 .
drwxr-xr-x 3 www-data www-data 4096 2010-01-22 12:34 ..
I see no log errors when I do the upload either.
Thx for any suggestions as to what to do to resolve this issue...
Let me know if you need any additional data from me.
You got logged in OK right ?
Also, the permissions seem to be fine:
donmc@buni:/var/www/TESTING.Drupal6.MultiSite/sites/cityethics.com/files$ ld
drwxr-xr-x 13 www-data www-data 12288 2010-01-22 12:53 .
dr-xr-xr-x 5 www-data www-data 4096 2009-11-21 11:27 ..
drwxrwxr-x 2 www-data www-data 4096 2009-11-21 11:56 ad_blueprint
drwxr-xr-x 4 www-data www-data 4096 2009-08-18 10:03 backup_migrate
drwxr-xr-x 6 www-data www-data 4096 2009-11-21 11:27 civicrm
drwxrwxr-x 2 www-data www-data 4096 2009-11-21 19:39 css
drwxrwxr-x 2 www-data www-data 4096 2010-01-21 16:22 imagecache
drwxr-xr-x 2 www-data www-data 4096 2010-01-20 16:30 imagefield_default_images
drwxr-xr-x 3 www-data www-data 4096 2010-01-22 12:34 imagefield_thumbs
drwxrwxr-x 2 www-data www-data 4096 2010-01-22 12:52 js
drwxr-xr-x 2 www-data www-data 4096 2009-08-18 10:03 pictures
drwxr-xr-x 3 www-data www-data 4096 2009-08-18 10:03 theme_editor
drwxr-xr-x 5 www-data www-data 16384 2010-01-22 12:52 tmp
donmc@buni:/var/www/TESTING.Drupal6.MultiSite/sites/cityethics.com/files$
But I was expecting all of the directories to reside UNDER the "imagecache" directory - yet there are these "filefield" directories peered with "imagecache"
Don
Just for grins I ATTACHED an image file (not thru imagecache) to check the permissions and it worked just fine - viewable here"
http://cityethics.com/sites/cityethics.com/files/DSC04278.JPG
and I have a rewrite in .htaccess that gets it via this URL too:
http://cityethics.com/files/DSC04278.JPG
Don
It still seems like it could be a permissions issue - that the imagecache directory isn't empty suggests to me that the images are being created properly. The preview in Imagecache isn't working either. In the test article you have published, it's looking for the carousel image here:
sites/cityethics.com/files/imagecache/carousel_image/Win07.png
But of course, even when you point the browser to that location it redirects. I checked the logs and it's not reporting a 'not found' or 'access denied'.
Right now I'm looking on Imagecache's open issues on Drupal.org at it seems there's other users experiencing this too.
Sorry for not knowing right off hand what's going on here, this issue is a new one to me.
Would you have any objections to me taking a look on the server itself? Everything on Drupal itself looks correct to me.
It's starting to look like this is a known issue with multisite installations and having the file system set to public. With private, I have a feeling it would work - but obviously that's not an ideal solution. Some people have had success editing the Imagecache module, too - also not the most elegant solution.
There's also talk about an unnecessary .htaccess file being left over in the /sites/ directory when upgrading that disables mod_rewrite. If you have such a file, change:
RewriteEngine off
To:
# RewriteEngine off
And test to see if it works.
That's just a guess, but I thought I might as well throw it out there.
The images and their directories are being created, as you can see here: http://cityethics.com/system/files/imagecache/carousel_image/Win07.png
So it's almost certainly a path issue.
Hi Rob,
Just so you know this post below is what fixed my issue:
Thanks for your help on it.
Don
Imagecache FIX for images being created in wrong location
Post installation ยท Drupal 6.x
Tytest - July 31, 2009 - 13:58
A lot of people have complained about Imagecache not creating images in the correct folder, or the preview (imagecache_sample.png) doesn't work. Most likely these are individuals that have upgraded from a previous Drupal version, or fresh install with their old 'files' data directory.
Imagecache NEEDS the proper htaccess options. Older versions of Drupal do not have this and cause the module to act up. Before you drive yourself nuts and try implementing code hacks, try this.
1. Go into your 'files' directory (sites/default/files) and delete or rename your .htaccess file.
2. Login to your drupal site and navigate to the file system admin. (yourdomain.com/admin/settings/file-system)
Drupal will automatically create a new .htaccess file in your files directory once you visit the file-system admin page.
3. Verify a new .htaccess file has been created in your 'files' directory. It should now look like this:
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks
4. Now try imagecache, everything should work!
This issue is attributed to deprecated entries in your ../files/.htaccess file from older installations of drupal and not a bug in imagecache.




