CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#8696] $config ['uploads_path'] and filemanager

avatar
Created By: Jean-Marc Lerouge (jeanlechauve)
Date Submitted: Fri Nov 30 10:07:03 -0500 2012

Assigned To: Robert Campbell (calguy1000)
Version: 1.11.2.1
CMSMS Version: 1.11.2.1
Severity: Major
Resolution: Works For Me
State: Closed
Summary:
$config ['uploads_path'] and filemanager
Detailed Description:
If we add $config['uploads_path'] (or uploads_url) = 'yourpath' in config.php,
it is impossible to navigate folders filemanager, whether or not in advanced
mode.


History

Comments
avatar
Date: 2012-11-30 11:13
Posted By: Robert Campbell (calguy1000)

just added:  $config['uploads_path'] = '/var/www/cms_dev/uploads2';  to my
config file
after putting some files and subdirs in there
worked fine.

Notes:  
1: uploads path MUST be below the CMSMS root install
2: if you modify the uploads path in the config.php you probably also need to
modify the uploads_url value.  Particularly for the frontend to work.
      
avatar
Date: 2012-11-30 11:31
Posted By: Jean-Marc Lerouge (jeanlechauve)

So, my config.php was :
$config['dbms'] = 'mysqli';
$config['db_hostname'] = '...';
$config['db_username'] = '...';
$config['db_password'] = '...';
$config['db_name'] = '...';
$config['db_prefix'] = 'xtr_';
$config['timezone'] = 'Europe/Paris';
$config['locale'] = 'utf8.fr_FR';
$config['url_rewriting'] = 'mod_rewrite';
$config['uploads_path'] = '/homez.90/promojeu/zoomjeunes.be/le6esens/uploads';
$config['uploads_url'] = 'http://www.zoomjeunes.be/le6esens/uploads';

Don't work

I modified it :
[...]
$config['uploads_path'] = '/homez.90/promojeu/zoomjeunes.be/le6esens/uploads';
$config['uploads_url'] = 'http://www.zoomjeunes.be/le6esens/uploads';
$config['url_rewriting'] = 'mod_rewrite';

It work with $config['url_rewriting'] = 'mod_rewrite'; after the uploads config.
      
avatar
Date: 2012-11-30 11:45
Posted By: Robert Campbell (calguy1000)

invalid.... the $config file is included in one step... the order of lines in
the config.php file is irrelevant.
      
Updates

Updated: 2013-03-16 23:59
state: Open => Closed

Updated: 2012-11-30 11:13
resolution_id: => 11