simplemap icon indicating copy to clipboard operation
simplemap copied to clipboard

FeedMe field mapping not working

Open siebird opened this issue 5 years ago • 10 comments

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.

FeedMe Field Mapping

Craft 3.4.5 // Maps 3.7.7

siebird avatar Feb 14 '20 17:02 siebird

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 avatar Feb 25 '20 14:02 siebird

@siebird I can't recreate this. Could you email a database dump and the file you are trying to import to [email protected]?

Tam avatar Feb 26 '20 12:02 Tam

Just sent. Let me know if you need anything else?

siebird avatar Feb 26 '20 12:02 siebird

@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.

Tam avatar Feb 26 '20 13:02 Tam

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.

siebird avatar Feb 26 '20 15:02 siebird

I'd recommend re-generating your Mapbox token and ensuring it isn't domain locked and has access to their Geocoding services.

Tam avatar Feb 26 '20 15:02 Tam

It's odd. The maps are working on the frontend with the same keys? 🤔

siebird avatar Feb 26 '20 15:02 siebird

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.

Tam avatar Feb 26 '20 15:02 Tam

I'll poke around

siebird avatar Feb 26 '20 15:02 siebird

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?

billymedia avatar Oct 21 '20 11:10 billymedia