Map will not displayed and Error "initMaps is not a function"

Phoca Maps - displaying maps in Joomla! CMS
karo3
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 04 Jan 2012, 20:47

Map will not displayed and Error "initMaps is not a function"

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Map will not displayed and Error "initMaps is not a function"

Post 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
If you find Phoca extensions useful, please support the project
karo3
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 04 Jan 2012, 20:47

Re: Map will not displayed and Error "initMaps is not a function"

Post by karo3 »

Hi,

sorry I thought I send the URL: der-fusschirurg.de/praxis-berlin.html

Best Regards
Jules
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Map will not displayed and Error "initMaps is not a function"

Post by Jan »

Hi, I don't see any map on the site?

Jan
If you find Phoca extensions useful, please support the project
karo3
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 04 Jan 2012, 20:47

Re: Map will not displayed and Error "initMaps is not a function"

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Map will not displayed and Error "initMaps is not a function"

Post 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
If you find Phoca extensions useful, please support the project
Post Reply