Class RedirectResponse not found

Created on 22 November 2021, about 3 years ago
Updated 2 February 2024, 11 months ago

Problem/Motivation

I was looking through the recent log messages and found this error.

Steps to reproduce

Error: Class 'Zend\Diactoros\Response\RedirectResponse' not found in Drupal\business_rules\Controller\ConditionsItemsController->addItem() (Zeile 137 in drupal/modules/contrib/business_rules/src/Controller/ConditionsItemsController.php)
#0 [internal function]: Drupal\business_rules\Controller\ConditionsItemsController->addItem()
#1 drupal/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()

Proposed resolution

Replace it with

use Laminas\Diactoros\Response\RedirectResponse;

Remaining tasks

* Replace it with

use Laminas\Diactoros\Response\RedirectResponse;

* Create a patch or release new version.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany eugen zerr

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.71.5 2024