Fatal error on status page after module install

Created on 10 January 2023, over 1 year ago
Updated 12 May 2023, about 1 year ago

After installing OAI-PMH Harvester module and visit /admin/config/services/oai_pmh_harvester/status URL i got this error

The website encountered an unexpected error. Please try again later.
Error: Call to a member function addError() on null in Drupal\oai_pmh_harvester\Controller\StatusPageController->status() (line 117 of modules/contrib/oai_pmh_harvester/src/Controller/StatusPageController.php).

As I investigated this I found this line in the catch which try to access messenger property of the base controller, which is not initialized yet.

I've attached a patch to change $this->messenger->... to $this->messenger()->... to prevent this error.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary tikaszvince

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024