If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

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

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