Images just disappeared

Author Message

Matt Brady

Monday 17 July 2006 12:39:22 am

All the embedded images have just disappeared from my site. I can view them in the admin area but not the public area. I have changed nothing on the site for the last two weeks and everything was fine until I logged into the admin area and did a basic text amendment on the pagelayout template. I'm using 3.8. I have rechecked the template code. I have tried clearing the caches, both automatically and manually. I have uploaded the images again. I have checked permissions both through the admin area and on the server.... and still nothing.
Any ideas anyone?

It's not easy being easy.

Egil Fujikawa Nes

Monday 17 July 2006 9:47:50 am

Hi Matt

Did you check that nobody been changing the your Apache rewrite config on the public vhost:

RewriteRule !\.(gif|css|jpg|png|js|asf|avi|wmv|swf|xsl|jar)$ /index.php

Just a suggestion, seems like you been checking most other things.

Best regards
Egil Fujikawa Nes

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

Matt Brady

Monday 17 July 2006 5:48:27 pm

Thanks... yes, the hosting company had done some upgrades and that seemed to be the problem.

It's not easy being easy.

Egil Fujikawa Nes

Monday 17 July 2006 11:09:07 pm

Good you could find the problem Matt

For other that maybe have the same problem (I know somebody will) and found this post, here is how you can check if rewrite rules are the problem that your pictures isn't shown.

Open you web page in a browser and view the HTML source code. Look for a picture in the source code. It should look something like this:

<img src="/var/site/storage/images/media/images/summer/332-1-eng-GB/summer.jpg" width="580" height="150"  style="border: 0px;" alt="Summer" title="Summer" />

If you HTML shows something like this:

<img src="" width="580" height="150"  style="border: 0px;" alt="" title="" />

or simply nothing at all, then you have a permission or eZ publish related problem.
If you have correct HTML code you should try to access the full URL from you browser, like this:
http://your_domain_name/var/site/storage/images/media/images/summer/332-1-eng-GB/summer.jpg

If this results in a <i>kernel (20) / Error</i> from eZ publish you probably have a problem with your rewrite configuration in Apache.

Best regards
Egil Fujikawa Nes

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.