Profile Installation in multisite environment: files copied in wrong directory and trouble with path

kikko's picture
kikko
Sat, 10/24/2015 - 16:31
#1
Profile Installation in multisite environment: files copied in wrong directory and trouble with path

HI,

using the profile installation on a multisite environment, the directory files is copied in /sites/default/files instead of sites/new_site/files, which could cause problems with preexisting installed sites, mixing up the files.

The problem happen also in example.com/admin/config/media/file-system in the field Public file system path, which in the database is set to sites/default/files

I see also that in md_avendor/theme_settings/front/page.preprocess.inc, function md_avendor_preprocess_maintenance_page(&$vars) {

at the line 164 you write:   drupal_add_css('sites/default/files/icon/fontello/awesome/css/awesome.css');

I think I have to change with the right path. Do I or you have a better solution?

I have to see at other files for fill the right path?

Thanks

Ps. Don't ask me username, psw and ftp, cause I'm not on production server. Thanks again.

phuonght's picture
phuonght
Mon, 10/26/2015 - 06:54

Hi,

Thank you for your feedback. We will check it and reply ASAP :)

phuonght's picture
phuonght
Mon, 10/26/2015 - 22:49

We checked and found a solution:

- Please create a folder name "Font" in theme then copy font to that folder.

- In file md_avendor/theme_settings/front/page.preprocess.inc, replace

drupal_add_css('sites/default/files/icon/fontello/awesome/css/awesome.css');

with

drupal_add_css(path_to_theme() . '/font/awesome/css/awesome.css');

kikko's picture
kikko
Fri, 10/30/2015 - 08:25

Thank and sorry for the delay in reply

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.