Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Forbidden since I updated to WP 5.3 #208

Closed
lostfocus opened this issue Nov 22, 2019 · 5 comments
Closed

403 Forbidden since I updated to WP 5.3 #208

lostfocus opened this issue Nov 22, 2019 · 5 comments

Comments

@lostfocus
Copy link
Contributor

Right now I'm getting a 403 Forbidden with all clients that I'm testing:

HTTP/1.1 403 Forbidden
Date: Fri, 22 Nov 2019 17:57:12 GMT
Server: Apache/2.4.29 (Ubuntu)
X-Robots-Tag: noindex
Link: <https://lostfocus.de/wp-json/>; rel="https://api.w.org/"
X-Content-Type-Options: nosniff
Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages
Access-Control-Allow-Headers: Authorization, Content-Type
Content-Length: 56
Content-Type: application/json; charset=UTF-8

{"error":"forbidden","error_description":"Unauthorized"}

This one is from Quill. I do use https://indieauth.com/ to get a token, maybe it's something there? I'll investigate.

@lostfocus
Copy link
Contributor Author

At the moment it seems like the determine_current_user filter isn't being used. This is very peculiar.

@lostfocus
Copy link
Contributor Author

Okay, so it seems to be related to WP Core issues 46586 and 43869. For some reason (my) WordPress calls the hook before plugins_loaded which leads to the Micropub/Indieauth hook being ignored.

@dshanske
Copy link
Member

@lostfocus What plugins do you have installed?

@lostfocus
Copy link
Contributor Author

Listing and sorting through all 20+ of them might take a while. I have the well-known one, ActivityPub, Akismet, Comment Meta Display, Enable Media Replace, Exploit Scanner, Google XML Sitemaps, Health Check, JSON Feed, Micropub, Open Graph, Open Search, Purge Transients, Regenerate Thumbnails, Twitter Cards, Webfinger, Webmention, Websub, WP Advent, WP Crontrol and Years Ago Today.

@lostfocus
Copy link
Contributor Author

So, the way I understand this filter now is that the very moment anyone (plugin, theme) uses wp_get_current_user() any plugin that uses the determine_current_user filter is basically rendered useless? I guess it is not something that can be mitigated in a plugin's code at all. 😒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants