(Solved)Missing slash before Uploads.

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
dmagill
Forum Members
Forum Members
Posts: 165
Joined: Thu Nov 15, 2007 6:55 pm

(Solved)Missing slash before Uploads.

Post by dmagill »

Afternoon All - I apologize is if I put this in the wrong place.

I have a cmsms site on a windows server over at Godaddy. I thought I had this problem figured out but apparently not.

When I am using the editor to add a link to a file stored in uploads (PDF), the link ends up missing the slash between the .com and the uploads. so I get comuploads.

<a href="http://www.coronacollege.comuploads/pdf ... student</a>

Sample Link:
http://www.coronacollege.com/index.php?page=sample-2

From the config:
$config['root_url'] = 'http://www.coronacollege.com';

#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.coronacollege.com';

#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = 'D:\Hosting\123456\html';

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

#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = 'D:\Hosting\123456\html\tmp\cache';

#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = 'D:\Hosting\123456\html\uploads';

#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';

#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = 'D:\Hosting\123456\html\uploads\images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';





From the System Information:
D:\Hosting\123456\html (0777) Success

previews_path:

D:\Hosting\123456\html\tmp\cache (0777) Success

uploads_path:

D:\Hosting\123456\html\uploads (0777) Success

uploads_url:

http://www.coronacollege.com/uploads

image_uploads_path:

D:\Hosting\123456\html\uploads\images (0777) Success

image_uploads_url:

http://www.coronacollege.com/uploads/images

ssl_uploads_url:

/uploads

Current PHP Version (phpversion):

5.2.17 Success

Version 1.9.2 "Tevairoa"

I can upload files no problem, and I can link images no problem, but linking to a file to be downloaded is a no go. I have compared it to the existing files of other sites but I don't see a difference.

I have played with the slashes and I have reviewed what I could find on the forum but so far nothing has worked. Honestly it looks right, but it would not be the first time I was blinded to the obvious.

Any help would be appreciated, thank you!

D
Last edited by dmagill on Mon Jun 27, 2011 3:42 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Missing slash before Uploads.

Post by Rolf »

Hi dmagill,

In the sourcecode I find:

Code: Select all

<__script__ type="text/javascript" src="http://vsgroupdev.com/corona/uploads/js/jquery.js"> </__script>
<__script__ type="text/javascript" src="http://www.vsgroupdev.com/corona/uploads/js/accordion.js"> </__script>
It looks like the path settings in the config.php are alright.
What you could check is in the FileManager in the admin, open the same pdf with a click from here and check if the / is there...

I can remember seen it before though. Don't know if it was during a beta test or something... but I should also try to upgrade the cms to 1.9.4.2 Perhaps it was a bug.

Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
dmagill
Forum Members
Forum Members
Posts: 165
Joined: Thu Nov 15, 2007 6:55 pm

Re: Missing slash before Uploads.

Post by dmagill »

Dammit Rolf! I totally missed that! I will fix that right now and since it is Sunday Night I am backing up the site now and will poke at it in about 20 minutes.

Thanks for the heads up. I will be back in an hour.

David
dmagill
Forum Members
Forum Members
Posts: 165
Joined: Thu Nov 15, 2007 6:55 pm

Re: Missing slash before Uploads.

Post by dmagill »

I updated. No problem.

Tested the link to the PDF from inside Filemanager and it was no problem.

Went to my test page, tested the link (broke link, recreated link) and there was no problem any longer. So far so good.

Fixed my jQuery links too!

Thanks for the help Rolf. Your a Rock Star!

I will let you know if I brake anything else =-)
p.wildgruber
New Member
New Member
Posts: 4
Joined: Wed Aug 05, 2009 2:15 pm

Re: (Solved)Missing slash before Uploads.

Post by p.wildgruber »

Just had the same problem. You need to strip the last slash from the "root_path" entry in config.php.

Someone might want to fix the FileManager->upDir() function (I won't)

found it here: http://dev.cmsmadesimple.org/bug/view/6013

O0
pw
Locked

Return to “[locked] Installation, Setup and Upgrade”