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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michelle created an issue. See original summary.

Michelle’s picture

Status: Active » Needs review
FileSize
2.42 KB

This patch removes all the RequestStack related code and replaces it with a call to getRequest().

  • Michelle committed ef9c276 on 8.x-2.x
    Issue #3079436 by Michelle: Use getRequest() not RequestStack
    
Michelle’s picture

Status: Needs review » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.