Error: Call to undefined method Drupal\Core\Http\RequestStack::getSchemeAndHttpHost()

Created on 6 June 2023, over 1 year ago

Problem/Motivation

Error: Call to undefined method Drupal\Core\Http\RequestStack::getSchemeAndHttpHost() in Drupal\send_emails\EmailApi->notifyEmail() (line 442 of /home/nuuchahn/public_html/hr/modules/contrib/send_emails/src/EmailApi.php)

when using the $destination parameter.

Proposed resolution

Use $this->requestStack->getCurrentRequest() instead of directly on the stack.

See https://www.drupal.org/project/quick_node_clone/issues/3184553

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇦Canada Nathan Tsai

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

Comments & Activities

Production build 0.71.5 2024