Images not linking in any idea?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Metal Beryl
Forum Members
Forum Members
Posts: 69
Joined: Wed Apr 18, 2007 9:57 am

Images not linking in any idea?

Post by Metal Beryl »

For some reason no images are showing on my website and also within the admin area!

Any idea why, all images are still in the image folder on the server.

www.rapidreality.co.uk/graphic

Jane
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Images not linking in any idea?

Post by RonnyK »

Jane,

the umask in "Global settings" should be set to "002" to make images/thumnails visible to the world. You might want to try changing the rights on the files within the folder (using FTP) to change them for the files already present.

Ronny
Metal Beryl
Forum Members
Forum Members
Posts: 69
Joined: Wed Apr 18, 2007 9:57 am

Re: Images not linking in any idea?

Post by Metal Beryl »

Those tips don't seem to work I still cant see the images  ???
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Images not linking in any idea?

Post by RonnyK »

Did you change the rights (to 775) for:

uploads/images/DR_Image_g.jpg

That's the file being pulled.

Ronny
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Images not linking in any idea?

Post by Dr.CSS »

Actually just the folders need to be 755, uploads and images...
Metal Beryl
Forum Members
Forum Members
Posts: 69
Joined: Wed Apr 18, 2007 9:57 am

Re: Images not linking in any idea?

Post by Metal Beryl »

Unfortunately that isnt working, I have set the permissions as suggested.

Could it have something to do with the .htaccess I have on the cgi server. It is currently directing the url to another cms folder on the cgi server. At the moment I am using the url as a way to allow me to work on two sites sitting in individual folders before directing their individual urls to the folders. Is this making sense?!

The .htaccess document is...
RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.rapidreality.co.uk$ [nc]

RewriteCond %{REQUEST_URI} !^/product/*
RewriteRule (.*) /product/$1 [L]
RewriteBase /product/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

Jane
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Images not linking in any idea?

Post by Dr.CSS »

I had so much trouble running multiple subfolder sites with .htaccess in the root, no matter how I used .htaccess in the other subfolder sites, I just went back to the root and removed the .htaccess and turned on the internal pretty URLs with '$config['internal_pretty_urls'] = true;' and now I get the news and such as nice looking URLs "/index.php/news/11/15.html" and all I wanted to do was get rid of the index.php...
Metal Beryl
Forum Members
Forum Members
Posts: 69
Joined: Wed Apr 18, 2007 9:57 am

Re: Images not linking in any idea?

Post by Metal Beryl »

ok guys I just tried something out... I changed my current .htaccess file to point to the graphic folder and all images came back in... see www.rapidreality.co.uk

Am i right to use the following .htaccess code on my cgi server to point my two domains to different folders on the cgi server:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.myurl1.co.uk$ [nc]

RewriteCond %{REQUEST_URI} !^/myfolder1/*
RewriteRule (.*) /myfolder1/$1 [L]
RewriteBase /myfolder1/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]


RewriteCond %{HTTP_HOST} ^www.myurl2.co.uk$ [nc]

RewriteCond %{REQUEST_URI} !^/myfolder2/*
RewriteRule (.*) /myfolder2/$1 [L]
RewriteBase /myfolder2/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

??? Jane
Zafazo
New Member
New Member
Posts: 9
Joined: Mon Dec 12, 2011 6:40 pm

Re: Images not linking in any idea?

Post by Zafazo »

It does seem to be in the .htaccess file.

I was having trouble with images showing up in the back-end editor as well as on the website front-end it's self.

Turned out to be Cpanel's Hotlink protection section(?) which we had enabled thinking there was some other service or script that Cpanel used to block direct access to the files but turned out it simply added code to the .htaccess to block direct access which caused all kinds of problem in the back-end which seemed to propagate through to the front-end as well for some strange reason.

Case In Point,

When we would edit the back-end pages with images in them they would not show up (show up as blank no image images) which when we went to the front-end or the page it's self the images would also not be linked.


I'm still not 100% sure if it was only the .htaccess file it's self but we shall see.

O and

cPanel Version: 11.32.2 (build 25)
Apache version: 2.2.22
PHP version: 5.2.17
MySQL version: 5.5.21-55
Architecture: x86_64
Operating System: linux

Our server recently underwent an update as well but we had these problems before the upgrade.

**Also, I did notice that the topic is old but it still came up as one of the top search results from Google, so assuming others will have this problem as well I added to this topic.
Post Reply

Return to “CMSMS Core”