Problem/Motivation
Feeds imports break when using Geofield.
Caveat: This issue only seems to appear on PHP 8.1.x. PHP <8.2, up to and including 8.1.30.
It appears to not be an issue on PHP 8.2.
Warning: foreach() argument must be of type array|object, null given in /web/modules/contrib/geofield/src/Feeds/Target/Geofield.php on line 92
Steps to reproduce
Run a feeds import using a content type that uses Geofield.
The error breaks the import.
Proposed resolution
See attached patch which resolves the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| geofield-feed-error-fix2.patch | 1008 bytes | taiger |
Comments
Comment #2
taiger commentedComment #4
itamair commentedtrusting and committing into dev the patch provided