Images not showing after install

Permalink
Having recently re-installed C5 (and done so multiple times but with no more positive results) I am only getting the Greek Yogurt theme showing fully with all images and layout. All the other pre-installed themes as well as a purchased one are now displaying without any images / slider images. I attach a screen shot of the chocolate theme. I am at my wits' end.

Recursive permissions applied to /config /files & /packages

It's like paths are not being properly read.

I used to find it a breeze to install successfully, now it's giving me the same type of error all the time.

Help me! :-)

1 Attachment

 
goldhat replied on at Permalink Reply
Check what is written in the .htaccess file and also in the /config/site.php. You have the site located at /cms. So that either probably should be listed in the .htaccess and/or in the site.php. I believe when I put C5 in a subfolder I only have that subfolder listed in the .htaccess but it might depend on your server. Base path in the site.php is another option.

The other thing to do is browse the source on that page, search for src=" and see what paths are being created.

If you can't sort it out checking through those 3 things then post your htaccess, some parts of your site.php (not the passwords!) and an example of the paths being created for images.

Here is an example of an .htaccess file from a C5 site I have in a subfolder like yours though it's on my local but it would work the same on most servers. Notice the RewriteBase is /venture1/. So yours should read RewriteBase /cms/.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /venture1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
Robert12345 replied on at Permalink Reply
Gold

Many thanks for that ... I understand the logic and it fits in with my gut feelings on what is wrong. I had examined the source code for clues and as I suspected that paths were wrong due to components simply not showing up on screen. For example, on the (working) Greek Yogurt, I could find a .jpg file ok. I searched similarly when I changed to the other themes and there was no such reference. So components were simply not being referenced.

[Apologies for having 2 threads on this issue ... C5 site was not responding well when I tried to post and I ended up posting twice]

Your time and thoughts are appreciated ... to be continued.
Robert12345 replied on at Permalink Reply
Gold [or anyone else :-)]

There was no .htaccess in either the root or the /cms folder so I have tried adding to both of them. Which should I do?

I've added:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

and chmoded to 604. No change in what I see on site. Should I re-install C5? (which isn't a problem ... it's becoming second nature now! :-) )
Robert12345 replied on at Permalink Reply
Ok, here is the expurgated site.php coding:

<?php 
define('DB_SERVER', 'UK1MYSQL1817.eechost.net');
define('DB_USERNAME', '00000');
define('DB_PASSWORD', '00000');
define('DB_DATABASE', '00000');
define('PASSWORD_SALT', '00000');
[/site]
In the heading of the current theme selected (which has no images/sliders or indeed blocks of text being displayed lower down the page even though they seem to be referenced in the coding) we have:
[code]
<script type="text/javascript">
var CCM_DISPATCHER_FILENAME = '/cms/index.php';
var CCM_CID = 1;
var CCM_EDIT_MODE = false;
var CCM_ARRANGE_MODE = false;
var CCM_IMAGE_PATH = "/cms/concrete/images";


Any thoughts?

Many thanks in advance