Need help with FCKeditor file browser paths

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.
Locked
drezden

Need help with FCKeditor file browser paths

Post 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.
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: Need help with FCKeditor file browser paths

Post 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
lainyrache
Forum Members
Forum Members
Posts: 106
Joined: Thu Oct 05, 2006 11:27 am

Re: Need help with FCKeditor file browser paths

Post 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?
Locked

Return to “CMSMS Core”