I migrated my site from a personal development server running WAMP (windows/apache) to my hosted server running linux. Everything works fine.

But I have now installed imagecache (it was NOT installed before migration), and when I want to create a preset, it gives me the following error:

"Unable to create file c:/wamp/tmp/avatar_timagecache_sample.png because No such file or directory in /home/public_html/sites/all/modules/imagecache/imagecache.module on line 425."

So for some reason it is trying to use the old file structure for something. But why? It was never installed? Is there something else I need to change?

Thanks!

Comments

aaron.r.carlton’s picture

I am experiencing this also. Error message:

warning: touch() [function.touch]: Unable to create file /Applications/MAMP/tmp/php/132x98imagecache_sample.png because No such file or directory in /home1/aaroncar/public_html/pickapart/sites/all/modules/contrib/imagecache/imagecache.module on line 425.

Additionally, my status report page has the following error:

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

Migrated from a MAMP environment to a shared server. Using imagecache 6.x-2.0-beta10 and drupal 6.17.

aaron.r.carlton’s picture

Actually, I may have just found the issue. I changed the Temporary Directory to /tmp in Site Configuration -> File System settings page. It seems that Drupal detects MAMPs specific php tmp directory and stores it in a database config between environments.

Hopefully this helps someone else? I'll leave it to the maintainers to close the issue.

mmugo’s picture

Component: Code » imagecache_image module

Thanks a lot, had the same issue because my Temp directory had been set to 'C:\php\uploadtemp'

Regards,
Martin

amirtaiar’s picture

Thank's a lot!
For it was just entering the file system settings page and save again...

PenguinPie’s picture

Thank u much!

I am learning’s picture

Thanks aaron.r.carlton, it helped me too.
Regards

fizk’s picture

Status: Active » Closed (fixed)

Please reopen if this is still an issue with ImageCache 6.x-2.0-rc1.