Location Manager problem No maps on add listing & Cant display map probmen fixed

This topic contains 3 replies, has 3 voices, and was last updated by  awakeningearth 5 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #456112

    awakeningearth
    Expired Member
    Post count: 48

    Hello!

    Just purchased and have been getting all setup, I think everything works apart from when I have the “location manager” activated maps will not display on the “Add New Place” page the only way to get the maps to display is to tick “Disable Google address autocomplete?”

    So not sure whats happening here, my error in firefox is
    Google Maps API Loaded 🙂 admin.min.js:1:28720
    TypeError: google.maps.places is undefined[Learn More] post-new.php:1040:13
    gdColorPicker admin.min.js:1:2380
    TypeError: e is undefined[Learn More] load-scripts.php:646:1538

    I had disabled ALL plugins which did not help and then just found out that when I Disable my Theme and use Supreme Directory its working! SO…

    I looked in my Child theme and I saw the lines

    // Remove Query Strings From Static Resources SETTING

    function _remove_script_version( $src ){
    $parts = explode( ‘?’, $src );
    return $parts[0];
    }
    add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
    add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );
    // Remove Query Strings From Static Resources SETTING END

    Deleted that and it works, I only added those lines because It was supposed to be a speed or security improvement, anyone have any comments on that ?

    Another issue I had was I had to install “API KEY for Google Maps” plugin in order to get the api key to work otherwise google kept saying “development mode” cant display maps, even though I had billing etc enabled on my google account.

    Feeling happy that I fixed it myself while writing this post haha
    Thanks

    #456133

    Guust
    Moderator
    Post count: 29970

    Well done fixing it 🙂
    I’ll get a developer to have a look at your topic too in case they can add more wise words 🙂

    Thanks

    #456180

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Riki,

    It was wise to remove that snippet from your child theme, many WP scripts need params, i would never recommend this method on a WP site.

    Thanks,

    Stiofan

    #456204

    awakeningearth
    Expired Member
    Post count: 48

    Ok thanks a lot for that thats great! another little issue which is not an issue but I had to take Geodirectory Permalinks off default as it said something about events already exists.
    so its set to ” Full location with category ” and is all good now 🙂

    Cheers!

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

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

Open Support Ticket