If you are running VikAppointments 1.6 (or higher), you have just to specify the Google API Key from the configuration of the program.
1.6

If you are getting the error Oops! Something has gone wrong or Google Maps is not loading properly, it may means that it is needed to include the Google API Key obtained from your Google Console.

If you haven’t obtained yet an API Key, you can get it from here:
https://developers.google.com/maps/documentation/javascript/get-api-key

The API Key seems to be required for all the customers that are using Google Maps since July 2016.
Considering that VikAppointments doesn't own yet a setting to specify the Google API Key, you have to include this value via code.

In summary, you have to open the file /components/com_vikappointments/helpers/lib.vikappointments.php and change the line 1099:

$vik->addScript('https://maps.googleapis.com/maps/api/js');

into the code below:

$vik->addScript('https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY');

and replace YOUR_API_KEY with your real Google API Key.

If you are still getting this error, probably is related to the API Key you are using. Here's a list of possible errors:

  • the website domain is not registered on your Google Console
  • you exceeded the maximum number of requests per day
  • the API Key is not valid.

However, the error should be evaluated by opening the Javascript console of your browser, where a description of the error is reported. Usually, the error message contains also a link to Google to check the reason of the issue.

Last Update: 2019-05-09 09:48
Helpful?
75% of people found this helpful.
This site uses cookies. By continuing to browse you accept their use. Further information