Currently a way to install CiviCRM + Drupal 8 using Composer is following this steps.
In the near future there will be support to install CiviCRM as a php library requirement for a drupal 8 site using composer, so civicrm will be located on the vendor folder.
On Aegir (I'm testing on a BOA 3.2.2 environment) following the mentioned steps, you will be able to create the platform which is verified correctly. But If you want to create a site on the given platform, at some point you will get this error:
CiviCRM installer helper file is missing
And that is because using composer, the civicrm core is now located at /vendor/civicrm/civicrm-core
That vendor folder should be also checked. Not sure if here _provision_civicrm_get_package_path
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal8-plus-composer-2942572-4.patch | 806 bytes | Yaazkal |
Comments
Comment #2
bgm CreditAttribution: bgm commentedYep, that's the correct function.
Can you test tweaking the function to also check `/vendor/civicrm/civicrm-core`?
Comment #3
Yaazkal CreditAttribution: Yaazkal commented@bgm thanks for the answer.
I'll try and see if I can suggest a patch.
Comment #4
Yaazkal CreditAttribution: Yaazkal commentedA first attempt.
This fix the error reported.
The task in Aegir is marked as "Failed" even though that the site has been actually installed, I can see the login url in the log and I was able to see the site and log in inside it. Now, task fails due to this error:
Not sure where in the code
..//civicrm
is added to the$crmPath
variable that now makes this fail.As the task is marked as Failed I was unable to enable the CiviCRM module inside the new Drupal site due to permissions but also if I manually give permissions to the site folder to the web server it nows makes the site fail (unrecoverable) when I enable the CiviCRM module; but I'm guessing is because the civicrm tasks where effectively not finished.
Comment #6
bgm CreditAttribution: bgm at Coop SymbioTIC commentedI merged a patch in 7.x-3.x that should fix this issue:
https://gitlab.com/aegir/hosting_civicrm/commit/cab1407f4427d747aeb3256a...
The tests are failing, but it's mostly because of CiviCRM 4.6 and PHP7 incompatibilities: https://gitlab.com/aegir/hosting_civicrm/-/jobs/60960121
(I haven't really checked if the d8 tests are passing, because I assume the makefile for d8 needs to be updated)
I also tested manually installing CiviCRM on D7 and D8.
Comment #7
bgm CreditAttribution: bgm at Coop SymbioTIC commented