Categories

Featured templates

OpenCart 2.x. How to fix “Google API key is invalid” error on contacts page

Daniel Morales July 9, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial will show you how to fix "Google API key is invalid" error in your OpenCart template.

OpenCart 2.x. How to fix “Google API key is invalid” error on contacts page

The error usually looks like on the screenshot below:

How_to_fix_Google_API_key_is_invalid_error_on_contacts_page_1

Let’s see how to resolve this issue:

  1. Access your server using any ftp client software or FileManager provided by your host.

  2. Navigate to ‘catalog/view/theme/themeXXX/template/common’ folder, where XXX is the number of your theme.

  3. Open footer.tpl’ file with any php/text editor:

    How_to_fix_Google_API_key_is_invalid_error_on_contacts_page_2

  4. Locate the following line:

    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyASm3CwaK9qtcZEWYa-iQwHaGi3gcosAJc&sensor=false"></script>
  5. Replace it with the line below:

    <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
  6. Save the changes. Refresh your website to see the changes:

    How_to_fix_Google_API_key_is_invalid_error_on_contacts_page_3

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to fix “Google API key is invalid” error on contacts page

Top OpenCart Themes
This entry was posted in OpenCart Tutorials and tagged api, error, google, invalid, key, map, opencart. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket