- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
OpenCart 2.x. How to fix “Google API key is invalid” error on contacts page
July 9, 2015
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:
Let’s see how to resolve this issue:
-
Access your server using any ftp client software or FileManager provided by your host.
-
Navigate to ‘catalog/view/theme/themeXXX/template/common’ folder, where XXX is the number of your theme.
-
Open ‘footer.tpl’ file with any php/text editor:
-
Locate the following line:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyASm3CwaK9qtcZEWYa-iQwHaGi3gcosAJc&sensor=false"></script>
-
Replace it with the line below:
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
-
Save the changes. Refresh your website to see the changes:
Feel free to check the detailed video tutorial below:
OpenCart 2.x. How to fix “Google API key is invalid” error on contacts page