Home › Forums › Ticket Products › Event Tickets Plus › REST api link bug – Option to disable
- This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago by
Joy Kirk.
-
AuthorPosts
-
May 12, 2017 at 6:41 am #1282917
Joy Kirk
ParticipantI’ve been running ADA compliance scans on a few of my sites and this keeps coming up. They keep flagging a broken link in the <head>. This one in particular.. “<link rel=”htt://theeventscalendar.com” href=”https://www.hometrustbanking.com/wp-json/tribe/events/v1/”>”. First off, there’s a typo in the “rel” attribute. You have “htt://” which should be “http://”. That’s not the link these scans are fussing about though.
The issue is with the href attribute and the url request returning a 404 status. We’re not using the REST API on any of our sites so we end up with this link in the head of every page that returns a 404 json response.
Is there a hook we could drop in our functions file to dequeue this reference while this bug is addressed? Ideally we would have an option within the tribe settings to simply disable the rest api. There’s no reason to load this resource if you’re not utilizing the API. Disabling it would also prevent returning a 404 response on every page.
Thanks
May 12, 2017 at 6:59 am #1282932Courtney
MemberHi Lindsey
I’m sorry that is happening on your site. I will pass along your findings about the typos immediately to our developers.
The Rest-API has been running in your site since WordPress was upgraded to 4.4. I’d suggest going through http://www.wpbeginner.com/wp-tutorials/how-to-disable-json-rest-api-in-wordpress/ to disable it to fit your unique needs.
Please let me know if that works for you.
Thanks
Courtney 🙂May 18, 2017 at 4:54 am #1285394Nico
MemberHey,
Just wanted to share with you that a new maintenance release (for the Week of 15th May 2017) is out, including a fix for this issue ?
Find out more about this release → https://theeventscalendar.com/maintenance-release-week-15th-may-2017/
Please update the plugins and let us know if the fix works for your site,
Best,
NicoJune 9, 2017 at 9:35 am #1295785Support Droid
KeymasterHey 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 ‘REST api link bug – Option to disable’ is closed to new replies.
