Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Submitting a signup results in this error:
Error: Call to undefined method Symfony\Component\HttpFoundation\RequestStack::getHost() in Drupal\simply_signups\Form\SimplySignupsForm->submitForm() (line 224 of modules/contrib/simply_signups/src/Form/SimplySignupsForm.php).
This is because the code shouldn't be using RequestStack but rather the getRequest() method that is already part of the formBase.
Comment | File | Size | Author |
---|---|---|---|
#2 | simplysignups_3079436-2_use-getrequest.patch | 2.42 KB | Michelle |
Comments
Comment #2
MichelleThis patch removes all the RequestStack related code and replaces it with a call to getRequest().
Comment #4
MichelleI went ahead and committed this one even though it hasn't been seconded because it was causing a fatal error when trying to submit a signup so the module doesn't work without this fix.