Farm-Forest module - Area - Error

Hi,
I have tried to install the farm_forest module. While the installation is reported successful, I encounter runtime error when I try to create an area. when I click the menu tab ‘Area’, I get the following error.

“The website encountered an unexpected error. Please try again later.”

The recent log show the following;

php 08/11/2020 - 13:15 Error: Call to undefined method Drupal\openlayers… bala
openlayers 08/11/2020 - 13:15 Unable to load CTools exportable Map (farm_forest… bala
php 08/11/2020 - 13:12 Error: Call to undefined method Drupal\openlayers… bala
openlayers 08/11/2020 - 13:12 Unable to load CTools exportable Map (farm_forest… bala
openlayers 08/11/2020 - 13:11 Unable to load CTools exportable Style (darkgreen). bala
openlayers 08/11/2020 - 13:11 Unable to load CTools exportable Style (green). bala

could you kindly help me to understand what us happening and guide as to how to resolve this error?

Welcome to the farmOS forum @BalaMeena!

What version of farmOS are you using? Based on the error messages it sounds like you still have the OpenLayers module installed, which was removed in farmOS 1.3. Also make sure you have the most recent commit of the farm_forest module’s 7.x-1.x branch.

And it should go without saying but always backup your code and database before attempting upgrades and it wouldn’t hurt to do that before installing new modules too.

Hi Mike,
Thanks.

Used the docker instructions. Docker-compose.yml. Assumed latest image will be pulled. Is that a valid assumption?

These instructions? https://farmos.org/development/docker/

When did you set it up originally? Just recently? Or months ago?

That should result in farmOS 7.x-1.x (latest development snapshot). However, if you had an old image cached locally then it would not be the latest. And farmOS does not automatically update. You need to perform updates manually: https://farmos.org/hosting/updating/

Mike,
Did it today. Will try the update and let you know. Thanks.

Strange - I would be curious what you see with the following command:

sudo docker image history farmos/farmos:7.x-1.x

The first line should show you the age of your farmos/farmos:7.x-1.x image on your computer. If you downloaded it for the first time today, then it should be relatively new.

Mike,
The image I see is the farmos/farmos:latest from dockerhub.

History for this image shows ‘created 6 month ago’.

I have an older image - which I pulled 16 months ago.

Actually, the yml does all the tasks.
Will remove all images and try again tomorrow and report.

Ah ok, you are using farmos/farmos:latest, not farmos/farmos:7.x-1.x. The most recent farmos/farmos:latest was created 3 months ago (https://hub.docker.com/layers/farmos/farmos/latest/images/sha256-2421b87d547931d13f19501a04c3030b6600b3e6ee6616fe843ef10af840aeae?context=explore)

So you should pull the more recent one via:

sudo docker pull farmos/farmos:latest

Be sure to follow the directions here for updating: https://farmos.org/hosting/docker/

And backup first! :slight_smile:

Hi Mike,

Pulled the latest dev docker image, as per your suggestions.
All went well except one deprecated warning ( near 22/30 modules) during installation/set up.
The Forest plan area error did not occur.

Have a suggestion. The planning module currently expects the plan to enter the absolute date. While this will help, populating from a template data (in a csv file)with starting date, duration for each stage may help in terms of productivity.

a sample format enclosed.

1 Like

Thanks for the suggestion @BalaMeena - is this referring to the farm_forest module? Or the farm_crop_plan module? It looks/sounds more like a crop planning idea? Just want to make sure I understand.

We have a separate forum post for the Crop Planning module development over here if you’d like to comment on that: Crop Planning Module

Yes,Mike.
It is related to crop planning. Will follow that thread.

1 Like