AJAX not working with SSL enabled when viewed at http location

Home Forums Calendar Products Events Calendar PRO AJAX not working with SSL enabled when viewed at http location

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #123019
    libertyme
    Participant

    Hi Tribe,

    We’re using The Events Calendar on a site with SSL at WPEngine. Everything was working fine before SSL was added, and everything is working fine currently when viewing the events pages over https. However, when the pages are viewed using http (which we need to have available for most visitors), none of the AJAX responses populate.

    For example, using the datepicker in month view or day view just spins the ajax loading gif without returning anything. Simply changing the URL to https corrects these issues. Is this an issue of the plugin running into same-origin policy problems? Would you be able to add cross-domain support to the plugin so that https calls can be made on http (is that the right terminology? I don’t know this much about AJAX myself), or is there a way for us to do this from the theme side of things?

    Events Calendar Pro and Community customer.

    Thank you,
    Kevin

    #123153
    Brook
    Participant

    Hello again Kevin,

    Are you using an SSL plugin? If so I would not be surprised if this issue is related to the plugin locking down /wp-admin/ and requiring that it be accessed from HTTPS. Is there an option that requires logged in users to use HTTPS? Does disabling that option fix things?

    I might be off on the above, that is just what my instincts are telling me. If I am, can you give us temporary access to the site so I can look at it a bit further.

    Also, would you mind grabbing your system information and pasting it here? Make sure to use the ‘Set as private reply’ checkbox to protect your private information from the public. You can find the system info by going to WP Admin > Events > Settings, clicking on the “Help” tab, and scrolling down to the ‘System Information’ box. (Or by going to [yoursite]/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=help) That will give me a lot of extra information to help diagnose the problem.

    Thanks! Let me know if the first paragraph fixed it for you, or if I can be of further assistance. Cheers!

    – Brook

    #123225
    libertyme
    Participant

    Thanks Brook. I’ve just been notified that this was resolved by WPEngine. There were redirects occurring on their end from http://…/wp-admin/admin-ajax.php to https://…/wp-admin/admin-ajax.php, which was breaking the request. Performing a similar function I imagine as the HTTPS plugins that force HTTPS on the admin areas. They just needed to omit /admin-ajax.php I imagine.

    #123292
    Brook
    Participant

    Ahh. That is good to know. I figured it was related to that, but I did not realize that WPEngine does this automatically and thus assumed it was a plugin. Thank you for sharing your resolution, I will share it with anyone else who has a similar problem. I am glad you got it fixed!

    By the way, if you have a minute or two, we would love it if you could write a few words about the plugin here. Happy developing!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘AJAX not working with SSL enabled when viewed at http location’ is closed to new replies.