Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This a continuation of #605272: Use a better directory when installing code via the update manager (documentation followup): I have a multi-site setup where all sites live under sites/sitename. When I try to use the update manager to install a new module it tries to install it to sites/all/modules which is not write-able. Ideally this should be either configurable on a per site basis or maybe it should figure out that sites/all/modules is not write-able and try installing to sites/sitename/modules. Please.
For sake of completeness here the error screen from the update manager:
Installation failed! See the log below for more information.
panels
* Error installing / updating
* File Transfer failed, reason: Cannot create directory /var/www/share/drupal/web/drupal-7.0/sites/all/modules/panels.
Next steps
Comments
Comment #1
bfroehle CreditAttribution: bfroehle commentedFor reference, the relevant code is in ModuleUpdater::getInstallDirectory() in
includes/system.updater.inc
.Comment #2
romaingar CreditAttribution: romaingar commented+1
Comment #3
Scott M. Sanders CreditAttribution: Scott M. Sanders commentedOr maybe a better error as to why it fails: "target directory not writable."
I'm guessing this was not tested well before released.
Comment #4
bfroehle CreditAttribution: bfroehle commentedComment #13
srees CreditAttribution: srees commentedI know multisite may not be that common, but why is this ignored? This strikes me as a pretty important issue for multisite, and also affects theme installation - not just modules. Personally, I'm with the OP that this is a bug, not a feature request.