Page 1 of 1

Need help with FCKeditor file browser paths

Posted: Fri Mar 23, 2007 12:56 am
by drezden
Hello all,

This is my first post here so hopefully I won't leave anything important out.

I just installed a fresh copy of CMSMS 1.0.4 "Lanai" on my site, using clean URLs, and everything working as expected.....but

When I type some text into the editor and try to turn it into a link, the file browser lets me select my file but returns an invalid path to it.

I want: http://www.mysite.com/uploads/pdf/some-pdf-file.pdf

But get: http://www.mysite.com/uploads///pdf/some-pdf-file.pdf

For some reason its throwing two extra "//"s between uploads and pdf.  It does the same thing for other directories that I've created.
Does anyone know how to correct this or what specific file I need to edit?

I'd appreciate the help.

Re: Need help with FCKeditor file browser paths

Posted: Fri Mar 23, 2007 5:57 am
by Gregor
Dreden,

I think you have to look in your config.php Path's are set there. I copied a part of mine config.php

Code: Select all

#-------------
#Path Settings
#-------------

#Document root as seen from the webserver.  No slash at the end
#e.g. http://blah.com
$config['root_url'] = 'http://www.uisge-beatha.eu';

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs';

#Name of the admin directory
$config['admin_dir'] = 'admin';

#Where do previews get stored temporarily?  It defaults to tmp/cache.
$config['previews_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/tmp/cache';

#Where are uploaded files put?  This defaults to uploads.
$config['uploads_path'] = '/home/httpd/vhosts/uisge-beatha.eu/httpdocs/uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = 'http://www.uisge-beatha.eu/uploads';
Good luck,
G

Re: Need help with FCKeditor file browser paths

Posted: Thu Mar 29, 2007 10:38 am
by lainyrache
Hi
I am having the same problem with a recent install
CMS Made Simple version 1.0.4,  FCKeditorX 1.0.3
My configs are the same as other installs on the same server
I use relative urls...which are working on another older cms

$config['uploads_url'] = 'uploads';
$config['image_uploads_url'] = '/uploads/images';

Uploads of pdfs etc are throwing the path
uploads///foldername/r21.pdf
yet Image paths are fine.
Anyone got any ideas?