Hi there;
I am relatively new to EE but have several years experience with CI. I created a new installation on our server; downloaded code and DB to localhost, changed config.php and database.php to match. Everything works fine… except:
When I try to upload a file using the File Manager, I get the error message:
Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.On closer examination though, I see that the file that I uploaded is not in the folder that it’s supposed to be (actually I cannot find it anywhere). So it seems like the uploader failed but returned ‘success.’
Here are the $prefs sent to create_thumb on line 422 of Filemanager.php:
array ( 'upload_location_id' => '3', 'site_id' => '1', 'file_name' => 'Selection_007.png', 'orig_name' => 'Selection_007.png', 'file_data_orig_name' => 'Selection_007.png', 'is_image' => true, 'mime_type' => 'image/png', 'rel_path' => '/var/www/eddies.com/html/img/categories/Selection_007.png', 'file_thumb' => 'eddies.com/html/img/categories/_thumbs/Selection_007.png', 'thumb_class' => 'image', 'modified_by_member_id' => 2, 'uploaded_by_member_id' => 2, 'file_size' => 32327.68, 'file_height' => 345, 'file_width' => 305, 'file_hw_original' => '345 305', 'max_width' => 0, 'max_height' => 0, 'height' => 345, 'width' => 305, 'id' => '3', 'name' => 'Category Images', 'server_path' => '/var/www/eddies.com/html/img/categories/', 'url' => 'eddies.com/html/img/categories/', 'allowed_types' => 'img', 'max_size' => '', 'properties' => '', 'pre_format' => '', 'post_format' => '', 'file_properties' => '', 'file_pre_format' => '', 'file_post_format' => '', 'cat_group' => '', 'batch_location' => NULL, 'dimensions' => array ( ), )I have confirmed that /var/www/eddies.com/html/img/ and all of its subdirectories, including _thumbs, have 0x777 permissions and are owned by www-data (the user that apache is running as).
Since all of this runs fine on the server but not on localhost, I figure that I must have missed a configuration path somewhere… just not sure where.
Any/all help is appreciated.
=dave=
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.