When running a site install (using `drush site-install config_installer` for example) I get the following error:

Error: Call to a member function set() on null in manage_display.module on line 18 #0 core/lib/Drupal/Core/Entity/EntityTypeManager.php(112): manage_display_entity_type_build(Array)

It seems that manage_display_entity_type_build can run when $entity_types['node'] does not exist (yet). Adding a check to make sure $entity_types['node'] exists solved the issue for me.

This function also does something to $entity_types['user'] for which I did not add a check since I'm not sure that will ever be an issue. Perhaps it is worth considering also adding this check there.

CommentFileSizeAuthor
#2 set-on-null-3025154-1.patch629 bytesolivier.bouwman

Comments

olivier.bouwman created an issue. See original summary.

olivier.bouwman’s picture

StatusFileSize
new629 bytes
tallytarik’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed, fixes the issue.

adamps’s picture

Great, thanks. I think we should do the user one too just in case. No need to make another patch - I'll just do it locally.

adamps’s picture

Status: Reviewed & tested by the community » Fixed

  • b25476b committed on 8.x-1.x
    Issue #3025154 by olivier.bouwman, tallytarik, AdamPS: Error: Call to a...

Status: Fixed » Closed (fixed)

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