Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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)
Comment | File | Size | Author |
---|---|---|---|
#3 | admin_config_system_nagios_ignoredmodules.png | 157.98 KB | debdatta.sarkar |
Comments
Comment #2
debdatta.sarkar CreditAttribution: debdatta.sarkar commentedComment #3
debdatta.sarkar CreditAttribution: debdatta.sarkar commentedComment #4
Gogowitsch CreditAttribution: Gogowitsch as a volunteer commentedThanks 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.