548 Posts
joomleb
6 years ago
4
Topic

Hi guys, 

PHP 7.1.13 + Joomla 3.8.3 + Seblod 3.15.0 + Address to Coordinates 1.3.3

Updating the plugin to Address to Coordinates 1.4.0: At the end using Seblod Updater I updated the plugin with success, but before through Joomla updater I had back the Error messages:

Warning: Update path does not exist. 

Message: Error updating COM_INSTALLER_TYPE_TYPE_.

1 - Please, I don't remeber, Is that the right behaviour and/or should work also upgrading through the Joomla updater?



Once updated, saving a user profile, I have back: 

An error has occurred

0 API keys with referer restrictions cannot be used with this API.
/... .../libraries/joomla/google/embed/maps.php:813
Call stack
#FunctionLocation
1()JROOT/libraries/joomla/google/embed/maps.php:813
2JGoogleEmbedMaps->geocodeAddress()JROOT/plugins/cck_field/address_to_coordinates/address_to_coordinates.php:185
3plgCCK_FieldAddress_To_Coordinates::onCCK_FieldBeforeStore()JROOT/libraries/cms/cck/cck.php:32
4JCck::callFunc_Array()JROOT/libraries/cck/base/form/store_inc.php:268
5include_once()JROOT/administrator/components/com_cck/models/form.php:22
6CCKModelForm->store()JROOT/administrator/components/com_cck/controllers/form.php:60
7CCKControllerForm->save()JROOT/libraries/src/MVC/Controller/BaseController.php:710
8Joomla\CMS\MVC\Controller\BaseController->execute()JROOT/administrator/components/com_cck/cck.php:32
9require_once()JROOT/libraries/src/Component/ComponentHelper.php:381
10Joomla\CMS\Component\ComponentHelper::executeComponent()JROOT/libraries/src/Component/ComponentHelper.php:356
11Joomla\CMS\Component\ComponentHelper::renderComponent()JROOT/libraries/src/Application/AdministratorApplication.php:101
12Joomla\CMS\Application\AdministratorApplication->dispatch()JROOT/libraries/src/Application/AdministratorApplication.php:159
13Joomla\CMS\Application\AdministratorApplication->doExecute()JROOT/libraries/src/Application/CMSApplication.php:267
14Joomla\CMS\Application\CMSApplication->execute()JROOT/administrator/index.php:51

2 - Before to post on GitHub, please, Do you have the same experience ?

Am I forgivig anything ?!?

Get a Book for SEBLOD
548 Posts
joomleb
6 years ago
0
Level 1

Hi guys, 

seem something like this issue and this issue on stackoverflow.

The plugin do not run, and I have back the error posted, with the Google Maps Geocoding API Credentials setted as:


Restrictions:

  - Key Restriction: HTTP Referrers (web sites)

  - Accept requests from these HTTP referrers (websites): *.mydomain.com*


The plugin could run switching the Restrictions to:

  - Key Restriction: None


As far as I know Credentials Restrictions should be a must...

4229 Posts
Kadministrator
6 years ago
2
Level 1

This is a limitation coming from Google side, not much we can do about it.

548 Posts
joomleb
6 years ago
1
Level 2

Hi Klas, 

trying to learn more about it and understand how to manage it with Seblod Address to Coordinate plugin... Please:

1Here on stackoverflow, What does "Alternatively, you can continue using a browser key and geocode client-side (JavaScript), then return the result to the backend via ajax" mean ? Something that can be useful to us ?

2 - As far as I understand Google want restrictions, but for the Google Map Geocoding API, now, want only an IP restriction and do not accept anymore the HTTP restriction, Am I right?

3Here, What does "Before you switch the API key restriction type from HTTP referer to IP address, ensure that all the APIs that use the API key are web service APIs" mean exactly ? What mean with "web service APIs" ?

4 - So, the only way to run the Address to Cordinate plugin is to set the Google Map Geocoding Credentials Restriction to "None" and / or an "IP" restriction, right ?

4229 Posts
Kadministrator
6 years ago
0
Level 3

Address to coordinates uses webservice to get encoded address - this means query is done server side and since http refferer makes no sense, as it is always your server who sends the request to google. But plugin also uses javascript client side library so you will actually neeed 2 keys with 2 different restrictions - this is an option that was addded in last version released few days ago: https://www.seblod.com/store/extensions/920

Get a VIP membership