Civi won't install when module placed in "best practices" location of `modules/contrib`
Created by: jenlampton
Civi will only install when placed directly in the root of the modules
directory. None of the documentation or on-screen instructions include any warnings or indications that the placement of Civi files on disk need to be treated any differently than usual.
A "best practices" Drupal or Backdrop set-up includes at least two directories within modules
: contrib
and custom
. More complex set-ups can have others.
Multi-site Drupal and Backdrop installations get even more complicated, with modules in all kinds of various locations, sometimes shared between sites, sometimes only offered or a single site. Because of all these various different ways to run Backdrop and Drupal sites, the location of the files on disk should not be a factor.
Both CMSes provide utility functions (backdrop_get_path()
or drupal_get_path()
) that will allow any add-on to to be located at run-time. These should be used instead of assuming a specific location.