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

404 Helper #342

Open
3 of 15 tasks
johnbillion opened this issue May 21, 2018 · 0 comments
Open
3 of 15 tasks

404 Helper #342

johnbillion opened this issue May 21, 2018 · 0 comments

Comments

@johnbillion
Copy link
Owner

johnbillion commented May 21, 2018

I've been working on some functionality for QM which aims to help you out when you encounter a 404 error. It will help pinpoint the reason for the 404 and hopefully make it easier to identify the reason you're seeing a 404 error page instead of the nice new thing that you're building.

I've started this but it needs more work. Some of the ideas are worth exposing even when you're not encountering a 404.

Current ideas:

  • Identify whether the rewrite rules need flushing.
  • Display a stack trace for the call to set_404().
  • Identify whether any rewrite rule matched or whether the fallback rule for Pages matched.
  • Identify other matching rewrite rules with lower priority (already exists in the Request panel, could be improved).
  • Display information relating to rewrite endpoints (see also Feature request: current EP mask for endpoint #318) including identifying whether one was matched or not.
  • Expose the main WP_Query properties (allow user to identify mismatch between it and their expectation).
  • List the filters and actions that have callbacks hooked into hooks that affect the request (already exists in the Request panel).
  • Identify whether the main query triggered the 404 due to an empty result set, or something else called set_404() manually.
  • Identify whether the current request is the result of a redirect from somewhere else (which may not be expected).
  • Identify query variable clashes and use of reserved terms in query vars.
  • Identify unmatched custom rewrite tags (%foo%), not sure if this is even possible.
  • Identify messed up queried objects (eg. empty or null).
  • Is WP looking for a child page or child category when you're not expecting it?
  • Permalinks are set to the default (no rewriting)
  • Some Multisite stuff (eg. are you on the correct site?).

Other ideas very welcome.

@johnbillion johnbillion mentioned this issue Aug 11, 2020
@johnbillion johnbillion added this to the 3.7.0 milestone Aug 11, 2020
@johnbillion johnbillion removed this from the 3.7.0 milestone May 11, 2021
@johnbillion johnbillion linked a pull request Mar 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant