Joe Mattel Posted May 17, 2013 Share Posted May 17, 2013 Hello, I am using PrestaShop™ 1.5.4.1 with default theme. After turn on and successfully activating friendly Urls, my Front Office pages are not showing product images anymore except in Slider. Any reason? solution? Thanks a lot, Joe Link to comment Share on other sites More sharing options...
rturner Posted May 18, 2013 Share Posted May 18, 2013 Now that you've activated friendly URLs, when you add a new product or new image, does it show? And just a guess on my part, did you try going to Preferences / Images and regenerating thumbnails? Link to comment Share on other sites More sharing options...
yaniv14 Posted May 18, 2013 Share Posted May 18, 2013 Are you capable of reaching the product page? You are probably missing rewrites rules/cond and/or mod_rewrite not on. Do you have Apache or Nginx run on your server? Link to comment Share on other sites More sharing options...
vekia Posted May 18, 2013 Share Posted May 18, 2013 Hello @Joe Mattel Pages work well? Like categories, product pages? (no 404 error?) i just want to say that we still waiting for your response in this thread. Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 hello, Thanks for all your suuport. To answers your questions: 1- I can see all pages - product pages, category pages etc...but no images 2- I contacted my hosting company and the necessary was already setup. Using apache. 3- I regenerated the images sevveral times but no image on the FO. But they show in the BO 4- Adding a new image was tried without success...yes on BO but no on FO I am actually a bit surpise that this issue does not have a solution. It must have happened to people out there. I have ready many forum and other sites with people that have similar issues but no straight forward answer. I am not going to take the risk to alter with files and programming. Why is Prestashop support not pressing to sort out these kind of issues asap? I am disapppointed. Not good. Happy to hear anyone that could help. Thanks in advance. Link to comment Share on other sites More sharing options...
yaniv14 Posted May 18, 2013 Share Posted May 18, 2013 If you turn off friendly url, all image shows in FO? Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 (edited) Hello, Yes it does. Image on FO are re-displaying after turning URLs friendly off. Edited May 18, 2013 by Joe Mattel (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted May 18, 2013 Share Posted May 18, 2013 Is your site live? Can you post url? Can you also post the content of htaccess Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 Yes...the site is Prana Deals From which specific directory should i extra it. Thanks for the support. Link to comment Share on other sites More sharing options...
yaniv14 Posted May 18, 2013 Share Posted May 18, 2013 From root Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 Below is the file you requested. Thanks again for the support. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^pranadeals.co.za$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Link to comment Share on other sites More sharing options...
yaniv14 Posted May 18, 2013 Share Posted May 18, 2013 try to give 'img' folder 777 permission recursive. Link to comment Share on other sites More sharing options...
Bill Dalton Posted May 18, 2013 Share Posted May 18, 2013 Have you deleted all your themes cache files? Also have you turned on force compile and turned off cache? See, Advanced Parameters > Performance Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 1- Did that 2- Resave friendly urls setup 3- generated images 4- created a test new product with image ===> still images not displaying on FO Link to comment Share on other sites More sharing options...
yaniv14 Posted May 18, 2013 Share Posted May 18, 2013 I looked at the header respond and you host is using LiteSpeed web server and not Apache. I am not familiar with LiteSpeed, but I think this is what causing the problem. check this article and see if it will help http://www.litespeedtech.com/support/forum/showthread.php?t=6908 Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 Bill, 1- Compilation is setup to force compilation (got that from other forum) 2- turned cache off 3- deleted all files under cache except index files ====> still images not displaying on FO Thanks for the support Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 OK! i see that. Should the problem be redirected to my hosting comp. Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 Many Many thanks yaniv14. I really really appreciate your kind support, follow up and helping me out. I have now raised the issue with my hosting company and waiting for the reply. Bill! thanks also for jumping in and helping. Will post the outcome here for other to read. 1 Link to comment Share on other sites More sharing options...
yaniv14 Posted May 18, 2013 Share Posted May 18, 2013 First try solve it yourself, google more about prestashop and litespeed rewrites. And see what you are missing. If its some addons to htaccess than you can do yourself, and if its some extention/module/package need to be installed on your server, you can ask your host to do 1 Link to comment Share on other sites More sharing options...
Joe Mattel Posted May 18, 2013 Author Share Posted May 18, 2013 Hello, After few tickets raised with my hosting company (by the way great support), checking the servers, checking my website BO etc...it does not seem to be an issue with their servers. They have asked me to ask Prestashop support to check the issue. Anyone knows how to go about it? Link to comment Share on other sites More sharing options...
arancia Posted May 20, 2013 Share Posted May 20, 2013 I have exactly the same issue... any other ideas? It works with no friendly URL settings.... but the moment I turn it on, all images are gone. Link to comment Share on other sites More sharing options...
yaniv14 Posted May 20, 2013 Share Posted May 20, 2013 Are you using the same web server (litespeed)? Link to comment Share on other sites More sharing options...
arancia Posted May 20, 2013 Share Posted May 20, 2013 hello, the problem in my case seems to be with the product controller. I have two shops with the same hosting provider, installed on the same host- with one shop everything works fine. I did not import the product controller file since I already had one. With the other one I loaded everything and then I got the issue. Link to comment Share on other sites More sharing options...
arancia Posted May 20, 2013 Share Posted May 20, 2013 when I try to open the link of the photo (using firebug) I get a No Category ID (or something similar). Link to comment Share on other sites More sharing options...
yaniv14 Posted May 20, 2013 Share Posted May 20, 2013 can you post your site url? do you use vps for your sites? Link to comment Share on other sites More sharing options...
arancia Posted May 21, 2013 Share Posted May 21, 2013 the one working is my acceptance environment: http://www.mamaguapa.com/tiendapruevas the one not working (and I took it off because it is production) http://www.mamaguapa.com/tiendamama Link to comment Share on other sites More sharing options...
yaniv14 Posted May 21, 2013 Share Posted May 21, 2013 on the shop that is not working, can you try give img folder 777 permission just to check if its not permission issue. both store have the same htaccess rules (of course with different domain)? Link to comment Share on other sites More sharing options...
arancia Posted May 21, 2013 Share Posted May 21, 2013 I have exactly the same permissions 755 and the same configuration. Link to comment Share on other sites More sharing options...
yaniv14 Posted May 21, 2013 Share Posted May 21, 2013 Did you manually checked the content of htaccess on each store (to make sure all rewrites written correctly? Check your apache configuration to see that nothing override from there. Link to comment Share on other sites More sharing options...
arancia Posted May 21, 2013 Share Posted May 21, 2013 hello, I thought I had managed regenerating the images but nope. Still the same issue Link to comment Share on other sites More sharing options...
arancia Posted May 21, 2013 Share Posted May 21, 2013 while my FO is expecting an image like that: http://www.mamaguapa.com/tiendamama/969-home/camiseta-de-lactancia-alba.jpg in my img directory all images are with the category ID. So the one working has this sctructure http://www.mamaguapa.com/tiendapruevas/51-1131-large/camiseta-premama-y-lactancia-naranja.jpg Link to comment Share on other sites More sharing options...
yaniv14 Posted May 21, 2013 Share Posted May 21, 2013 compare your schema of url's in both sites (BO -> seo & url) Link to comment Share on other sites More sharing options...
djaenicke Posted June 2, 2013 Share Posted June 2, 2013 I have this problem, I have submitted a bug form thing and no response Link to comment Share on other sites More sharing options...
yaniv14 Posted June 2, 2013 Share Posted June 2, 2013 Hi djaenicke, Can you give more details, what kind of webserver you using, if apache please show htaccess content, if you using nginx show nginx server configuration. Are you able to enter product page? Is it only images that missing? Link to comment Share on other sites More sharing options...
djaenicke Posted June 2, 2013 Share Posted June 2, 2013 Hi Yaniv, It is an Apache Webserver (.htaccess at the bottom). I can go around my store absolutely fine but just all product images are missing. I have regenerated .htaccess deleted it re-done everything but still same problem. # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> <IfModule mod_rewrite.c> # Disable Multiviews Options -Multiviews RewriteEngine on RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule . - [E=REWRITEBASE:/store/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript </IfModule> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /store/index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again thank you for your help. Link to comment Share on other sites More sharing options...
mdgt Posted June 3, 2013 Share Posted June 3, 2013 Is there a solution here? I have the same issue, which has not been resolved! Link to comment Share on other sites More sharing options...
vekia Posted June 3, 2013 Share Posted June 3, 2013 Is there a solution here? I have the same issue, which has not been resolved! have you tried valubale yaniv14 suggestions? Link to comment Share on other sites More sharing options...
yaniv14 Posted June 4, 2013 Share Posted June 4, 2013 Hi Djaenicke, 1st try to manually delete 'htaccess' from root folder (backup first), and than regenerate from back office (turn on/off friendly url). If you already tried that, you can try to add manual rewrite rules for images. it should be place inside '<IfModule mod_rewrite.c>' and under RewriteEngine on RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule . - [E=REWRITEBASE:/store/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] Add this: # Images RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^joovuu.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] Before checking it, make sure prestashop will not override your changes, if so try to add that code above or below # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Let me know what happens, also if its still not working I would like to inspect your site for few minutes with friendly url turned on. Link to comment Share on other sites More sharing options...
Dave L Posted June 4, 2013 Share Posted June 4, 2013 Guys, I'm following this thread closely basically because I have the same issue, and have tried all the suggestions in the thread. But I am double busy right now to spend much time on it. I recently upgraded to 1.5.4.1 but still have the 1.4.4.0 install going in a sub-folder. Friendly URL's will not work in the 1.5.4.1 install but work perfectly well on the 1.4.4.0 install. http://sudyod.net and http://sudyod.net/old So I guess this must be a 1.5.4.1 specific issue. I am on VPS apache and Plesk V10 (i'll get the full spec later as I'm at work right now). Thanks. Link to comment Share on other sites More sharing options...
Crympton Posted June 10, 2013 Share Posted June 10, 2013 (edited) Hello everyone, I have the same problem. It's a shame because Prestashop offers a lot but these kinds of issue really concern me. About 6 weeks ago I installed 1.5.3.1 and struggled for a long time with friendly url issues then, including a long email communication with my hosting provider. Update - deleting the .htaccess file and regenerating it has worked for me. Thanks. Edited June 11, 2013 by Crympton (see edit history) Link to comment Share on other sites More sharing options...
RKCollection.pk Posted April 23, 2014 Share Posted April 23, 2014 Hey Guys, try this way step by step, I hope this will work for you.I have just done this for one of my client ishoppingtime.com 1. Copy your .htaccess file ( from the root to your desktop or you can rename the .htaccess file on your server) 2. Go to your prestashop admin panel, prefrence SEO and URL, disable seo friendly url. 3. Admin panel > Seo on and then go to Schema of URLs Clik save ( do not change any htaccess code ) now after save this will generate a new .htaccess on your server.4. Go to Preferences > Images now click reGenerate thumbnails Now go back to your website refresh the page. You will also find a new .htaccess on your server and your products images will be working as well This did work for me for this click:) If you need any help inbox via this forum or skype rktalreja ( skype) Raj kumar Zero 360 Web Technologies 1 Link to comment Share on other sites More sharing options...
RensVer Posted October 15, 2014 Share Posted October 15, 2014 Hi there! my name is Rens and I am very happy with such an active forum. Hope that this topic still is active. I'm new to prestashop, learning as I go along, I'm now looking at Seo friendly, and guess what: all my images (except for the frontpage) have gone also. I've tried all the tips mentioned in this and other topics, but to no result. The site is here: www.videoveilig.nl/to. Hope anybody can help.. Link to comment Share on other sites More sharing options...
yaniv14 Posted October 15, 2014 Share Posted October 15, 2014 Check the content of your .htaccess file and compare to what's on this post. It seems that you are missing rewrites rules for images or your host is not allowing overrides for web server. Link to comment Share on other sites More sharing options...
RensVer Posted October 30, 2014 Share Posted October 30, 2014 Well, in the end I never got it to work. Tried every advise but to no luck. I finally found that it only works allright by moving the complete shop to the root of my hostingserver, so videoveilig.nl instead of videoveilig.nl/to Link to comment Share on other sites More sharing options...
Recommended Posts