Page 1 of 1

Broken images in path uploads/images - New install

Posted: Tue Nov 23, 2010 9:19 pm
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.

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

Posted: Tue Nov 23, 2010 11:04 pm
by Wishbone
It might be a similar issue as in THIS thread.

Try setting your permissions recursively in your /uploads directory to 755.

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

Posted: Wed Nov 24, 2010 9:26 am
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.

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

Posted: Wed Nov 24, 2010 9:28 am
by Dr.CSS
Do you have a strange URL or something, 17.843.28.572/~somesite, check your config.php paths for strangeness...

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

Posted: Wed Nov 24, 2010 9:37 am
by RonnyK
Do you have some fancy namings in the images.

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

Ronny

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

Posted: Wed Nov 24, 2010 10:36 am
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.

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

Posted: Wed Nov 24, 2010 6:57 pm
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