Maps won't load many errors

1 month 3 weeks ago #3728 by aussieute
Maps won't load many errors was created by aussieute
Lots of errors here.
www.smallaire.com.au/agents
The page credentials, unlike the console message, has been authorized.

Depending on the browser I use I get different errors and most are not common to each other.

Unsure if this is Google related or not

48 versions of this
<em>modernizr.touch.js:4 Refused to load the font 'chrome-extension://niloccemoadcdkdjlinkgdfekeahmflj/fonts/ProximaNova-Reg-webfont.woff' because it violates the following Content Security Policy directive: "font-src * data:".
(anonymous) @ modernizr.touch.js:4</em>

Thanks

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #3730 by aussieute
Replied by aussieute on topic Maps won't load many errors
Have been chasing down this issue with Google Support

You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors. js:122:51
rh
https://maps.googleapis.com/maps/api/js:122:51
zh
https://maps.googleapis.com/maps/api/js:120:54
google.maps.Load
https://maps.googleapis.com/maps/api/js:18:5
<anonymous>
https://maps.googleapis.com/maps/api/js:200:420
<anonymous>
https://maps.googleapis.com/maps/api/js:23:2
This primary error needs to be addressed before I can get any further with Google Maps support.
What can be done to resolve this please?

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 4 days ago #3731 by sysgenmedia
Replied by sysgenmedia on topic Maps won't load many errors
Just visited your site and not getting any of those issues.

The main issue im seeing now is you have a JS error as your google analytics script is missing a parantheese after your tag id:

