Plugin Author
LBell
(@lbell)
Try disabling other plugins to see what might be conflicting with it.
Particularly “Siteground Optimizer” and “Signup Form Widget” which are both throwing errors on your events page in the console.
Without the other plugins my console is giving errors in the helper.js and hycal.js:
Uncaught SyntaxError: Unexpected token '{' (at helpers.js:51:6)
hycal.js:42 Uncaught ReferenceError: hycal_resolve_views is not defined
at hycal_render_calendar (hycal.js:42:17)
at HTMLDocument.<anonymous> (hycal_loader-js-after:2:60)
Plugin Author
LBell
(@lbell)
Can you share the .ics link you are using?
It looks like your calendar may not be set to “public”
-
This reply was modified 4 days, 8 hours ago by
LBell.
Plugin Author
LBell
(@lbell)
Got it. It’s not the .ics but rather your security plugin, or theme is blocking unauthenticated REST requests. The endpoint is returning: {"code":"rest_api_authentication_required","message":"The REST API has been restricted to authenticated users.","data":{"status":401}}
You might check your settings for something like “Disable REST API” or the like, and see if you can whitelist /wp-json/hycal/*
Or if it’s hard-coded, you can try something like the following (untested, going from memory):
add_filter('rest_authentication_errors', function($result){
if (! empty($result)) return $result;
$uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
if (strpos($uri, '/wp-json/hycal/') !== false) return null;
return $result;
});
-
This reply was modified 1 day, 10 hours ago by
LBell.
100% that was it. So sorry for bugging you with this and thanks for helping me track it down!
-
This reply was modified 17 hours, 57 minutes ago by
ncsumarit.