Barama Posted October 28, 2013 Share Posted October 28, 2013 When I upload an product image in the admin section Prestashop gives me a success message. However the image does not show in the shop then. And it also does not show in the admin section after the upload. In my case it is supposed to be created in "/presta/img/p/1/4/9/8/1498.jpg". But there is no directory with the name 8. I do not have my document root in / but in /presta. I redirect to this folder. I did so by adding the following rules to my /.htaccess file: RewriteCond %{REQUEST_URI} !folder/ RewriteCond %{HTTP_HOST} ^mysite.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule (.*) /presta/$1 [L] Maybe it has something to do with that? What can I do to solve my problem? Link to comment Share on other sites More sharing options...
Mukesh Ravi Posted October 28, 2013 Share Posted October 28, 2013 Hello, Please check permission over img folder in root directory. Link to comment Share on other sites More sharing options...
Barama Posted October 28, 2013 Author Share Posted October 28, 2013 Thanks for your fast reply. The permission is set to 777 and also all subdirectories. Link to comment Share on other sites More sharing options...
Mukesh Ravi Posted October 28, 2013 Share Posted October 28, 2013 Are you able to upload images now? Link to comment Share on other sites More sharing options...
Barama Posted October 28, 2013 Author Share Posted October 28, 2013 (edited) No, I am not. The permission was set to 777 before I started this thread. Edited October 28, 2013 by Barama (see edit history) Link to comment Share on other sites More sharing options...
Barama Posted November 3, 2013 Author Share Posted November 3, 2013 Does nobody have an idea? I need to get this fixed. Also if I try to upload a category logo it gives me the error: "An error occurred while uploading the image." Link to comment Share on other sites More sharing options...
Barama Posted November 3, 2013 Author Share Posted November 3, 2013 I found what was wrong. 1 or 2 weeks ago I was experimenting with setting up a CDN. During that time I changed the constant for the image directory. So now I changed it back. It all works now. It is kind of embarassing, but that is how it happened. Link to comment Share on other sites More sharing options...
vekia Posted November 3, 2013 Share Posted November 3, 2013 hello thank you for sharing solution. thread marked as solved. with regards, Milos Link to comment Share on other sites More sharing options...
MJ2730 Posted July 24, 2014 Share Posted July 24, 2014 I know this thread was from a while ago, but I am experiencing the exact same symptoms and cannot figure it out! The image 'uploads successfully' but the thumbnail is of a broken image. When I go into the files, I find that there is no folder/directory that the image is supposed to be called from. I would love any help! Thanks, Michelle Link to comment Share on other sites More sharing options...
Recommended Posts