\Drupal\commerce\CurrentCountry assumes a request always exists, but it does not, causing a fatal error on drush operations.
Same issue that's come up before
https://www.drupal.org/project/commerce/issues/3395298
https://www.drupal.org/project/price/issues/3334893
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | commerce-fatal_on_null_request-3535282-3.patch | 714 bytes | aaronbauman |
Issue fork commerce-3535282
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aaronbaumanHere's a stack dump.
In my case, the invocation of CurrentCountry originates from a route rebuild of a views data export display that includes a price field.
Comment #3
aaronbaumanHere's a patch.
Uses exact same approach as patch from #3395298: SplObjectStorage::contains(): Argument #1 ($object) must be of type object, null given
Comment #5
aaronbaumanOpened MR 467 with same patch from #3
Comment #8
jsacksick commentedMerged, thanks!