Alpha users will experience troubles in the update from the 8.x-2.0-alphaX to the 8.x-2.0-beta1.
Beta1 has been a great change and improvement in the module: since the Beta1 the module is able to set (and work with) Plugins Options, properly Reverse Geocode, work more correctly (without apparent crashes) in the field Formatters and finally integrate with the Address module.

Due to important schema and configuration changes in its updated model, and the lack of proper update path to this new beta1 version (sorry for this) the simple update of its code from the alpha to the beta1 will certainly produce crashes.
So it is strongly suggested to reinstall the module from scratch and reproduce the your Geocoders setup both in the Fields widgets and in the Formatters.

For those who can't do that, here is a more fluent update path:

  1. apply the attached patch;
  2. run application update (from update.php or with $drush updb);
  3. visit and re-save the Geocoder configuration page (admin/config/system/geocoder), eventually with your plugins options;
  4. go and set them again all the geocoder settings for the interested Fields Widgets and Fields Formatters;

Everything should work properly from there on, with the new beta1.
If not let us know. We might further amend this patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

itamair created an issue. See original summary.

itamair’s picture

Issue summary: View changes
FileSize
6.72 KB
itamair’s picture

itamair’s picture

itamair’s picture

Title: Update Instruction from AlphaX to Beta1 - Patch provided » Update Instructions from AlphaX to Beta1 - Patch provided
itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
itamair’s picture

Issue summary: View changes
itamair’s picture

anandangalig’s picture

Hi there,

I am using the 8.x-2.0-alpha5+6-dev version of Geocoder, but trying to upgrade to beta1. So, I followed your instructions above:

  1. downloaded 8.x-2.0-beta1
  2. applied the patch
  3. ran /update.php
  4. re-saved admin/config/system/geocoder
  5. re-saved my content type field settings
  6. cleared cache

And, yet I am still seeing the

Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "Field is unknown." at /.../www/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php line 805

Am I missing something here?

itamair’s picture

did you run the 4th point ("go and set them again all the geocoder settings for the interested Fields Widgets and Fields Formatters")
for ALL the Fields Widgets and Fields Formatters?
It seems some old (alpha versions) 'third_party_settings' still remains in your Fields configurations.

anandangalig’s picture

Hey itamair,

I appreciate your response!

I definitely checked my Geolocation field to make sure it was using the appropriate settings:
settings screen shot

Still, I am not able to save my Location node. It crashes with a notice:

Notice: Undefined index: geocode_field in geocoder_field_entity_presave() (line 139 of /../www/modules/contrib/geocoder/modules/geocoder_field/geocoder_field.module)

PS: I would be happy to test things out if it helps your efforts

itamair’s picture

tnx @hoppin_levels for your availability ... but there is nothing more to test on the beta1 and its update process from alpha,
because:
- extensive tests have been run, and if you still experience issues it might depend on your specific configurations;
- the beta2 release has been issued yesterday, with extensive releases notes on the upgrade paths from both beta1 and alphaX;

I kindly suggest you to reinstall the last release of the module, and reset from scratch your configurations (that shouldn't be that much as Geocoder wasn't even able to deal with Plugin Options before the beta 1).

I am closing this, as reviewed from community / outdated.

Please open new issues on any that arise on the new beta2 release (or dev branch) of Geocoder.

itamair’s picture

Status: Needs review » Closed (outdated)
xpersonas’s picture

I know this is a closed ticket. But for what it's worth, I've hit the same issue as #12. I have a site with tens of thousands geocoded locations. Debating how to handle this going forward, or if I'll have to continue using alpha indefinitely.

Since opening a new ticket would be duplication, and adding to a closed ticket is frowned upon, I'm not sure what the best strategy is. However, I thought I would add my comment here in case anyone else encounters this and finds a solution.

Worth mentioning, upgrading from alpha5 to alpha8 to beta1... at no point do I have any database updates that need to be made. So while I followed the steps mentioned above, for what ever reason, there was never an update to be applied.