Posted: November 17, 2018 at 1:35 am
I am updating the theme to one that uses (but does not RELY on) Gutenberg, and now may calendar will not work, just get a spinning disk (load error?). I have display attendee limits set to “no” and disable categories set to “no”, I also have show_expired=”false” set. calendar is (not) working on: greenbankobservatory.org/events/ Using … |
|
Going back through previous Support Forum items, I did the following: |
|
Hi there, There’s a 301 redirect on the ajax request from http to https, did you recently setup https on the site? The request to pull in the calendar events is being blocked:
Is switching themes the only change you’ve made since this started happening? |
|
We have been running HTTPS for a while on our live server, but not on DEV (as it was internal) |
|
Our network admin is looking into things … where did you find that log of the http -> https error? |
|
Deleting the plugin does not remove any of the settings/events/data in your database, WordPress may show a notice that all data will be removed, but its actually just a poorly worded WordPress notice as it’s down to the plugin to remove the data on delete, EE (intentionally) does not. So you can de-activate, delete and reinstall the plugin should you wish, but it wont actually fix the problem here.
Open Chrome dev tools and load the calendar, in the console you’ll see the error I mentioned. In the network tab you can log the ajax request and the redirect. |
|
huh. ok. so do you have a recommendation? |
|
I’m not sure what this is in response to?
There’s a couple of steps you’ll need to take to fix this. First, you’ll need to stop loading jQuery from googleapis, it’s likely your theme is doing is for you, but it’s not a good idea, see: https://pippinsplugins.com/why-loading-your-own-jquery-is-irresponsible/ It may also be done through a plugin, but as you mentioned this was working before the theme change, I’d say it’s the theme, look in the functions.php file for anything with ‘googleapis’. The CORS issue I posted above can be fixed by loading the calendar page over HTTPS, right now you have both and if you load the HTTP version, the ajax request loads over HTTPS and is considered cross site so is rejected. |
|
The support post ‘broke the calendar’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.