Sometimes whilst adding new product images you may exprience this error and some times it is not clear as to why this error has occurred. To fix this issue, do the following steps in order and it will resolve it:
- Go to your magento installation directory and open /lib/varien/file/uploader.php
- Search for function ‘public function save($destinationFolder, $newFileName = null)’ or ‘if (!is_writable($destinationFolder))’
- Copy $destinationFolder variable and append it to ‘throw new Exception(‘Destination folder is not writable or does not exists.’)’ so it becomes ‘throw new Exception(‘Destination folder is not writable or does not exists.’.$destinationFolder);’
- Go back to your magento admin panel and try to upload the images again
- You will see the same error but this time the destination folder path will be shown too
- Copy the path, go to your FTP client or SSH and set the file permissions to 777 (it has to be 777 not 775)
- Once done, upload the file back to the server
- Logout from the Magento admin and login again
- Go to the product and this time the images will be uploaded