Google Maps Conflict

This topic contains 21 replies, has 4 voices, and was last updated by  Kiran 4 years, 11 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #519728

    Kiran
    Moderator
    Post count: 7069

    Hi Dave,

    Do you know what caused the problem so I can try to avoid anything in future?

    Don’t worry we have included changes in plugin core files.

    did you manage to take a look at the early post regarding a select2 error

    Provide any specific url where you seen this JS error.

    Kiran

    #519745

    Dave
    Full Member
    Post count: 205

    Hi Kiran,

    Sure. It’s actually on every page so just go to https://whatsonhub.co.uk/ and then check ‘Console’ under Google chrome inspect tool.

    I still get these random intermittent slow downs, which mostly occur when changing location, but not limited to that. I see this error in the console which looks like it’s some king of conflict between some jquery with you and jquery with my membership plugin. I look at the error, and I’m not a developer really so I don’t know what it means and what I can do to fix it.

    Now another question on that latest fix, I’m not sure what caused that error to stop the home page loading, but is it anything to do with using W3 total cache plugin? Am I safe to turn it back on? I know you recommend other caching plugins, but that’s the only one that’s compatible with my Ad Manager plugin.

    Thanks,
    Dave

    #519853

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #519859

    Dave
    Full Member
    Post count: 205

    Ok thanks Kiran for confirming I can W3.

    And sorry, you wouldn’t have seen the error today because I’d turned off the membership plugin last night which is conflicting with GeoDirectory.

    If you can check again now, it’s there again under the console.

    Thanks,
    Dave

    #519869

    Kiran
    Moderator
    Post count: 7069

    Hi Dave,

    I have added PHP snippet in Snippets to fix select2 conflict between GeoDirectory & Membership pro plugin.

    
    
    /**
     * Fix select2 conflict between GeoDirectory & Membership pro plugin.
     */
    function gd_snippet_191204_membership_pro_select2() {
    	if ( ! is_admin() ) {
    		if ( wp_script_is( 'select2', 'enqueued' ) && wp_script_is( 'ihc-select2', 'enqueued' ) ) {
    			wp_dequeue_script( 'ihc-select2' );
    		}
    
    		if ( wp_style_is( 'select2', 'enqueued' ) && wp_style_is( 'ihc_select2_style', 'enqueued' ) ) {
    			wp_dequeue_style( 'ihc_select2_style' );
    		}
    	}
    }
    add_action( 'wp_enqueue_scripts', 'gd_snippet_191204_membership_pro_select2', 100 );

    Please try now after clearing your browser cache.

    Regards,
    Kiran

    #519870

    Dave
    Full Member
    Post count: 205

    Awesome! Thanks Kiran I think that’s worked and fixed the intermittent slow downs I’ve had all this time.

    Thanks so much, really appreciate it!

    Dave

    #519871

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know.

    Kiran

Viewing 7 posts - 16 through 22 (of 22 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount