Versions 2.0.1 and 2.1.x not compatible with D8

Created on 25 September 2024, about 2 months ago

Problem/Motivation

I happen to be updating what contribs I can for a site on Drupal 8.9 (due to client restrictions). The 2.0.1 version and 2.1.x versions of this module are marked as compatible with Drupal ^8.7.7 but throw this fatal error, on any URL path I think:

TypeError: Argument 1 passed to Drupal\httpswww\EventSubscriber\HttpsWwwRedirectSubscriber::redirect() must be an instance of Symfony\Component\HttpKernel\Event\RequestEvent, instance of Symfony\Component\HttpKernel\Event\GetResponseEvent given in Drupal\httpswww\EventSubscriber\HttpsWwwRedirectSubscriber->redirect() (line 54 of /app/web/modules/contrib/httpswww/src/EventSubscriber/HttpsWwwRedirectSubscriber.php)

Proposed resolution

A brief search indicates this is a Symfony API change so probably just drop Drupal core 8.x compatibility in future releases.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tea.time

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

Comments & Activities

  • Issue created by @tea.time
  • πŸ‡ΈπŸ‡ͺSweden enzipher

    Thanks for the report!

    You are totally right about that. It was removed in Symfony 5.0 and Drupal 9.1.0 as far as I can tell.

    I agree with the proposed solution to raise the Drupal core requirements as those older versions are no longer supported.

    Thanks,

Production build 0.71.5 2024