<code>
gtag('config','UA-XXXXXX-1'</script>
</code>
Last edit: 1 month 4 days ago by sysgenmedia.

Please Log in or Create an account to join the conversation.

More
1 month 6 days ago #3732 by aussieute
Replied by aussieute on topic Maps won't load many errors
Firstly apologies for the slow response as I'm not getting any updates via the forum to say you have responded.
And thanks for walking through this frustration for both of us.

Where I'm at is I'm rebuilding the site given these errors and the url I'm now working on is www.smallaire.com.au/2018/

I have completed a reset and the previous errors are not present following further discussions with Google
When this page loads ... www.smallaire.com.au/2018/agents ... the map looks ok. Which is probably what you are seeing.
The number 27, in yellow is for "Horsham"
Placing that name in the search box provides a quick flash of the list of 27 and then below the map "No Results" appears and the map has lost the highlights for any locations.

View Page Source also shows the following which may or may not be relevant
<script type="text/javascript">
 
 
		var NO_RESULTS			= "No Results.";
		var SEARCH_RESULTS_FOR 	= "Search Results for:";
		var MI 					= "mi";
		var KM 					= "km";
		var PHONE 				= "Phone";
		var WEBSITE 			= "Website";
		var GET_DIRECTIONS 		= "Get Directions";
		var FROM_ADDRESS 		= "From Address";
		var GO 					= "Go";
		var DIR_EXAMPLE 		= "(e.g. 1 Infinite Loop, Cupertino CA 95014)";
		var VISIT_SITE 			= "Visit Site";
		var CATEGORY 			= "Category";
		var TAGS 				= "Tags";
		var DID_YOU_MEAN 		= "Did you mean?";
		var LIMITED_RESULTS 	= "You have exceeded the maximum number of searches in 2 Months. Please try again later.";
		var JOOMLA_ROOT			= "/2018";
		var COM_STORELOCATOR_GEO_SEARCH = "Places Near You…";
 
		var show_all_onload 		= 1;
		var map_auto_zoom 			= false;  
		var map_directions  		= false;
		var google_suggest 			= true; 
		var map_center_lat 			= -36.7403545;
		var map_center_lon 			= 142.1862475;
		var map_default_zoom_level 	= 5;
		var catsearch_enabled  		= true;
		var featsearch_enabled 		= true;
		var tagsearch_enabled  		= false;
		var map_units 				= 0;
		var isModSearch 			= false;
		var hide_list_onload  		= true;
		var list_enabled  			= true;
		var map_type_id 			= google.maps.MapTypeId.ROADMAP;
		var scroll_wheel			= true;
		var cat_mode				= 1;
		var tag_mode 				= 0;
		var menuitemid 				= 509;
		var map_include_terrain		= false;
		var map_theme  				= 0;
		var regional_bias 			= "";
		var sl_settings 			= {"map_units":"0","show_all_onload":"1","marker_pref":"tags","sm_username":"aussieute","map_directions":"0","map_zoom_wheel":"1","map_include_terrain":"0","map_view_state":"ROADMAP","map_cluster_method":"MarkerCluster","map_height":"400","hide_list_onload":"1","map_auto_zoom":"0","map_default_zoom_level":"5","map_center_lat":"-36.7403545","map_center_lon":"142.1862475","search_enabled":"1","featsearch_enabled":"1","radiussearch_enabled":"1","list_enabled":"1","google_suggest":"1","radius_list":"10,25,50,100","default_radius":"25","max_search_results":"250","map_max_search_zoom":"13","base_country":"AU","searchlog_enabled":"0","search_limit":"0","search_limit_period":"-2 Months","cust1_label":"Air Conditioners","cust2_label":"Airseeders","cust3_label":"Grain Aeration","cust4_label":"Stirring Fans","cust5_label":"Jumbo","keep_data":"1","show_copyright":"0","auto_detect_line_endings":"1","include_jquery":"1","include_bootstrap":"1","include_css":"1","google_maps_v3_api_key":"AIzaSyAKXPBAK0P5EpEfqs1AA0ZlI1PQQekTs3g","show_page_heading":null,"geo_location":"1","show_all":"1","cat_mode":"1","cat_sort":"text ASC","show_all_tags":"1","tag_mode":"0","tagmode_and":"0","tag_sort":"text ASC","load_order":"lp.name","load_dir":"ASC","search_order":"distance","search_dir":"ASC","name_search":"0","namesearchmode":"0","map_theme":"0","layout_theme":"0","field_bubble_featured":"0","field_bubble_address":"1","field_bubble_fulladdress":"0","field_bubble_category":"0","field_bubble_phone":"1","field_bubble_url":"0","field_bubble_url_target":"_blank","field_bubble_email":"1","field_bubble_facebook":"0","field_bubble_twitter":"0","field_bubble_tags":"0","field_bubble_custom1":"0","field_bubble_custom2":"0","field_bubble_custom3":"0","field_bubble_custom4":"0","field_bubble_custom5":"0","field_sidebar_featured":"0","field_sidebar_address":"1","field_sidebar_fulladdress":"1","field_sidebar_category":"1","field_sidebar_phone":"1","field_sidebar_url":"0","field_sidebar_url_target":"_blank","field_sidebar_email":"0","field_sidebar_facebook":"0","field_sidebar_twitter":"0","field_sidebar_tags":"0","field_sidebar_custom1":"0","field_sidebar_custom2":"0","field_sidebar_custom3":"0","field_sidebar_custom4":"0","field_sidebar_custom5":"0","menu_text":1,"menu_show":1,"page_title":"Smallaire Agent Locator","menu-meta_description":"Locate a Smallaire agent across Australia","secure":0,"zenmenu_icon":"-1","zenmenu_group":"0","zenmenu_column":"1","zenmenu_fullwidth":"0","zenmenu_item_title":"1","page_description":"Custom manufactured air movement systems for residential, commercial and agricultural industries. We design, manufacture and install evaporative air-conditioning systems and fans for agricultural purposes and supply reverse cycle air-conditioning systems.. Smallaire the air movement specialists","page_rights":null,"robots":null};
 
	</script>

Please Log in or Create an account to join the conversation.

More
1 month 5 days ago #3733 by sysgenmedia
Replied by sysgenmedia on topic Maps won't load many errors
Okey, now I see an error.

Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: developers.google.com/maps/documentation/javascript/get-api-key

It looks like the Key you are using isn't setup to use Google's Geocoding Service.

I would recommend starting fresh and getting a new key here: cloud.google.com/maps-platform/

Please Log in or Create an account to join the conversation.

More
1 month 5 days ago #3734 by aussieute
Replied by aussieute on topic Maps won't load many errors
The key provided is what is being used.
I have generated 3 so far and all are having the same outcome hence my queries here.
I've regenerated another about 4 hours ago and no change

Please Log in or Create an account to join the conversation.

More
1 month 4 days ago #3735 by sysgenmedia
Replied by sysgenmedia on topic Maps won't load many errors
Im seeing several errors, but two in particluar are the cause.

First you are now getting a Google Maps JavaScript API error: ExpiredKeyMapError. see:
developers.google.com/maps/documentation...xpired-key-map-error


The other issue im seeing is you have a JS error as your google analytics script is missing a parentheses after your tag id:
gtag('config','UA-XXXXXX-1'</script>

Please Log in or Create an account to join the conversation.

More
1 month 4 days ago #3736 by aussieute
Replied by aussieute on topic Maps won't load many errors
When reviewing this issue can you please refer ONLY to smallaire.com.au/2018/agents .
This site DOES NOT have any Google analytics tracking on it and is NOT an issue.

The errors I am getting on the link above are as follows ...



I have generated a new API key which was completed 24 hours ago so that new key should have resolved.
This new key has not been added to the other URL you have been viewing so please ignore.
I have made contact with Google Cloud Support again to ascertain what is happening at their end.
Any further thoughts?
Attachments:

Please Log in or Create an account to join the conversation.

More
1 month 3 days ago #3737 by sysgenmedia
Replied by sysgenmedia on topic Maps won't load many errors
Yes, still getting that Invalid key error. Looks like you have a space before the key. Try deleting that and see if it works.

Please Log in or Create an account to join the conversation.

More
1 month 3 days ago - 1 month 3 days ago #3738 by aussieute
Replied by aussieute on topic Maps won't load many errors
Oh wow.
Will inform Google as I used their "copy" to paste link.
Just rechecked and yes it generates that space. Hmmmmm

Thanks so much ... well picked.
You are a champion

Now to see how successful I am at getting Google to fix their lack of https on the pin image links given their ongoing demands of depreciating sites without https.

"Loading mixed (insecure) display content “ maps.google.com/mapfiles/ms/micons/green.png ” on a secure page"

Oh a heads up ... something in the css on this forum isn't working as it should ... many buttons are white and the mouseover text is so light it's hard to read.

======= Edit ============
All appears ok ... however when we fix one thing another pops up.

The map is loading as it should now
The number 27, in yellow. is for "Horsham"
Placing that name in the search box provides a quick flash of the list of 27 and then below the map "No Results" appears and the map has lost the highlights for any locations.

Is this error the cause?
Geocoding Service: This API project is not authorized to use this API.  For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key js:51:50
_.Gc
https://maps.googleapis.com/maps/api/js:51:50
d
https://maps.googleapis.com/maps-api-v3/api/js/34/16/geocoder.js:2:299
c
https://maps.googleapis.com/maps-api-v3/api/js/34/16/common.js:47:82
<anonymous>
https://maps.googleapis.com/maps/api/js/GeocodeService.Search:1:22
Last edit: 1 month 3 days ago by aussieute.

Please Log in or Create an account to join the conversation.

More