First, thank you for creating/supporting this module. It is a great idea. Unfortunately, I am struggling with installation and I have spent more than three hours working through this and I hope you can give me some direction.

I can upload a file. The preview displays on the edit screen just fine. Once I save the file, the node/view shows only the little red X where the image is supposed to be. The path to it is:

Only local images are allowed.

When I look in the file manager, there are no files in the imagecache directory. I have tried to reupload various files and I'm working with a small file so I don't think the image size is an issue. I have also tried flush preset images several times.

From the admin screen, the version number is: $Id: imagecache.module,v 1.19.2.34 2008/03/29 19:19:40 dopry Exp $
From the module screen, the version is 1.4

Imagefield is 5.x-1.2-rc1

Temp directories: file system path = files, temporary directory files/tmp. The Temp directory is set at 777. There is also an imagecache directory under files with permissions set to 777.

Public file downloads.

Namespace: mainimage

Drupal version 5.7

PHP Version 5.1.4

I hope I have given you a sufficient amount of information to help. Thank you so much for taking the time to look at my issue.

Thanks --

Missy.

Files: 
CommentFileSizeAuthor
#2 patch.patch586 byteswebernet

Comments

jpoesen’s picture

Hi. You indicated the path to the image, but it isn't shown in your post:

the node/view shows only the little red X where the image is supposed to be. The path to it is:

Could you repeat the path of the image that the browser is trying to load?

Thx.

webernet’s picture

Title:Imagecache doesn't appear to be creating files» Imagecache creating directories with incorrect permissions
Category:support» bug
Priority:Normal» Critical
Status:Active» Needs review
StatusFileSize
new586 bytes

Directories are being created with the wrong permissions. It should be 0775, not 775.

MissyM’s picture

I apologize. The path to it is: http://www.mysite.com/files/imagecache/mainimage/files/media/brand/logos..." alt="logo.gif" title="Small Logo" /> One of my namespaces is mainimage. I tried the patch but it didn't work. It exacerbated the problem as the preview no longer worked on the add/edit content screen. I changed it back and the preview worked again.

Thanks in advance for your help.

Missy.

MissyM’s picture

Status:Needs review» Active
dopry’s picture

Status:Active» Fixed

oh see 1.5, I made an oopsie... :)

MissyM’s picture

Status:Fixed» Active

Thanks for the revision. Unfortunately, still no luck. No directories are created under files/imagecache. I flushed the namespaces, downloaded, reloaded, etc. There were no files created. GD support is enabled and bundled (2.0.28 compatible). There were no errors in my serverlog.

dopry’s picture

Status:Active» Postponed (maintainer needs more info)

Which user does your web server run as? What are the perm on the imagecache folder? Was imagecache working before updating? did you clear your browser cache? Is there anything in watchdog? the empty server log was the apache error log, yes?

MissyM’s picture

1. I believe my server runs as Apache. I don't know how to find that but when the system creates it's own directories, that's who owns them. Here is my server data: Linux xxx02.smf.one-cluster.net 2.6.9-67.0.7.ELxenU #1 SMP Sat Mar 15 07:00:22 EDT 2008 x86_64 and my path: /var/www/vhosts/example.com/httpdocs
2. 777
3. No, it was never working
4. I cleared the browser cache and it made no difference
5. There is nothing in watchdog
6. The server log was the apache error log

I would be happy to test anything else out to get this going.

MissyM’s picture

Status:Postponed (maintainer needs more info)» Active
dopry’s picture

Status:Active» Postponed (maintainer needs more info)

What do you get when you try to load the URL for an image? try to chmod -R 775 files/imagecache
the original files are there yes?

MissyM’s picture

Status:Postponed (maintainer needs more info)» Active

I changed the imagecache directory to 775. I attempted to add another node with an image. The preview did not appear when I uploaded the file. This may or may not be related to the issue at hand. I saved it with no error however the node appeared without the image. View source indicated that the img src tag of the image was at http://www.example.com/files/imagecache/mainimage/files/media/brand/logo..." on this server. Navigating to that page gave me a permission error. At no time have any files or directories been created in the imagecache directory. The original files do get uploaded to /files/media/brand/logos/logo.gif, however. Thank you for your continued persistence.

dopry’s picture

Status:Active» Postponed (maintainer needs more info)

Which permission error did it give you? Was it an http 403? a drupal access denied message?Please make an effort to include these details as they help in figuring out what is going on... It's not just the permissions of the imagecache folder that are important... the permissions of each mainimage, files, media, brand, and logo.gif are important.

MissyM’s picture

Status:Postponed (maintainer needs more info)» Active

I miscommunicated. I will be more specific from now on. It didn't give me a permission error. It just brought me to an empty themed page - with menus and all, just no content. When I navigate to http://www.example.com/files/media/brand/logos/logo.gif I get only the logo on a blank page. When I check in the imagecache folder, there are no files. I have tried 777 and 775 and neither work.

