Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.9
-
Fix Version/s: 4.7.16
-
Component/s: Drupal Integration Modules
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:User and Admin Doc
-
Funding Source:Contributed Code
Description
When attempting to install the CiviCRM Core in Drupal 8 installation fails. This is after adding the Libraries API as mentioned in CRM-18297.
The error received via the Web UI and drush command line is:
Fatal error: Using $this when not in object context in /home4/techeira/public_html/drupal8/core/lib/Drupal/Core/File/FileSystem.php on line 125
Running drush with debug shows the offending line:
Non-static method Drupal\Core\File\FileSystem::realpath() should not be called statically civicrm.install:135
As mentioned in the comments of the linked JIRA item, I surmised it was an initialization issue, and drush output seems to support that. I will test my proposed fix and update the ticket.