Conflict with other plugin

This topic contains 15 replies, has 4 voices, and was last updated by  Marcos Milani 7 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #366945

    Marcos Milani
    Free User
    Post count: 26

    Hi,
    We were facing a conflict with another plugin (CM Route Manager from Creative Minds) in our website (www.rocknroads.com.br) in the past and now we are having it again (maybe due to the plugin update).

    Basically the Geodirectory plugin shouldn’t include the Google Maps API on the Maps Routes page (from the CM ROUTE PLUGIN – http://www.rocknroads.com.br/maps-routes/). This causes a JavaScript error which stops our map’s script processing.

    Please see previous discussion here: https://wpgeodirectory.com/support/topic/conflict-google-js-with-other-plugin/#post-349298

    #367055

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    where should I see an error? I may be missing something, but everything appears to be working correctly to me.

    Thanks

    #367884

    Marcos Milani
    Free User
    Post count: 26

    Hi,
    There is an error that is somehow inhibiting users to see the map markers that placed in the routes.

    Please note the error on the images attached that in the route post page the markers were indeed placed. However, afterwards other users are unable to see those markers in the route view page.

    #368347

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Please provide wp-admin and FTP and i will take a look.

    Thanks,

    Stiofan

    #368534

    Marcos Milani
    Free User
    Post count: 26
    This reply has been marked as private.
    #368619

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Marcos,

    Can you also provide FTP details please?

    Thanks,

    Stiofan

    #368723

    Marcos Milani
    Free User
    Post count: 26
    This reply has been marked as private.
    #368999

    Kiran
    Moderator
    Post count: 7069

    Hi Marcos,

    SFTP details you provided not working for me. Can you double check please?

    I tried to put snippet code under Admin > Snippets that disables GeoDirectory google maps api on /maps-routes & /maps-routes/* pages. But my snippet code doesn’t get reflected on front end. It seems your site is cached by mod_pagespeed. Can you disable mod_pagespeed for a while, so we can debug and check our snippet code?

    Here is my snippet code

    
    
    
    function _my_add_gmaps_api_args($args){
      $args .= "&libraries=places,geometry";
      return $args;
    }
    add_filter('geodir_googlemap_script_extra','_my_add_gmaps_api_args');
    
    // Disable GeoDirectoiry Google Maps on CM Maps Routes pages
    function geodirectory_fix_google_map_conflict( $gd_map = '' ) {
        global $wp, $wp_query;
        if ( !is_admin() && !empty( $wp_query ) && $wp_query->is_main_query() && ( !empty( $wp->query_vars['post_type'] ) || !empty( $wp->query_vars['cmmrm_dashboard_page'] ) ) ) {
            $post_type = !empty( $wp->query_vars['post_type'] ) ? $wp->query_vars['post_type'] : '';
            $cmmrm_dashboard_page = !empty( $wp->query_vars['cmmrm_dashboard_page'] ) ? $wp->query_vars['cmmrm_dashboard_page'] : '';
            
            if ( ( is_single() || is_archive() ) && ( $post_type == 'cmmrm_route' || $cmmrm_dashboard_page == 'edit' ) ) {
                $gd_map = 'none';
            }
        }
        return $gd_map;
    }
    add_filter( 'geodir_map_name', 'geodirectory_fix_google_map_conflict', 10, 1 );
    

    Thanks,
    Kiran

    #369061

    Marcos Milani
    Free User
    Post count: 26

    Hi,
    Module speed turned off.
    You have to install an Amazon certificate to be able to use the FTP (this is required by amazon).

    #369062

    Marcos Milani
    Free User
    Post count: 26
    This reply has been marked as private.
    #369063

    Marcos Milani
    Free User
    Post count: 26
    This reply has been marked as private.
    #369096

    Kiran
    Moderator
    Post count: 7069

    Hi Marcos,

    I have added another snippet code to fix conflict. Can you check entire page where to seen conflict?
    Let me know if any page has conflict.

    Thanks,
    Kiran

    #369228

    Marcos Milani
    Free User
    Post count: 26

    Hello,
    Thank you very much. Now everything worked just fine as I could check.

    I kindly ask you to please communicate the changes made so that it can be possibly integrated in the future Geodirectory updates.

    This can ensure that the problem does not occur anymore when the plugin is updated (as it did last time).

    Thank you once again.

    #369237

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know.

    #369238

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

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

Open Support Ticket