zhgmObjMgr.setPlacemarkGroupList is not a function

  • mr_sarge
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 9 months ago - 6 years 9 months ago #11231 by mr_sarge
Hi,

I updated my Zh GoogleMap component from 7.0.2.4 to 8.2.0.3 and my map won't load anymore.

I have an error in the dev console:
Uncaught TypeError: zhgmObjMgr.setPlacemarkGroupList is not a function
    at carte-2017:227



Do you have any idea why i'm having this error?

Thank you
Attachments:
Last edit: 6 years 9 months ago by mr_sarge.

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

More
6 years 9 months ago #11232 by Dima
Hi.
Probably your have cache problem. Try to clear joomla cache. Or, may be you have installed some extension to optimize loading pages (cache javascript files or something like this). Try to clear its cache too.

Don't forget support my developments: post review in JED , donate , help with translation ;)

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

  • mr_sarge
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #11277 by mr_sarge
Sorry for the late reply.

I tried it but it didn't work. I decided to roll back from a backup for now. I'll probably reinstall it from scratch when I have more time.

Thank you.

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

More
6 years 7 months ago - 6 years 7 months ago #11319 by Dima
Hi.
Yesterday my friend upgrade to last 8.2.4.0 version and got it. By our investigation we found what can caused.
- check file on server www/components/com_zhgooglemap/assets/js/objectmanager-min.js
--- this file contains setPlacemarkGroupList function
- when open web-page source and click on script link on objectmanager-min.js file
--- this file in page source doesn't contain this function

We cleared cache and so on - but this error still appeared.
After that my friend tell me, that the provider where the server is runing use CDN Cloud Flare
And the provider delete CDN Cache and force to reload whole site.
Now it works

On the other his site after upgrade all works immediately (it running without CDN).

Probably your problem like this (CDN cache).

Don't forget support my developments: post review in JED , donate , help with translation ;)
Last edit: 6 years 7 months ago by Dima.

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

More
6 years 5 months ago #11341 by Martens
Hi Dimma,

I have had the same problem with this error message. Once possible solution had total clear of downloaded cache in browser.
I have tried to another solution. I have inserted link to JS files from Zh google maps into a template index.php AFTER section head and include a dynamic parameter -see attached code segment.

Finall HTML code:
<script src="/prevedig_cz/components/com_zhgooglemap/assets/js/common-min.js?20171112111631" type="text/javascript"></script>
<script src="/prevedig_cz/components/com_zhgooglemap/assets/js/objectmanager-min.js?20171112111631" type="text/javascript"></script>

PHP code:
<script src="<?php echo $this->baseurl ?>/components/com_zhgooglemap/assets/js/common-min.js?[b]<?php echo date('YmdHis')?>[/b]" type="text/javascript"></script>
<script src="<?php echo $this->baseurl ?>/components/com_zhgooglemap/assets/js/objectmanager-min.js?[b]<?php echo date('YmdHis')?>[/b]" type="text/javascript"></script>
The same solution (but with some hexa string parameter) use JCE etc.

My question is- is it possible to implement this or similar solution - I belive that it will solve described problem.

BR

Martin

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

More
6 years 5 months ago #11343 by Dima
Hi Martin
As I can see like
/objectmanager-min.js?20171112111631
then I can tell - it is optimizer.
Where - some joomla extension or CDN - I can't tell, but I can predict optimization name of my js-file.
As for adding some tags - check your template, probably it has some fields for customization (entering tags), but check - whether or not your template do this optimization, ie it can produce this files to cache.

Don't forget support my developments: post review in JED , donate , help with translation ;)

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

Time to create page: 0.115 seconds

Donate


Go to top