Help Desk

Conflict with Domain Mapping plugin

  • Posts: 20 Topics: 13
    | Permalink

    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.

    Posts: 4171
    | Permalink
    This reply has been marked as private.
    Posts: 20 Topics: 13
    | Permalink

    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: *”);
    }

    :-/

    Posts: 4171
    | Permalink

    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!

    Posts: 20 Topics: 13
    | Permalink
    This reply has been marked as private.
    Posts: 4171
    | Permalink
    This reply has been marked as private.
    Posts: 20 Topics: 13
    | Permalink
    This reply has been marked as private.
    Posts: 4171
    | Permalink
    This reply has been marked as private.
    Posts: 65
    | Permalink

    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

    | Permalink

The topic ‘Conflict with Domain Mapping plugin’ is closed to new replies.