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).

Comments

stBorchert created an issue. See original summary.

stborchert’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Status: Needs review » Needs work

The last submitted patch, 2: message_ui-config_install-2886830-2.patch, failed testing. View results

davisa’s picture

Can confirm, patch #2 worked for me. Drupal core 8.3.1

juagarc4’s picture

The patch #2 works fine for me too.

Tested with Drupal 8.3.5

Thank you very much!

alezu’s picture

On Drupal 8.4.2 patch still works. Thank you!

roysegall’s picture

I 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.

roysegall’s picture

StatusFileSize
new1.91 KB

I'm attaching the patch which worked for me.

roysegall’s picture

roysegall’s picture

  • RoySegall committed 1f4da6b on 8.x-1.x
    Issue #2886830 by stBorchert, RoySegall, Gugols, juagarc4, Alex Zu: Call...
cosolom’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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