I just moved my site from dev subdomain to main site and I got this error message


warning: mkdir() [function.mkdir]: Permission denied in /home/site/public_html/sites/all/modules/imagecache/imagecache.module on line 164. 

anyone know what that means?

Comments

dopry’s picture

Status: Active » Closed (fixed)

Yeah, your server doesn't have permission to create the imagecache directory. check your permissions.

femrich’s picture

Version: 5.x-1.5 » 6.x-2.0-beta1
Component: User interface » Code
Status: Closed (fixed) » Active

I'm experiencing the same problem. Here's what I was doing:

I have a test website on a server at address www.A and wanted to move it to www.B, the live site address. I had my host setup the site at www.B, then copied my files (including imagecache files), themes, and modules from the site A installation to the site B installation. Then, on the advice of my host, rather than create a copy of the (large) database for site A, I simply rewrote the drupal configuration file for site B to use the same database as site A.

The new site B seems to perfectly reproduce site A except for an error like the error noted above, which appears persistently throughout site B.

my error: warning: mkdir() [function.mkdir]: File exists in /home/femrich/public_html/kimeptimes/sites/all/modules/imagecache/imagecache.module on line 483.

I have checked and double-checked permissions throughout both installations and they are identical.

Is there something this scenario suggests that might tell you what could be going on, or how I could trouble-shoot it? I did see another thread (http://drupal.org/node/227325) suggesting a solution of deleting and then recreating imagecache presents. I have not tried that yet, as I would prefer to begin with a neater solution as I would like to associate these two sites to share the database over time. Any suggestions?

Thanks.

femrich’s picture

Priority: Normal » Critical

Changing this to critical as it disables imagecache.

robomalo’s picture

I am having the same issue in the latest 5.x version. It started after I upgraded to imagecache 2.

psynaptic’s picture

I've just been looking into this and it seems like it was a group/owner permissions thing. I changed all the files within my files directory to be owned by, and within the group, apache.

$ cd files
$ chgrp -R apache *
$ chown -R apache *
dman’s picture

Status: Active » Closed (duplicate)

In an attempt to clean up the issue queue a little, Please have a look at Troubleshooting imagecache MIGRATION and I'll close this issue for now. Hopefully it's OK.

elianm’s picture

Great! This was really helpful. Thanks psynaptic.

carloseduardo’s picture

Issue tags: +warning, +mkdir(), +[function.mkdir]

Hello.

I have problems with OpenScholar.

warning: mkdir() [function.mkdir]: Permission denied in /Applications/MAMP/htdocs/SCHOLAR/sites/all/modules/contrib/imagecache/imagecache.module on line 555.

How can i fix it?

carloseduardo’s picture

Hello friends.

I wanto to use OpenScholar, but i can't, i have a WARNING.
Somebody can help me?

warning: mkdir() [function.mkdir]: Permission denied in /Applications/MAMP/htdocs/SCHOLAR/sites/all/modules/contrib/imagecache/imagecache.module on line 555.

andyhickner’s picture

I struggled with this for hours, double-checking permissions and filesystem paths. Finally fixed it by deleting & re-installing ImageCache. Worked like a charm.

apaderno’s picture

Issue summary: View changes
Issue tags: -warning, -mkdir(), -[function.mkdir]