Fatal error: Call to a member function getFieldStorageDefinition() on null in
/var/www/d8/public/core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php on line 37

To reproduce navigate to the path bellow (replace field_foo with any non-existent field)
admin/structure/types/manage/article/fields/node.article.field_foo/storage

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi created an issue. See original summary.

willzyx’s picture

Can something like the solution in the attached patch be a viable solution?

willzyx’s picture

Status: Active » Needs review

The last submitted patch, 2: fatal_error_call_to_a-2586047-2-test-only.patch, failed testing.

amateescu’s picture

Status: Needs review » Reviewed & tested by the community

Looks great to me, nice find :)

The last submitted patch, 2: fatal_error_call_to_a-2586047-2-test-only.patch, failed testing.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed eb0a219 and pushed to 8.0.x and 8.1.x. Thanks!

  • alexpott committed 718c503 on 8.1.x
    Issue #2586047 by willzyx: Fatal error: Call to a member function...

  • alexpott committed eb0a219 on
    Issue #2586047 by willzyx: Fatal error: Call to a member function...

Status: Fixed » Closed (fixed)

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

patrick.thurmond@gmail.com’s picture

This problem is definitely not fixed. I created a custom entity type using the Drupal console wizard tool and when I try to view or edit I get this ridiculous error even though every time I use xdebug I see a fully fledged class, not a null value.

Regardless this problem is not resolved and needs to be. I will see what I can do to fix this.