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

CommentFileSizeAuthor
#4 interdiff.txt1015 bytesbenjy
#4 2383079-4.patch1.23 KBbenjy
#2 2383079-2.patch1.23 KBbenjy
#1 2383079-1.patch995 bytesbenjy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

benjy’s picture

Status: Active » Needs review
FileSize
995 bytes

Patch attached.

benjy’s picture

FileSize
1.23 KB

Lets try that again.

chx’s picture

Status: Needs review » Reviewed & tested by the community

Sigh. How many of these are there?

benjy’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Let'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!

  • alexpott committed 88307ff on 8.0.x
    Issue #2383079 by benjy: EntityDisplayBase::calculateDependencies()...

Status: Fixed » Closed (fixed)

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