Page 1 of 1

Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Dec 28, 2017 4:23 pm
by NickBaggss
No matter what i do i get this

Unable to find the googleMapsKey.txt file with google maps api key. Make sure this text file is in the Install directory, if you do not have it there, re-download the main Meteotemplate file and you will find it there.

plus the api tutorial is out of date,

File is in correct directory, google generating bad keys? What am i missing?


3 hours spent so far, ready to chuck it all,

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Dec 28, 2017 4:31 pm
by Jachym
template/install/googleMapsKey.txt

If you do not have that file there you must have deleted it or it was not uploaded by your FTP because it is in the ZIP file you downloaded.

API tutorial - what is out of date, there is no "api tutorial"

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Dec 28, 2017 6:08 pm
by NickBaggss
the file is there, setup just cant find it,
api tutorial is the 3 page pdf step by step, google changed their page

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Dec 28, 2017 9:17 pm
by Jachym
They did not change it, but the problem is that they have several versions which they use, as far as I can see based on location and language you use. No clue why they do this. Make sure you have correct permissions for that file. Try 650 or 755.

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Fri Dec 29, 2017 11:41 am
by NickBaggss
Is there a way to manually enter googlemaps key? the file is there, setup just doesnt seem to see it.

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Fri Dec 29, 2017 12:21 pm
by Jachym
Hi,
unfortunately not, it needs to read it in that file, I mean you could hard-code it inside setup.php, however your changes will be reset whenever you update your template. You need to check the permissions. It is also likely that permissions are incorrect on more than just this file, which would cause errors. Try 640, 655, 755 and also check the folder permission, try 640 or 755 and various combinations.

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Apr 05, 2018 9:52 pm
by aznetcowboy
I am also having an issue with the Google Maps API. I have an API, but it is the only thing that shows up as being a problem in the Error Checker page. I get the following:

API file
API file not found. This means your template is not being updated.

Why is this happening. I show it in the Config file and in the googleMapsKey.txt file. The API is AIz********************************vIw.

It sure seems to me that the API should be seen okay. :?

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Fri Apr 06, 2018 6:09 am
by Jachym
API file is not the Google API, it is the api file that updates your template, so this means you have not yet set up the database updates.

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Sun Apr 08, 2018 11:45 pm
by aznetcowboy
When I go to the WIKI "Getting Google Browser API Key" topic, I downloaded it and printed it off. I tried to follow the instructions, but they don't match what is displayed at the link "https://developers.google.com/maps/docu ... et-api-key". This is where I get that long key which I cannot get it to work with my attempts to get Meteotemplate up and running. it just will not recognize the key provided by Google. :?

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Tue Apr 10, 2018 4:59 pm
by aznetcowboy
Okay, now I must ask what is supposed to be in the $googleMapsAPIKey field if it isn't what I find on Google after following the directions from the Wiki? If that is not correct, which seems to be the case as the MeteoTemplate keeps telling me I haven't an API key? :?:

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Tue Apr 10, 2018 7:53 pm
by Jachym
What error do you get and where

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Apr 12, 2018 9:27 am
by aznetcowboy
The "Check for Problems" Error Checker gives me the message "API file not found. This means your template is not being updated." This comes from the Template panel in the Meteotemplate Control Panel.

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Apr 12, 2018 6:05 pm
by Jachym
This is not the Google map api key. It is the Meteotemplate API file, so this means your page is currently not being updated by any software or CRON job.

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Thu Apr 12, 2018 10:09 pm
by aznetcowboy
I'm making a brazen assumption here that you know what the following means in the cronjob I set up.

5 * * * *
/home/########/domains/elgheko.us/public_html/mtp/update/update.php?password=****


I'm laying odds it is incorrect somehow. :(

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Fri Apr 13, 2018 9:18 pm
by Jachym
Try executing the update manually via http://.... in your browser. If that updates the page the problem is with the CRON, if not, the problem is somewhere else. This is important to try to find out where the problem is.

Re: Unable to find the googleMapsKey.txt file with google maps api key

Posted: Tue Jun 19, 2018 4:53 am
by ray666
I must be going stupid in my old age!!

By following the google link I get to a page that wants to charge me or I can do something from the Google Cloud Platform - whilst testing.
It looks nothing like the sample here http://www.meteotemplate.com/web/wiki/wiki3GB.php
Also the pdf on the wiki page (also here) http://www.meteotemplate.com/web/wiki/wiki3GB.php has no resemblance to the page I end up on. No doubt Google uses different pages for different areas!!

Here is a cut and paste of the page I go to in Australia:-
-------------------------------------------------------------------------------------------
Get API Key

To use the Maps JavaScript API, you must register your app project on the Google Cloud Platform Console and get a Google API key which you can add to your app.
Quick guide to getting a key
Step 1: Get an API Key from the Google Cloud Platform Console

Click the button below, which guides you through the process of registering a project in the Google Cloud Platform Console, activates the Maps JavaScript API and any related services automatically, and generates a generic, unrestricted API key.
Get Started

Notes:

Tip: During development and testing, you can register a project for testing purposes in the Google Cloud Platform Console and use a generic, unrestricted API key. When you are ready to move your app or website into production, register a separate project for production, create a browser-restricted API key, and add the key to your application.
Premium Plan customers: For production-ready apps, you must use a browser-restricted API key that is set up in the Google Maps APIs Premium Plan project created for you when you purchased the Premium Plan. Alternatively, you can use a client ID in combination with URL registration (instead of an API key).
For more information, see the detailed guides below for Standard Plan and Premium Plan customers.

Step 2: Add the API key to your application

When loading the Maps JavaScript API, substitute YOUR_API_KEY in the code below with the API key you got from the previous step.

<script async defer src="https://maps.googleapis.com/maps/api/js ... ck=initMap"
type="text/javascript"></script>


Has any one got any ideas?

Any help appreciated.

Ray