JS errors – maps not working

This topic contains 2 replies, has 2 voices, and was last updated by  Paolo 9 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #23386

    pawon
    Free User
    Post count: 34

    Hi,

    I’m getting JS errors on my pages.

    On non GD pages I get the errors (example:http://www.air-compressor-guide.com/troubleshoot/)

    
    
    "You have included the Google Maps API multiple times on this page. This may cause unexpected errors."
    "TypeError: c.curCSS is not a function"
    "TypeError: a is undefined"

    On the GD listings page (example: http://www.air-compressor-guide.com/businesses/united-states/ohio/baltimore/consultation/air-power-usa/) I only get the Typererror errors, but the maps are not working and the tabs don’t arrange as tabs until you click one.

    For the non-gd pages, I’m sure these errors come from the GD plugin, because they disappear when I disable the plugin.

    I switched to a fresh theme, but I had exactly the same problems with my previous theme!

    Thanks,

    Pawon

    #23388

    pawon
    Free User
    Post count: 34
    This reply has been marked as private.
    #23413

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    GeoDirectory adds the google maps API once and it can’t work if the theme or another plugin are adding it again. In your case it was added by Brainstorm plugin.

    I disabled the Google Maps module from the plugin admin page and the GD maps now work.

    Now there are other 2 jquery errors that are probably responsible for the tabs not working:

    
    
    TypeError: c.curCSS is not a function
    http://www.air-compressor-guide.com/wp-content/themes/company/js/jquery-ui-1.8.5.custom.min.js?ver=1.8.5
    Line 13
    
    TypeError: a is undefined
    http://www.air-compressor-guide.com/wp-includes/js/jquery/jquery.js?ver=1.11.1
    Line 2

    What I’d do, is to momentarely deactivate non GD plugins to see if the problem goes away and if it does, reactivate 1 by 1 till I found the culprit, than try to fix or find an alternative.

    Let us know,

    Thx

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket