Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sometimes during install, facets don't load correctly, causing a fatal error.
Starting Drupal installation. This takes a while. Consider using the --notify global option. [ok]
PHP Fatal error: Call to a member function calculateDependencies() on null in /var/www/scotts/docroot/modules/contrib/facets/src/Entity/Facet.php on line 755
Fatal error: Call to a member function calculateDependencies() on null in /var/www/scotts/docroot/modules/contrib/facets/src/Entity/Facet.php on line 755
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to a member function calculateDependencies() on null in /var/www/scotts/docroot/modules/contrib/facets/src/Entity/Facet.php, line 755
Attached is a patch that handles the exception. It seems to install correctly.
Comment | File | Size | Author |
---|---|---|---|
#9 | when_installed_in_a-2825043-9.patch | 653 bytes | borisson_ |
Comments
Comment #2
japerryComment #5
borisson_Duplicate.
Comment #6
borisson_Not sure how that made the tests fail. Also not sure how that can happen. But I don't mind commiting the patch.
Looks like that test is also failing on HEAD, it might be a dependency that broke something for core search, I'll dive into that (https://www.drupal.org/pift-ci-job/523866)
Comment #7
borisson_Retesting as I've just fixed HEAD.
Comment #8
borisson_Green now, so setting to RTBC, we have a hangout on monday evening where we'll discuss this.
Comment #9
borisson_I think this is slightly more elegant solution, if this also works I'll commit it tomorrow.
Comment #10
mvdve CreditAttribution: mvdve commentedhad the same issue (no clue what caused it). Patch works perfect.
Comment #11
borisson_Committed, thanks!