Conflict with Domain Mapping plugin

Home Forums Calendar Products Events Calendar PRO Conflict with Domain Mapping plugin

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1161694
    Khanh
    Participant

    Greetings,

    When I don’t use the mapping, the calendar works fine. Once can skip months and use the next/previous links: http://sites.ieee.org/scv-mtts-test/events/

    When a custom domain is used and set to primary, then jumping from month to month does not work (cursor spinning).
    http://mtt-scv.org/events/

    http://sites.ieee.org/scv-mtts-test/ is a clone of mtt-scv.org.

    The domain mapping plugin used: https://premium.wpmudev.org/project/domain-mapping/

    Please advise.

    Thank you.

    #1161805
    Josh
    Participant

    This reply is private.

    #1161979
    Khanh
    Participant

    Hi Josh,

    Thanks for the prompt response. I added this to the admin-ajax.php file, but it didn’t help

    //Cross-domain access
    $domain = strrpos($_SERVER[‘HTTP_ORIGIN’] , “mtt-scv.org”);
    if ($domain === false) { // note: three equal signs
    // not found…
    }else{
    header(“Access-Control-Allow-Origin: *”);
    header(“Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS”);
    header(“Access-Control-Allow-Headers: *”);
    }

    :-/

    #1162757
    Josh
    Participant

    Hey Khanh,

    Thanks for following up with us!

    Looks like there is a new way that you can a approach this. You can use a filter on the “http_origin”.

    Try something like:

    
    add_filter( 'http_origin', 'my_filter_http_origin' );
    function my_filter_http_origin() {
    return 'http://mtt-scv.org';
    }
    

    Let me know if this helps.

    Thanks!

    #1162760
    Khanh
    Participant

    This reply is private.

    #1163321
    Josh
    Participant

    This reply is private.

    #1163327
    Khanh
    Participant

    This reply is private.

    #1164098
    Josh
    Participant

    This reply is private.

    #1173253
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Conflict with Domain Mapping plugin’ is closed to new replies.