Problem/Motivation
Fatal error: Call to a member function getConfigDependencyName() on a non-object in EntityDisplayBase.php
Proposed resolution
throw an exception that tells you more. even if it terminates the script, a better error message tells you more than this fatal.
This issue would help debug problems like: #2368801: Fatal error: Call to a member function getConfigDependencyName() on a non-object in FieldConfigBase.php
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff.txt | 1015 bytes | benjy |
| #4 | 2383079-4.patch | 1.23 KB | benjy |
| #2 | 2383079-2.patch | 1.23 KB | benjy |
Comments
Comment #1
benjy commentedPatch attached.
Comment #2
benjy commentedLets try that again.
Comment #3
chx commentedSigh. How many of these are there?
Comment #4
benjy commentedRe-rolled to fix the issue pointed out in #2384665: Follow-up: FieldConfigBase::calculateDependencies() fatal error is unhelpful
Comment #5
alexpottLet's add a test for this... ho hum there is no handy unit test. This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 88307ff and pushed to 8.0.x. Thanks!