Problem/Motivation
Latest release (2.0.0-beta1) errors out after installing on Drupal 8.
Upon installation, you get the following error:
TypeError: Argument 1 passed to Drupal\force_password_change\EventSubscriber\ForcePasswordChangeEventSubscriber::checkForPasswordForce() must be an instance of Symfony\Component\HttpKernel\Event\RequestEvent, instance of Symfony\Component\HttpKernel\Event\GetResponseEvent given in Drupal\force_password_change\EventSubscriber\ForcePasswordChangeEventSubscriber->checkForPasswordForce() (line 88 of modules/contrib/force_password_change/src/EventSubscriber/ForcePasswordChangeEventSubscriber.php).
Symfony 3 still has the GetResponseEvent. Symfony 4 contains the RequestEvent.
Steps to reproduce
- Install drupal/core-recommended 8.9.16 wich has symfony/http-kernel v3.4.44 hard dependency.
- Install the module.
Proposed resolution
Don't mark release as D8 compatible.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#5 | beforepatch2.png | 130.55 KB | laisbonafe |
#5 | afterpatch.png | 84.19 KB | laisbonafe |
#4 | 3222291-4.patch | 1.15 KB | larisse |
Comments
Comment #2
Stefdewa CreditAttribution: Stefdewa at Calibrate commentedComment #3
caspervoogt CreditAttribution: caspervoogt commentedI agree; I just ran into this too.
Comment #4
larisse CreditAttribution: larisse at CI&T commentedHi! I create a patch for this issue.
Comment #5
laisbonafe CreditAttribution: laisbonafe at CI&T commentedHi, I tested and the patch of comment #4 fixed the issue.
error to install before patch:
everything ok to install after patch: (ignore the mesage for update core to 8.9.18)
Comment #6
laisbonafe CreditAttribution: laisbonafe at CI&T commentedComment #8
larisse CreditAttribution: larisse at CI&T commentedThank you @laisbonafe
Comment #10
jds1Patch applies cleanly and works. Can we please get this into a release? Lots of D8 sites are probably upgrading after seeing this module on an Upgrade Status report and it would be helpful to have this working without a patch. Thanks!