Home › Forums › Calendar Products › Events Calendar PRO › Conflict with Domain Mapping plugin
- This topic has 9 replies, 4 voices, and was last updated 7 years, 6 months ago by Khanh.
-
AuthorPosts
-
September 8, 2016 at 1:05 pm #1161694KhanhParticipant
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.
September 8, 2016 at 4:45 pm #1161805JoshParticipantThis reply is private.
September 9, 2016 at 6:19 am #1161979KhanhParticipantHi 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: *”);
}:-/
September 12, 2016 at 6:38 am #1162757JoshParticipantHey 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!
September 12, 2016 at 6:52 am #1162760KhanhParticipantThis reply is private.
September 13, 2016 at 6:14 am #1163321JoshParticipantThis reply is private.
September 13, 2016 at 6:43 am #1163327KhanhParticipantThis reply is private.
September 14, 2016 at 11:23 am #1164098JoshParticipantThis reply is private.
October 6, 2016 at 9:35 am #1173253Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘Conflict with Domain Mapping plugin’ is closed to new replies.