MissyM’s picture

I put some watchdog statements in the .module file to try to isolate the problem. The function imagecache_cache apparently isn't getting called. I'm not sure at what point is supposed to be called but I'd be happy to test some more if you can give me some direction. Perhaps there is a conflict with one of the other modules I have installed.

The module does get called at certain points because the directory is being determined correctly and a put a watchdog statement in the theme portion and that generated a log entry.

dopry’s picture

Status:Active» Postponed (maintainer needs more info)

hmm... do clean urls work on your site? Can you actually post the permissions of your imagecache folder and all it's sub folders?

MissyM’s picture

Status:Postponed (maintainer needs more info)» Active

Clean URLs do work on my site and there are no subfolders and no files under the imagecache folder. The imagecache folder is 777. I believe that the images aren't being made or stored properly.

dopry’s picture

So right now...

and the path files/imagecache exists with perms 777
and the path files/imagecache/* doesn't exist.

we know the module is installed and working, because it's theme function is producing output.

imagecache_cache isn't getting called when you try to load:
http://www.example.com/files/imagecache/mainimage/files/media/brand/logo...

CleanURLs work and you're on apache so we'll assume the URL rewriting is working properly.

so imagecache_cache should get called by the menu system when you try to load
http://www.example.com/files/imagecache/mainimage/files/media/brand/logo...

If you want to see if it's getting called. I suggest you put simply print "imagecache_cache" at the beginning of imagecache_cache and see if it prints any output when you request the image...

MissyM’s picture

That's where we are. It appears that imagecache_cache is not being called at all. What triggers the call to it? Please give me some guidance and I will try to track it some more.

dopry’s picture

Ok so the menu system is responsible for calling imagecache_cache... Debugging through that route is no easy task and not one I can walk you through...

What other modules do you have installed? There should be an updated 5.x-1.x dev version tomorrow with a lot more watchdog based error reporting.

I was experiencing a similar issue and ended up completely removing the imagecache folder when downgrading from 2.x today. Give that a shot as well..

MissyM’s picture

I will install your dev revision tomorrow and test again. I will post my results here.

shabam’s picture

I had the same issue. I was able to fix it. The imagecache folder had permissions of 1407 (I think) and I changed them to 777 and it started working. Of course, it took me two days to get that figured out, but I'm happy now.

Jason
http://tiredgarden.info

MissyM’s picture

I deleted the imagecache folder, disabled the module, uploaded the new one and installed it again. I updated all the presets and tried the process again. No folders were created. I created the imagecache folder and tried it again. No luck. Here is my module list (core omited):

Front Page
Address Field
Address Field Canadian Support
CCK Field Permissions
CCK Fieldgroup Tabs
CCK Taxonomy Super Select Ultra
Content
Fieldgroup
Node Reference
Number
Text
Computed Field
EMail
File Field
Link
Matrix Field
Nodereference Autocomplete Widget
Phone - CCK
Taxonomy Search Widget
View field
Contact
Upload
Database Administration
Form inspect
Devel
Devel Node Access
Node Import
ImageCache
Image 5.x-1.2-rc1
Activemenu
Collapsiblock
Javascript tools
Tabs
fQuery
GMap
Location
Backup and Migrate
DHTML Menus
Filemanager
Hierarchical Select
NAT
Nice Menus
Pathauto
Quick Add Child
Site Documentation
Sitenotes
Taxonomy Batch Operations
Taxonomy redirect
Theme Settings API
Token
Vardump
Views fusion
Views
Views UI
Configurable Content Links
State Machine API
Workflow-ng

Please let me know your thoughts.

MissyM’s picture

I'm not sure if this is useful, but here are the entries for my system table that relate to image type = modules, name like 'image%' .

name status schema_version
imagefield 1 2
image 0 5
image_attach 0 -1
image_gallery 0 -1
image_im_advanced 0 0
image_import 0 -1
imageapi 0 0
imageapi_gd 0 0
imageapi_imagick 0 -1
imagecache 1 4
imagecache_ui 0 0

dopry’s picture

wow thats a lotta modules...

I don't see any that I know to be bad interactors... I don't think I can really troubleshoot this one any further without access to the server it is on so I can look myself.... (/me isn't the best at offline support).

If you want to continue on your own, you need to figure out why the menu system isn't calling imagecache_cache.

MissyM’s picture

Status:Active» Closed (fixed)

Hey Dopry --

It is a lot of modules. I'm doing a lot of testing. I will have to figure something out because, unfortunately, I'm restricted as to who gets access to the server. Off-line support is very difficult under any circumstances. I can see the module has a lot of work into it. Thank you for your contribution to Drupal. It's the best! Anyway, I appreciate your help and patience thus far. If I figure it out, I'll post it here.

Missy.