This causes problems on install in some cases:

PHP Fatal error:  Call to a member function getConfigDependencyKey() on null in /var/www/html/web/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Widget/View.php on line 277
PHP Stack trace:
PHP   1. {main}() /var/www/html/vendor/drush/drush/drush.php:0
PHP   2. drush_main() /var/www/html/vendor/drush/drush/drush.php:12
PHP   3. Drush\Boot\BaseBoot->bootstrap_and_dispatch() /var/www/html/vendor/drush/drush/includes/preflight.inc:66
PHP   4. drush_dispatch() /var/www/html/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php:67
PHP   5. call_user_func_array:{/var/www/html/vendor/drush/drush/includes/command.inc:199}() /var/www/html/vendor/drush/drush/includes/command.inc:199
PHP   6. drush_command() /var/www/html/vendor/drush/drush/includes/command.inc:199
PHP   7. _drush_invoke_hooks() /var/www/html/vendor/drush/drush/includes/command.inc:231
PHP   8. call_user_func_array:{/var/www/html/vendor/drush/drush/includes/command.inc:422}() /var/www/html/vendor/drush/drush/includes/command.inc:422
PHP   9. drush_core_site_install() /var/www/html/vendor/drush/drush/includes/command.inc:422
PHP  10. drush_core_site_install_version() /var/www/html/vendor/drush/drush/commands/core/site_install.drush.inc:249
PHP  11. drush_op() /var/www/html/vendor/drush/drush/commands/core/drupal/site_install.inc:80
PHP  12. drush_call_user_func_array() /var/www/html/vendor/drush/drush/includes/drush.inc:711
PHP  13. install_drupal() /var/www/html/vendor/drush/drush/includes/drush.inc:726
PHP  14. install_run_tasks() /var/www/html/web/core/includes/install.core.inc:116
PHP  15. install_run_task() /var/www/html/web/core/includes/install.core.inc:539
PHP  16. batch_process() /var/www/html/web/core/includes/install.core.inc:618
PHP  17. _batch_process() /var/www/html/web/core/includes/form.inc:870
PHP  18. call_user_func_array:{/var/www/html/web/core/includes/batch.inc:252}() /var/www/html/web/core/includes/batch.inc:252
PHP  19. _install_module_batch() /var/www/html/web/core/includes/batch.inc:252
PHP  20. Drupal\Core\ProxyClass\Extension\ModuleInstaller->install() /var/www/html/web/core/includes/install.core.inc:1799
PHP  21. Drupal\Core\Extension\ModuleInstaller->install() /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
PHP  22. Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig() /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:248
PHP  23. Drupal\Core\Config\ConfigInstaller->installDefaultConfig() /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:75
PHP  24. Drupal\Core\Config\ConfigInstaller->createConfiguration() /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:125
PHP  25. Drupal\entity_browser\Entity\EntityBrowser->save() /var/www/html/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:321
PHP  26. Drupal\Core\Config\Entity\ConfigEntityBase->save() /var/www/html/web/modules/contrib/entity_browser/src/Entity/EntityBrowser.php:439
PHP  27. Drupal\Core\Entity\Entity->save() /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:637
PHP  28. Drupal\Core\Config\Entity\ConfigEntityStorage->save() /var/www/html/web/core/lib/Drupal/Core/Entity/Entity.php:364
PHP  29. Drupal\Core\Entity\EntityStorageBase->save() /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:259
PHP  30. Drupal\Core\Entity\EntityStorageBase->doPreSave() /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:389
PHP  31. Drupal\entity_browser\Entity\EntityBrowser->preSave() /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:434
PHP  32. Drupal\Core\Config\Entity\ConfigEntityBase->preSave() /var/www/html/web/modules/contrib/entity_browser/src/Entity/EntityBrowser.php:400
PHP  33. Drupal\Core\Config\Entity\ConfigEntityBase->calculateDependencies() /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:346
PHP  34. Drupal\Core\Config\Entity\ConfigEntityBase->calculatePluginDependencies() /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:388
PHP  35. Drupal\entity_browser\Plugin\EntityBrowser\Widget\View->calculateDependencies() /var/www/html/web/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:35
CommentFileSizeAuthor
#2 2849475_2.patch1.47 KBslashrsm

Comments

slashrsm created an issue. See original summary.

slashrsm’s picture

Status: Active » Needs review
StatusFileSize
new1.47 KB
xlrs’s picture

hey,

the patch in #2 resolved this issue here, too

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Yes, this fix makes sense.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: 2849475_2.patch, failed testing.

berdir’s picture

Status: Needs work » Reviewed & tested by the community
slashrsm’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

  • slashrsm committed b9d72f2 on 8.x-1.x
    Issue #2849475 by slashrsm: Correctly declare config dependencies in the...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.