Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Steve Frise
  2. Form2Content Lite & Pro
  3. Thursday, 06 December 2018
  4.  Subscribe via email
F2C Pro: 6.12.0
Joomla!: 3.9.1

Hi there, thanks again for the amazing work on F2C, it's really a life saver. I apologize in advance for the long, detailed question below.

I am having an issue with the Geocoder field and the new Google API key situation. I signed up for a Google Cloud Account and enabled billing and after inserting my API key into the Geocoder Plugin (in Joomla! Plugin Manager) the front end of the site is displaying the map and address correctly. At first the F2C form was not displaying the map correctly but I followed the advice in this forum post and was able to get it working however the map will not accept any input for the Lat/Lon or any address at all. I am getting the following notice under the map in the F2c form:

The geocoding process could not lookup the location.

And the console is giving me:

Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key

So the address I have already entered in (some time ago, prior to all this new Google API key nonsense) are displaying correctly but I am unable to enter any new address or change any of the existing ones (the form will not even save if I have the Geocoder field as a required field).

Here are the things I have tried so far to fix this:

1.) Creating a second alternate Google API key just for the F2C form. This gave me the exact same error.
2.) Made sure the Google Map JS is enabled and unrestricted. I did also try specifically allowing my url and that also gave me the same error.

On top of all this I did some research and noticed a few things about the Geocoder plugin itself, it seems it has been removed from the Joomla! plugin database because of a malicious update vulnerability:

https://extensions.joomla.org/extension/maps-a-weather/maps-a-locations/google-maps-by-reumer/
https://vel.joomla.org/live-vel/2031-google-maps-by-reumer-3-5-malicious-update

I guess my questions is are there any known ways to fix this problem and if not is there a planned replacement for Mike's Geocoder plugin? Again the issue is the map is displaying correctly but is unable to accept any input. It is really a great feature to have with F2C and I hope it stays but it looks doubtful to me given the state of the plugin and Google's new attitude towards its API's.

Any advice you could give me would be greatly appreciated, thank you!
Responses (1)
Accepted Answer Pending Moderation
Hi Steve,

Glad you are still enjoying Form2Content!

There are several things.
1) Have you added payment details in Google Maps and linked them to the project?

2) Make sure you use our latest release (6.17.4) as a lot has changed in Joomla. Please note that from 6.16 to 6.17 there has been a big update in code. I suggest to first upgrade to 6.16 before updating to 6.17.4 just in case. And of course make some backups using akeeba during the steps.
https://www.form2content.com/changelog/pro-joomla3

3) It's relatively easy to include the custom coding for loading Google Maps with a KML feed. There is plenty of documentation on Google and I have made an example here: https://demo.form2content.com/extensions/form2content-kml-feeds

Hope this helps!

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.