I made a copy of my site on my local pc using wamp. Everything looks fine except when I go to Administer, I see this error.

One or more problems were detected with your Drupal installation. Check the status report for more information.

In the status report this is what is show:

ImageCache Temp Directory /tmp is not writeable by the webserver.

I went to

Administer > Site Configuration > File System

and as soon as I do that a folder called temp get created in C:\ with a .htaccess file in it. (without me change anything. I just hit save)

After that when I visit the homepage of my site again it doesn't look formatted properly, also the logo doesn't appear and everything just looks wrong.

When I go and delete the tmp folder in C:\ and then visit the homepage again everything looks fine.

I've tried changing the tmp folder to various options (tmp , wamp/tmp , wamp/www/tmp , wamp/www/mysitesfolder/tmp) but no of those helped resolve the issue.

Could someone please tell me how to resolve this.

Comments

MidGe48’s picture

try setting up the temp file in admin>>site configuration>> file system to /tmp (notice the slash in front)

www.ZuNOB.com

grawat’s picture

by default it is set to /tmp and when I go to admin>>site configuration>> file system it creates a folder tmp in C:\ with a .htaccess file in that folder. and this just messes up the entire site as I mentioned above.

grawat’s picture

I think it might be because of RewriteBase. I have changed this in .htaccess to RewriteBase /sitefolder
and in settings.php I have changed $base_url = 'http://localhost/sitefolder';

the path /tmp should resolve relative to the Drupal installation directory but that isn't happening. It's resolving relative to C:

I need to change RewriteBase and enable mod rewrite otherwise when I got to a page like "http://localhost/mysite/category" it doesn't show the corresponding page.

I have changed the temporary directory in Administer > Site Configuration > File System

to /wamp/www/mysite/tmp

and this takes care of the error: (ImageCache Temp Directory /tmp is not writeable by the webserver.)

but then my theme isn't displayed correctly (changing the temporary directory back to /tmp and deleting the tmp folder in C:\ corrects the theme issue but then the error with imagecache appears again.)

drwits’s picture

finally upgrading my site from 5 to 6...

anybody found a solution to this yet?

thx

jared12’s picture

Here's what worked for me:

Open up a command prompt (Run>cmd.exe).
Navigate to your WAMP folder (cd \wamp).
Use Windows attrib command to change the write permissions of the \tmp folder:
C:\wamp> attrib -r tmp /s /d

Clear Drupal cache for good luck.
Visit admin/reports/status and see if your error message is gone.