TypeError: Drupal\ohdear_integration\Controller\OhDearIntegrationController

Created on 20 July 2023, almost 2 years ago
Updated 15 August 2023, over 1 year ago

Problem/Motivation

The application health check results give a 500 error.

Steps to reproduce

Drupal core 10.1.1
Monitoring 8.x-1.13

Location:
/json/oh-dear-health-check-results

Message:
TypeError: Drupal\ohdear_integration\Controller\OhDearIntegrationController::__construct(): Argument #4 ($request_stack) must be of type Drupal\Core\Http\RequestStack, Symfony\Component\HttpFoundation\RequestStack given, called in /usr/www/users/loginout/production/outfoxlogin/web/modules/contrib/ohdear_integration/src/Controller/OhDearIntegrationController.php on line 84 in Drupal\ohdear_integration\Controller\OhDearIntegrationController->__construct() (line 72 of /usr/www/users/loginout/production/outfoxlogin/web/modules/contrib/ohdear_integration/src/Controller/OhDearIntegrationController.php).

Proposed resolution

Replace Drupal\Core\Http\RequestStack and use the Symfony class Symfony\Component\HttpFoundation\RequestStack directly.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands marceloostdijk Eindhoven, Netherlands

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

Comments & Activities

Production build 0.71.5 2024