×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Map not loading

Map not loading 8 years 9 months ago #15743

  • Aarron
  • Aarron's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Hi All,

I am having trouble getting the map to load, my error reporting console is showing the following errors:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindow.getComputedStyle]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: maps.gstatic.com/intl/en_us/mapfiles/api-3/8/6/main.js :: lm :: line 62" data: no]

Error: syntax error
Source File: www.strikehook.com/more/hotspots
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

Any idea on what is caussing it? The page is currently only available for admin, so if you would like access, I can send you some log in details.

Cheers

Re: Map not loading 8 years 9 months ago #15748

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Arron,
The only reasons for the map not loading are 2:
1. Js error on the page (most of the time caused by jquery)
2. Broken ajax response (most of the time caused by improperly configured cache plugins)

The easiest way to debug this is firebug -> you turn it and look for the error messages and try to correct them.

Since I can't see the page I can't see what error messages you have and there is no way for me to tell you what might be not properly configured on your site.

Please start a private ticket and provide me access to that page.

Kind regards,
Daniel

Re: Map not loading 8 years 9 months ago #15773

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, so here is my theory about the problem:

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindow.getComputedStyle]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: maps.gstatic.com/intl/en_us/mapfiles/api-3/8/6/main.js :: lm :: line 62" data: no]
initialize(index="initialize", value=function())script-1.2.js (line 30)
each(object=Object { extend=function(), initialize=function()}, callback=function(), args=undefined)joms.jquery.js (line 649)
initialize()script-1.2.js (line 28)
(?)()script-1.2.js (line 3319)
resolveWith(context=Document hotspots, args=[function()])joms.jquery.js (line 1008)
ready(wait=undefined)joms.jquery.js (line 436)
DOMContentLoaded()joms.jquery.js (line 915)
[Break On This Error]

value.initialize();


script-1.2.js - is part of jomsocial. Jomsocial also includes jquery -> they do something that breaks google maps -> as you can see from the output the problem starts from the jquery code.

Can you for example try to disable the mod_hello on the hotspots page to see if this will solve the problem? (i think that the mod_hello is the only thing that includes the jomsocial js right now, but if it isn't try to disable everything that includes it - just for test - we need to isolate the problem first before I can offer a solution)

Regards,
Daniel

Re: Map not loading 8 years 9 months ago #15783

  • Aarron
  • Aarron's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Hi Daniel,

I have disabled all the modules that would be calling javascript and the map is still not loading.

I have hard coded some scripts to be called from the template, could any of these be the problem?

<script type="text/javascript" src=" ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js "></script>
<script type="text/javascript" src=" ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js "></script>
<!-- the mousewheel plugin - optional to provide mousewheel support -->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.mousewheel.js"></script>
<!-- the jScrollPane script -->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/jquery.jscrollpane.min.js"></script>

Re: Map not loading 8 years 9 months ago #15784

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yes! That could be it. Read this here:
api.jquery.com/jQuery.noConflict/

When you load jquery, you should immediately after that set it in noconflict mode otherwise you get conflicts with other libraries.

Kind regards,
Daniel

Re: Map not loading 8 years 9 months ago #15805

  • Aarron
  • Aarron's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Fixed the problem by changing to jquery 1.7.2 instead of 1.4.2 and 1.4.4

The issue was with 1.4.4

Thanks for all your help :)

Re: Map not loading 8 years 9 months ago #15806

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Awesome! Happy you that managed to solve that one!

Re: Map not loading 8 years 9 months ago #15933

  • Marco Giustini
  • Marco Giustini's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I reinstalled Joomla upgrading to 2.5 but Hotspots map still doesn't load. I'll open a ticket to give you admin access.
  • Page:
  • 1
Time to create page: 0.112 seconds