Jump to content

Recommended Posts

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

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.

post-823835-0-54489700-1406798028_thumb.png

Link to comment
Share on other sites

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

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

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 by al nahian (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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

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

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

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

×
×
  • Create New...