studioespresso / craft-easyaddressfield

Easy Address Field is the easiest way to add an address to your entries. Enable the fields you want for the address, automatically get the coordinates for an address and place the marker exactly where you want it.
https://plugins.craftcms.com/easy-address-field
Other
3 stars 3 forks source link

foreach() argument must be of type array|object, string given in EasyAddressFieldModel.php #35

Closed HannahDeWachter closed 1 year ago

HannahDeWachter commented 2 years ago

In the getField function in FieldService.php $value is a json, but it has to be an array to give to the EasyAddressFieldModel($value). It gives the following error: foreach() argument must be of type array|object, string given