“Unable to load calendar data” | WordPress.org
Skip to content
Forums
Skip to content
Forums
Plugin:
Hydrogen Calendar Embeds
“Unable to load calendar data”
Resolved
Nos402
(@nos402)
3 months, 2 weeks ago
I’m converting two different sites over from “Pretty Google Calendar” and one site went flawlessly, however the other (which works fine with PGC) is getting “Unable to load calendar data. Please try again later.” when I set it up with HCE. I feel like this has to be something stupid on my end but I can’t find it!
The only difference I can think of is that the first working site has a domain mapped to it while the second site I have not yet mapped a domain since it’s under construction, so it is still accessed via a subdomain address. But again PGC still works fine!
The page I need help with:
to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Thread Starter
Nos402
(@nos402)
3 months, 2 weeks ago
As a test, I used the ics address from the OTHER site which is working with HCE and that also didn’t work on the second site, so it’s not the ics address itself.
Also tried using a shortcode instead, same result.
This reply was modified 3 months, 2 weeks ago by
Nos402
Plugin Author
LBell
(@lbell)
3 months, 2 weeks ago
Interesting. Looks like we’re getting an additional
in the API url.
Can you add / modify
public\js\helpers.js
line #43 like so:
const separator = settings["rest_url"].includes("?") ? "&" : "?";
const proxyUrl =
${settings["rest_url"]}${separator}url=${encodeURIComponent(
icsCals[j]
)}
That should switch to using
instead of another
in the rest URL
This reply was modified 3 months, 2 weeks ago by
LBell
. Reason: WP keeps messing with my code block!
Thread Starter
Nos402
(@nos402)
3 months, 2 weeks ago
Ah I actually didn’t realize I had permalinks off, so I turned those on and all is well!
Plugin Author
LBell
(@lbell)
3 months, 2 weeks ago
That explains it! I’ll get a fix out that can handle when permalinks are off. Thanks for sleuthing.
Viewing 4 replies - 1 through 4 (of 4 total)
You must be
logged in
to reply to this topic.
Hydrogen Calendar Embeds
Frequently Asked Questions
Support Threads
Active Topics
Unresolved Topics
Reviews
4 replies
2 participants
Last reply from:
LBell
Last activity:
3 months, 2 weeks ago
Status: resolved