Trouble adding areas with using KML files

Hello everyone,

I’m new to this platform, and I’m trying to set up my farm on it.

I’m currently following the directions here to add my fields as areas. I managed fine when manually drawing the geometry, but I can’t import them with KML files. Here is what happens:

  1. I scroll down to ‘file attachments - > files’ and browse for my klm file and upload it. Page sort of refreshes and shows my file as uploaded.
  2. I scroll up and click ‘Find using files field’. Map refreshes but no polygon is added, ‘Geometry’ text box is still empty.

What am I missing here?

I’m on Windows 10 and Chrome Version 86.0.4240.198 (Official Build) (64-bit)
I’m not allowed to attach kml files here so I put it up here if anyone wants to have a look.

1 Like

Welcome to the farmOS community forum @volc! Thanks for reporting this - I’ve heard the same issue from another person recently. It may be a bug that has surfaced. Not sure what has changed that would cause it - we should open a new bug report and investigate.

1 Like

Ah ha! This turned out to be a bug introduced in a new version of the Geocoder module: https://www.drupal.org/project/geocoder/issues/3181471

Luckily, someone else already diagnosed it and provided a patch that fixes it! :slight_smile:

I have added this patch to farmOS: https://github.com/farmOS/farmOS/commit/323da428ab825de91a397c8db2f8956c17184770

And I have deployed it to Farmier-hosted sites. So should be all fixed!

@volc if you are hosting on Farmier, give it another try and see if it works for you now. If you are self-hosting, the easiest thing to do might be to manually apply the patch above. Let me know if you need some instructions for that.

Thank you for the fix @mstenta, I am indeed on Farmier and I just tried, everything seems to be working now.

1 Like