Broken images in path uploads/images - New install

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
Msbiz
Forum Members
Forum Members
Posts: 11
Joined: Tue Nov 23, 2010 12:00 pm

Broken images in path uploads/images - New install

Post by Msbiz »

Hi,

I just finished installing CMSMS 1.9.1. I have uploaded some images to uploads/images directory. But they show up as broken images in my page.

I also get this message anytime I click one of the images:

Internal Server Error:
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@************ and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Any help would be appreciated.

Liz.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Broken images in path uploads/images - New install

Post by Wishbone »

It might be a similar issue as in THIS thread.

Try setting your permissions recursively in your /uploads directory to 755.
Last edited by Wishbone on Tue Nov 23, 2010 11:06 pm, edited 1 time in total.
Msbiz
Forum Members
Forum Members
Posts: 11
Joined: Tue Nov 23, 2010 12:00 pm

Re: Broken images in path uploads/images - New install

Post by Msbiz »

Hi Wishbone,

Thanks, but it doesn't help. I've tried changing the permissions on the directory and files to various things and doesn't seem to affect it.

Images in the admin area are showing up fine. I replicated the permissions on those files which are set to 707 for directories and 604 for files. But it didnt help.

Any other ideas?

Your help is much appreciated.
Liz.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Broken images in path uploads/images - New install

Post by Dr.CSS »

Do you have a strange URL or something, 17.843.28.572/~somesite, check your config.php paths for strangeness...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Broken images in path uploads/images - New install

Post by RonnyK »

Do you have some fancy namings in the images.

What is f.e. the URL for an image there..

Ronny
Msbiz
Forum Members
Forum Members
Posts: 11
Joined: Tue Nov 23, 2010 12:00 pm

Re: Broken images in path uploads/images - New install

Post by Msbiz »

Hi,

Thanks. Ok, I looked at the urls and there are a few things going on. Please bear with me because I don't have a clue what I'm doing.

Firstly, from my account just for reference:

Code: Select all

Website: 	http://www.blah.co.uk 
Test Domain: http://domain1111111.sites.streamlinedns.co.uk
Path for Scripting: /home/fhlinux009/r/blah.co.uk/user/
The config file has both the test domain and the path.i.e:

Code: Select all

$config['root_url'] = 'http://domain111111.sites.streamlinedns.co.uk';
#SSL URL.  This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://domain111111.sites.streamlinedns.co.uk';
and

Code: Select all

$config['root_path'] = '/home/fhlinux009/r/blah.co.uk/user/htdocs';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily?  It defaults to tmp/cache.
$config['previews_path'] = '/home/fhlinux009/r/blah.co.uk/user/htdocs/tmp/cache';
#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/home/fhlinux009/r/blah.co.uk/user/htdocs/uploads';
Also

Code: Select all

$config['image_uploads_path'] = '/home/fhlinux009/r/blah.co.uk/user/htdocs/uploads/images';
Ok. I checked the image urls in the image manager. They show up as:
http://domain111111.sites.streamlinedns ... header.gif

I tried a few things in config. I changed the root_url and the ssl_url to /home/fhlinux009/r/blah.co.uk
Now the urls point to http://domain111111.sites.streamlinedns ... ds/images/
They still don't show up and If I click a thumbnail I end up a yahoo search for some reason.

So I tried changing all paths in config to http://domain111111.sites.streamlinedns.co.uk
But then I get this error message:

Code: Select all

Warning: opendir(http://domain1111111.sites.streamlinedns.co.uk/user/htdocs/admin//lang) [function.opendir]: failed to open dir: not implemented in /home/fhlinux009/r/blah.co.uk/user/htdocs/lib/translation.functions.php on line 88

Warning: readdir(): supplied argument is not a valid Directory resource in /home/fhlinux009/r/blah.co.uk/user/htdocs/lib/translation.functions.php on line 89

Warning: closedir(): supplied argument is not a valid Directory resource in /home/fhlinux009/r/blah.co.uk/user/htdocs/lib/translation.functions.php on line 94
I hope this makes sense to someone.

Thanks again.
Liz.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Broken images in path uploads/images - New install

Post by Nullig »

If your site is:

  http://www.blah.co.uk

your config.php URLs should be:

  $config['root_url'] = 'http://www.blah.co.uk';
  $config['ssl_url'] = 'https://www.blah.co.uk';
  $config['uploads_url'] = $config['root_url'] . '/uploads';

If your website path is:

  /home/fhlinux009/r/blah.co.uk/user/htdocs

your config.php paths should be:

  $config['root_path'] = '/home/fhlinux009/r/blah.co.uk/user/htdocs';
  $config['previews_path'] = '/home/fhlinux009/r/blah.co.uk/user/htdocs/tmp/cache';
  $config['uploads_path'] = '/home/fhlinux009/r/blah.co.uk/user/htdocs/uploads';

Nullig
Post Reply

Return to “CMSMS Core”