Fix the call to a member function getConfigDependencyKey() on null on Widget view and SelectionDisplay view

Created on 19 January 2017, over 8 years ago
Updated 11 July 2025, 10 days ago

Capture description:

When we install Drupal 8 site with the entity browser module enabled.
Then we get the following error

PHP Fatal error:  Call to a member function getConfigDependencyKey() on null in /var/www/html/test/drupal8/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Widget/View.php on line 277

Environment: Development

Steps to reproduce:

Given that we do have a drupal 8 site at "/var/www/html/test/drupal 8/"
And we changed directory to "/var/www/html/test/drupal 8/"
When we run the following command :
"

drush site-install profile_with_entity_browser --yes --account-name=webmaster --account-pass=dD.123123ddd --account-mail=webmaster@example.com --db-url=mysql://mysqluser:mysqlpassword@localhost/test_drupal8 -vvv

"
Then we will get the following error:
"
PHP Fatal error: Call to a member function getConfigDependencyKey() on null
"

Expected results:

Install without any issues.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Core API

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024