Load Automatic or Load Google Map API issue

This topic contains 9 replies, has 3 voices, and was last updated by  Paolo 7 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #235051

    Adeniyi Omikunle
    Expired Member
    Post count: 56

    Hi guys

    Thanks for your great plugin.

    I have been using WP Calendar with Events Management Plugin on my website for close to 2 years.
    When I installed GeoDirectory some days ago, the WP Calendar on my event page stopped loading. After disabling one plugin after the other, I discovered that the issue is caused by GeoDirectory. When I checked using Google Chrome inspector, I saw this javascript error – (index):476 Uncaught TypeError: Cannot read property ‘Autocomplete’ of undefined

    Although I am not a developer, I guessed that the problem may be with the Google Map API so I went to GeoDirectory and disabled MAP under the “Select MAP API” setting and the calendar started working again. When I enabled Automatic or Load Google MAP API the calendar fails to come up again.
    I also do not have the problem when I select Load OpenStreetMap API.

    Please how can I resolve this issue and use Load Automatic without this conflict?

    Thank you.

    #235349

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    we will need to check on your website directly, can you please provide a link and admin credentials in a private reply?

    Let us know,

    Thanks

    #235524

    Adeniyi Omikunle
    Expired Member
    Post count: 56
    This reply has been marked as private.
    #236099

    Paolo
    Site Admin
    Post count: 31206

    hi,

    I’ve flagged this for the developers, they will let you know asap.

    Thanks for your patience,

    #236113

    Adeniyi Omikunle
    Expired Member
    Post count: 56

    Thank you. Looking forward to their response.

    #237010

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Can you give me links on how to replicate this, i don’t even see an events link on your site? Maybe also put cloudflare in developer mode.

    Thanks,

    Stiofan

    #237066

    Adeniyi Omikunle
    Expired Member
    Post count: 56
    This reply has been marked as private.
    #237122

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the info, i have added the belwo snippet of code to your theme functions file to fix this, please check everything is working now.

    
    
    function my_add_places_maps_extra($extra)
    {
        if (!str_replace('libraries=places', '', $extra) ) {
            $extra .= "&libraries=places";
        }
        return $extra;
    }
    
    add_filter('geodir_googlemap_script_extra', 'my_add_places_maps_extra', 102, 1);

    Thanks,

    Stiofan

    #237262

    Adeniyi Omikunle
    Expired Member
    Post count: 56

    Thanks! That solved the problem
    I am grateful for the excellent support.

    #237265

    Paolo
    Site Admin
    Post count: 31206
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)

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

Open Support Ticket