I hope someone encounters this problem. I am new to all this, so I apologize in advance for my knowledge.
I currently have the Google Maps API on my Wordpress site. When I search on a site, that is, a page containing a Google Map, the listing results were not found. After further investigation, I was informed that:
There is a JS error on my website coming from the Maps API. Chrome Dev console shows:
js? key = ++ AIzaSyC_GzbCPmMM8Jme9ZAi-IbKOdaXo_SfK_I + & libraries = places & ver = 3b47f53 ......: 34 InvalidValueError: setComponentRestrictions: not an object
Original submission of the page that allows displaying Google JS card
https://maps.google.com/maps/api/js?key=++AIzaSyC_GzbCPmMM8Jme9ZAi-IbKOdaXo_SfK_I+&libraries=places&ver=3b47f534942a304aaad0d1a98d2531f8
the "& ver = 3b47f534942a304aaad0d1a98d2531f8" part (it is added to each JS file) should not be present, so we assume that it should come from some plugin that I have, which may cause this problem.
Before you start disabling every plugin on my Wordpress site, has anyone encountered this error before?
Any help would be greatly appreciated.
Thank,
Justin
source
share