Page 1 of 1
Map will not displayed and Error "initMaps is not a function"
Posted: 24 Apr 2017, 19:23
by karo3
Hi,
I realized today that the map doesn't work anymore so I installed the new version of the component and the plugin 3.0.4. I set the api key but still it doesn't work.
It worked a few weeks before. The only thing that has changed since that was that I installed JCC. I deactivated JCC and other Plugins but this doesn't helped.
I checked the errors and found the lines:
function CancelEventPhocaMapPlgPM1(event) <!-- START: Snippets --><!-- Snippets Message: Das Snippet kann nicht eingefügt werden, weil es nicht existiert. --><!-- END: Snippets -->
function CheckPhocaMapPlgPM1() <!-- START: Snippets --><!-- Snippets Message: Das Snippet kann nicht eingefügt werden, weil es nicht existiert. --><!-- END: Snippets -->
}
I have no idea what I can try. I hope you can help me.
Re: Map will not displayed and Error "initMaps is not a function"
Posted: 27 Apr 2017, 01:40
by Jan
Hi, can I see the site where this occurs? Did you try to disable specific system plugins (if installed) and disable the modules (for test only to see, if they do not influence the Javascript of the map)?
Jan
Re: Map will not displayed and Error "initMaps is not a function"
Posted: 27 Apr 2017, 16:56
by karo3
Hi,
sorry I thought I send the URL: der-fusschirurg.de/praxis-berlin.html
Best Regards
Jules
Re: Map will not displayed and Error "initMaps is not a function"
Posted: 29 Apr 2017, 01:42
by Jan
Hi, I don't see any map on the site?
Jan
Re: Map will not displayed and Error "initMaps is not a function"
Posted: 29 Apr 2017, 08:39
by karo3
Yes, that's exactly the problem.
On the left side should be the map (I use the Plugin). And the only thing you can see is the form with from address and so on
Re: Map will not displayed and Error "initMaps is not a function"
Posted: 29 Apr 2017, 13:26
by Jan
Ok, I see now, yes, this is not standard:
Code: Select all
//<![CDATA[
function initMapsText() <!-- START: Snippets --><!-- Snippets Message: Das Snippet kann nicht eingefügt werden, weil es nicht existiert. --><!-- END: Snippets -->
//]]>
Do you use some specific system plugin (Snippets), which can influence the output of the site? This seems like such exists and it changes the output of the site.
Anyway there are more javascript errors which need to be solved first:
Code: Select all
praxis-berlin.html:22 Uncaught SyntaxError: Unexpected identifier
praxis-berlin.html:42 Uncaught SyntaxError: Unexpected identifier
praxis-berlin.html:114 Uncaught SyntaxError: Unexpected token function
praxis-berlin.html:167 Uncaught SyntaxError: Unexpected end of input
js?callback=initMapsText&key=AIzaSyAHPE8tv770pA-DgrOh2KET4-0XycdSEig:98 Uncaught kc {message: "initMapsText is not a function", name: "InvalidValueError", stack: "Error↵ at new kc (https://maps.googleapis.com/m…ey=AIzaSyAHPE8tv770pA-DgrOh2KET4-0XycdSEig:135:73"}
Yg @ js?callback=initMapsText&key=AIzaSyAHPE8tv770pA-DgrOh2KET4-0XycdSEig:98
(anonymous) @ js?callback=initMapsText&key=AIzaSyAHPE8tv770pA-DgrOh2KET4-0XycdSEig:135
google.maps.Load @ js?callback=initMapsText&key=AIzaSyAHPE8tv770pA-DgrOh2KET4-0XycdSEig:21
(anonymous) @ js?callback=initMapsText&key=AIzaSyAHPE8tv770pA-DgrOh2KET4-0XycdSEig:134
(anonymous) @ js?callback=initMapsText&key=AIzaSyAHPE8tv770pA-DgrOh2KET4-0XycdSEig:135