al nahian Posted July 31, 2014 Share Posted July 31, 2014 Hello, I am using "prestashop_1.6.0.8" (localhost). I found that the "About us" page is not showing "cms-img.jpg" image. I can add the image in my back office (preferences -> CMS -> About us). The source of the page includes "<img title="cms-img" src="../img/cms/cms-img.jpg" alt="cms-img" width="370" height="192" />". In the "Edit: About us" page, the image is shown prefectly. But whenever I visit About us page, I find that the image below "OUR TEAM" header is not available. I found several discussions about this problem but none of them worked for me. The .htaccess file img/cms folder contains the following code: <IfModule mod_php5.c> php_flag engine off</IfModule>deny from all<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png)$"> order deny,allow allow from all</Files> Please help me regarding this issue. Link to comment Share on other sites More sharing options...
vekia Posted July 31, 2014 Share Posted July 31, 2014 you've got problem with image only in back office or both in front and back end? Link to comment Share on other sites More sharing options...
al nahian Posted July 31, 2014 Author Share Posted July 31, 2014 Hi vekia, the back office is showing the image. But the front end is not. I attached the screenshot of back office and frond end with this reply. No 1 is back office and No 2 is front end. Please check the image. Thanks. Link to comment Share on other sites More sharing options...
al nahian Posted July 31, 2014 Author Share Posted July 31, 2014 Update: I just installed another shop from scratch (prestashop version 1.6.0.8). But I am facing the same problem with this fresh installed shop. I can see the image in back office but the front end is not showing the image. How do I solve this problem ? Link to comment Share on other sites More sharing options...
al nahian Posted July 31, 2014 Author Share Posted July 31, 2014 Okay, I think I found the solution. In the back office, the About us page contains the image "cms-img". But the image is not shown at front end. The image link provided by default was "../img/cms/cms-img.jpg". The link should be edited like "localhost/your_project_name/img/cms/cms-img.jpg". Now the image is shown properly. Link to comment Share on other sites More sharing options...
vekia Posted August 1, 2014 Share Posted August 1, 2014 but if you go online, it will not work, because it will point to localhost host Link to comment Share on other sites More sharing options...
al nahian Posted August 2, 2014 Author Share Posted August 2, 2014 (edited) Well, this is how I solved my problem. (for localhost) I deleted the default image from my back office and inserted the same image again into that section. Then I found that the image is shown in the front end. I found that the default image link was changed, that's what I mentioned in my previous reply. So how can I solve this problem when I go online? Do I need to deploy the shop first and then modify the shop? I want to modify the shop first using localhost and then deploy online. I also tried the latest 1.6.0.9 version and found the same problem. Is there any solution ? Edited August 2, 2014 by al nahian (see edit history) Link to comment Share on other sites More sharing options...
afshop Posted October 15, 2014 Share Posted October 15, 2014 Well, this is how I solved my problem. (for localhost) I deleted the default image from my back office and inserted the same image again into that section. Then I found that the image is shown in the front end. I found that the default image link was changed, that's what I mentioned in my previous reply. So how can I solve this problem when I go online? Do I need to deploy the shop first and then modify the shop? I want to modify the shop first using localhost and then deploy online. I also tried the latest 1.6.0.9 version and found the same problem. Is there any solution ? Hi, I have me too a similar problem, all the images in the img/cms not showen. I see if i check with file manager but I don't see them both backoffice and front office. I think ther eis problem in the img/cms folder but I don't try it. How did you solve it? thanks angela Link to comment Share on other sites More sharing options...
DrunkBug Posted October 15, 2014 Share Posted October 15, 2014 For those who can't see images in FO, in your .htaccess file in root folder, before this line: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Add following lines: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^.*/img/cms/(.*)$ %{ENV:REWRITEBASE}img/cms/$1 [L] </IfModule> IMPORTANT NOTE: this works if website is in root directory, if it is in a subfolder, change the line RewriteRule . - [E=REWRITEBASE:/] to RewriteRule . - [E=REWRITEBASE:/your_subfolder/] Link to comment Share on other sites More sharing options...
afshop Posted October 15, 2014 Share Posted October 15, 2014 For those who can't see images in FO, in your .htaccess file in root folder, before this line: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Add following lines: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^.*/img/cms/(.*)$ %{ENV:REWRITEBASE}img/cms/$1 [L] </IfModule> IMPORTANT NOTE: this works if website is in root directory, if it is in a subfolder, change the line RewriteRule . - [E=REWRITEBASE:/] to RewriteRule . - [E=REWRITEBASE:/your_subfolder/] Thanks for your answer but not works. Link to comment Share on other sites More sharing options...
DrunkBug Posted October 15, 2014 Share Posted October 15, 2014 Thanks for your answer but not works. Give me a link to your website and post what exactly did you put in your .htaccess file 1 Link to comment Share on other sites More sharing options...
afshop Posted October 15, 2014 Share Posted October 15, 2014 Give me a link to your website and post what exactly did you put in your .htaccess file Hi, I solved in this moment, there was a file .htaccess in the dir img/cms with this row: php_flag engine off I delete the file htaccess in this dir and now i see also these images. Thanks for your help. Link to comment Share on other sites More sharing options...
Recommended Posts