FeedMe field mapping not working
I'm having issues importing data into my maps field with FeedMe. Importing to plain text fields is working, however, Maps is not saving the data when viewing the entry.
Craft 3.4.5 // Maps 3.7.7
More insight. FeedMe won't update a plain text field in an entry with a section that has a simplemap field assigned to it. Removing the simplemap field from that section allows FeedMe to update entries.
So something is blocking FeedMe from updating entries when a simplemap field is present.
@siebird I can't recreate this. Could you email a database dump and the file you are trying to import to [email protected]?
Just sent. Let me know if you need anything else?
@siebird Importing worked fine for me (having created a test import using the feed file you sent, and adding the existing location field to the locations section). I did have to change the Mapbox API key, since that was causing errors (according to FeedMe's logs). It could be that your API key is invalid or being restricted.
Looking at the logs I'm getting this error:
GET https://api.mapbox.com/geocoding/v5/mapbox.places/-80.1394384,26.1662975.json?limit=1&types=address,country,postcode,place,locality,district,neighborhood&language=en&access_token=XXXX resulted in a 403 Forbidden response: {"message":"Forbidden"} - RequestException.php: 113.
I'd recommend re-generating your Mapbox token and ensuring it isn't domain locked and has access to their Geocoding services.
It's odd. The maps are working on the frontend with the same keys? 🤔
Most likely some kind of domain restriction then, where your server is sending a different domain to your front-end? It's hard to say without knowing what your setup is.
I'll poke around
Regarding this issue (i am experiencing the same problem). Does the plugin need to geocode the address? My feed already has the lat/lng values, am i missing something here? what is the need to call the geocoding service on feedme import if we already have the grid reference?