Learn how to fix Destination file or folder not writeable

Learn how to fix Destination file or folder not writeable

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:

  1. Go to your magento installation directory and open /lib/varien/file/uploader.php
  2. Search for function ‘public function save($destinationFolder, $newFileName = null)’ or ‘if (!is_writable($destinationFolder))’
  3. 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);’
  4. Go back to your magento admin panel and try to upload the images again
  5. You will see the same error but this time the destination folder path will be shown too
  6. Copy the path, go to your FTP client or SSH and set the file permissions to 777 (it has to be 777 not 775)
  7. Once done, upload the file back to the server
  8. Logout from the Magento admin and login again
  9. Go to the product and this time the images will be uploaded