Problem/Motivation
While trying to install Message and Message UI (both are enabled by core.extension.yml) we get the following error:
Call to a member function get() on null in message_ui_install() (line 23 in message_ui.install)
It seems, the message-view as defined by Message in views.view.message.yml is not imported yet and cannot be loaded at this point.
Proposed resolution
Wait for the configuration to be installed before accessing the view.
Remaining tasks
Create patch (see https://github.com/RoySegall/message_ui/issues/37).
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | message_ui-config_install-2886830-8.patch | 1.91 KB | roysegall |
| #2 | message_ui-config_install-2886830-2.patch | 1.19 KB | stborchert |
Comments
Comment #2
stborchertComment #4
davisa commentedCan confirm, patch #2 worked for me. Drupal core 8.3.1
Comment #5
juagarc4 commentedThe patch #2 works fine for me too.
Tested with Drupal 8.3.5
Thank you very much!
Comment #6
alezu commentedOn Drupal 8.4.2 patch still works. Thank you!
Comment #7
roysegall commentedI got this one on one of my projects. I'll probably apply this in the next weekend and create a new version to the D8 release.
Comment #8
roysegall commentedI'm attaching the patch which worked for me.
Comment #9
roysegall commentedComment #10
roysegall commentedComment #12
cosolom commented