Map List Custom Post and address input issues

This topic contains 12 replies, has 3 voices, and was last updated by  Kiran 6 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #383937

    simplioweb
    Expired Member
    Post count: 79

    We have 2 issues.

    First we cannot get the maps and listings for the custom post types to show they default to Places. How do we fix?
    Shortcode not working…
    And also we cannot input an address when doing any listing as it gives an error… only shows the city and not the addy you are typing.

    How do we fix
    Screen shot here: https://screencast.com/t/BEqi9reVP

    #383940

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #383945

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #383946

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #384062

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you have a mix of new and old add-ons and the core plugin is 2 versions old.

    Please update GD and all its add-ons.

    Make sure to install WP Easy Updates as explained here to get updates notifications for the add-ons: https://wpgeodirectory.com/wp-easy-updates/

    In case some are missing, you find all the license keys here: https://wpgeodirectory.com/your-account/

    Let us know if after updating everything to the latest version the problem goes away.

    Thanks

    #384079

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #384080

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #384147

    Kiran
    Moderator
    Post count: 7069

    Hi There,

    Please check now the problem has been fixed.

    The problem was your site has some script conflicts. It was showing following JS errors and breaking the rest of Js functions load.
    TypeError: jQuery(…).live is not a function list-your-property:4897:4
    <
    Your site is running with jQuery 2.2.4 and your theme using one Js function jQuery.live() which is removed since 1.9 see http://api.jquery.com/live/#live1

    “Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error” js:35:315
    You have included the Google Maps API multiple times on this page. This may cause unexpected errors. js:96:295
    InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama js:35:315
    <
    One of plugin has added Google JS Map API without API key. Now it is necessary to add api key to use Google JS Map API on site.

    I have fixed both errors by adding following code snippet in your theme functions.php file.

    
    
    function gd_custom_fix_script_conflict() {
        if ( !wp_script_is( 'jquery-migrate', 'enqueued' ) ) {
            wp_enqueue_script( 'jquery-migrate' );
        }
        
        if ( wp_script_is( 'geodirectory-googlemap-script', 'enqueued' ) && wp_script_is( 'google-maps', 'enqueued' ) ) {
            wp_dequeue_script( 'google-maps' );
        }
    }
    add_action( 'wp_enqueue_scripts', 'gd_custom_fix_script_conflict', 100 );

    Let us know.

    Thanks,
    Kiran

    #384249

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #384298

    Kiran
    Moderator
    Post count: 7069

    Any ideas on how we can show the Separate post type maps and lists?
    < On which page you want to set that shortcode? Please explain what you want to achieve. If you want listings on same page then use this shortcode https://wpgeodirectory.com/docs/core-shortcodes/#listings

    In regards to the map is it a google maps issue? or a plugin issue?
    < It is plugin issue by which that Google Map API JS added. If you are using the standard Maps JavaScript API, you must use a key parameter with a valid API key. See https://developers.google.com/maps/documentation/javascript/error-messages#invalid-key-map-error

    Kiran

    #384354

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #384375

    simplioweb
    Expired Member
    Post count: 79
    This reply has been marked as private.
    #384468

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 13 posts - 1 through 13 (of 13 total)

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

Open Support Ticket