When I try to go to "Ignored Modules" tab I get this error:

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal::messenger() in Drupal\nagios\Form\IgnoredModulesForm->buildForm() (line 72 of modules/contrib/nagios/src/Form/IgnoredModulesForm.php).
Drupal\nagios\Form\IgnoredModulesForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 514)
Drupal\Core\Form\FormBuilder->retrieveForm('nagios_ignored_modules', Object) (Line: 271)
Drupal\Core\Form\FormBuilder->buildForm('nagios_ignored_modules', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 153)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 57)
Drupal\shield\ShieldMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

debdatta.sarkar created an issue. See original summary.

debdatta.sarkar’s picture

Title: Ignored Modules » Error on "Ignored Modules" Tab
FileSize
157.98 KB
debdatta.sarkar’s picture

FileSize
157.98 KB
Gogowitsch’s picture

Assigned: Unassigned » Gogowitsch
Status: Active » Closed (works as designed)

Thanks for creating an issue.

Please update to the newest stable Drupal core, which currently is 8.5.6.

The messenger() function was added in Drupal 8.5.0:
https://api.drupal.org/api/drupal/core%21lib%21Drupal.php/function/Drupa...

If there is anything else you need: just let me know.