Conflict with other plugin
This topic contains 15 replies, has 4 voices, and was last updated by Marcos Milani 8 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
March 13, 2017 at 10:58 am #366945
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
March 13, 2017 at 9:32 pm #367055Hi,
where should I see an error? I may be missing something, but everything appears to be working correctly to me.
Thanks
March 16, 2017 at 10:31 pm #367884Hi,
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.
March 18, 2017 at 8:24 pm #368347Please provide wp-admin and FTP and i will take a look.
Thanks,
Stiofan
March 20, 2017 at 10:51 am #368534This reply has been marked as private.March 20, 2017 at 2:50 pm #368619Hi Marcos,
Can you also provide FTP details please?
Thanks,
Stiofan
March 20, 2017 at 9:18 pm #368723This reply has been marked as private.March 22, 2017 at 7:13 am #368999Hi 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,
KiranMarch 22, 2017 at 12:28 pm #369061Hi,
Module speed turned off.
You have to install an Amazon certificate to be able to use the FTP (this is required by amazon).March 22, 2017 at 12:30 pm #369062This reply has been marked as private.March 22, 2017 at 12:31 pm #369063This reply has been marked as private.March 22, 2017 at 2:14 pm #369096Hi 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,
KiranMarch 23, 2017 at 1:37 am #369228Hello,
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.
March 23, 2017 at 3:50 am #369237Thanks for letting us know.
March 23, 2017 at 3:53 am #369238This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket