Could you fix this bug in multi-site installation?

+1
-2
-1

The version nucleus-7.x-1.1-beta1 contains hard coded references to /sites/default/files instead using the configuration parameter Public file system path.
Example:

mkdir(DRUPAL_ROOT . "/sites/default/files/nucleus");

This causes problems in multi site installations, where the write rights are granted only for /sites//files

No answers yet

Comments

This causes such errors

This causes such errors

Warning: fopen(/var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/default/files/nucleus/grid-fixed-24-888px.css): failed to open stream: Permission denied in nucleus_auto_generate_fixed_grids() (line 45 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).
Warning: fwrite() expects parameter 1 to be resource, boolean given in nucleus_auto_generate_fixed_grids() (line 49 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).
Warning: fwrite() expects parameter 1 to be resource, boolean given in nucleus_auto_generate_fixed_grids() (line 50 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).
Warning: fwrite() expects parameter 1 to be resource, boolean given in nucleus_auto_generate_fixed_grids() (line 51 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).
Warning: fwrite() expects parameter 1 to be resource, boolean given in nucleus_auto_generate_fixed_grids() (line 49 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).
Warning: fwrite() expects parameter 1 to be resource, boolean given in nucleus_auto_generate_fixed_grids() (line 50 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).
Warning: fwrite() expects parameter 1 to be resource, boolean given in nucleus_auto_generate_fixed_grids() (line 51 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).
Warning: fwrite() expects parameter 1 to be resource, boolean given in nucleus_auto_generate_fixed_grids() (line 49 of /var/www/vhosts/sobkowiak.org/sites-prj/root/httpdocs/sites/all/themes/nucleus/nucleus/inc/grid_functions.inc).

RE: Hardcoded path to /sites/default/files

Hi Sobkowiak,

Thanks for your bug report, I've just fixed it and updated to package 7.x-1.x-dev in drupal.org/project/nucleus

HaiNN

Hi

Hi

I've tested the newest version. It has solved my problems

Thanks a lot.