By Anonymous (not verified) on
Hi
I have problem with this [An image thumbnail was not able to be created.] I have moved from hosting to a server when I create article and upload an image this message comes up, And this message comes in the frontpage [warning: mkdir() [function.mkdir]: File exists in /home/***/public_html/***/sites/all/modules/imagecache/imagecache.module on line 525.]
Anyhelp
Comments
Hi ! Change permissions on
Hi ! Change permissions on the folders /sites/default/files/imagefield_thumbs and /sites/default/files/imagefield_default_images to allow drupal to write in those .. i just had this issue whilst upgrading to drupal 6x11 with the module imagefields , and that was due to a change in permessions on the folders.
Tnx, it works
Tnx, it works
Permission changes didnt help
Hi, I just changed the permission to 777, but still getting the same error saying "An image thumbnail was not able to be created."
whatelse might cause this,
thanks
Cem
Recheck all your directories
Recheck all your directories under /sites/default/files/ - on shared hosting, you may need to check the owner isn't apache (as you'll not be able to change the permissions) - also check that the module has write access to any /tmp or /temp directories it might need (and that they exist!) - often Drupal will create the temp dirs, but they will be owned by apache and it can't set the permissions.
--------------------------
OxAlto Design
http://www.oxalto.co.uk
--------------------------
Check your image. It might
Check your image. It might not be the correct type, wrong extension or the file has some problem. I have a file with JPG extension which used to work before upgrade to Drupal 6. After upgraded, I just found that there is a problem. So, I opened that image, save it to same extension (JPG). Then, it works.
GD (or other graphics) Library not installed
I was going around and around, all file/folder permissions were correctly set, and then I realized the server didn't have a graphics library installed. Thus php was unable to manipulate the image (create the thumb). To check this go to Reports > Status Report (in drupal 6). If it is not installed there will be a row which reads: "The GD library for PHP is missing or outdated. Please check the PHP image documentation for information on how to correct this." There will be link to further reading. The fix for this is at the server level.
yes, no GD installed was the
yes, no GD installed was the problem for me too.
thanks!
something strange in the original file
I was running into the same problem, and my permissions were fine.
I have just found that if I loaded the image into MSFT Paint (yes, I know... bombast > /dev/null) touched a single pixel and resaved it, that the newly saved image was reduced in size but also didn't cause the error any longer.
Ideas on what might be going on here?
Christian Nally - B.C., Canada - http://sticksallison.com
files/imagefield_thumbs/XXX also to 777
In my case I had to even remove and recreate /with 777/ the subfolder under files/imagefield_thumbs called "film".
I specified "film" upon creating the cck image field as a location under /files dir . First I didnt notice folder was created automatically, until I hit refresh in FTP client.
I never had these problems on ''normal'' hosting. It normally works out of the box.
Running on my local machine but not runnig the server
"An image thumbnail was not able to be created. " message come on my live server.but this issue is not coming my local machine.Also I had gave permission of files folder(0777).
Problem resolved
I had this problem.
I had correct right on folders sites/default/files/*
The gd llibrary was not enable on my apache server, local.
Install gd :
sudo apt-get install php5-gd
Reload apache :
sudo /etc/init.d/apache2 force-reload
In my phpinfo() => GD Support enabled
An image thumbnail was not able to be created.
I have the same proublem, i give the 777 permission to whole directory, but gives same problem,
How to enable gd library on my apache server, in windows please explain...
Memory
Moving from local to remote for me it was a php memory thing - check your php.ini file or if you can't get at that on your remote server you may be able to fudge it by creating an .htaccess (plain txt) file at the root level and copying the following into it: php_value memory_limit "128M"
Make sure the imagecache
Make sure the imagecache preset actually exists. On a test site, I accidentally lost or deleted one of mine during development.