Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from WP404™
PathResolve is not affiliated with WP404. The name and any related trademarks are used solely for nominative descriptive purposes.
This tool is a debugging plugin for developers and site administrators who need to investigate and resolve 404 errors. It hooks into a site's core to collect detailed request data whenever a page is not found, writing that information to error logs for analysis.
server_superglobal: Captures specific data from the server environment for each 404 request, such as the request URI and user agent. A filter allows you to control exactly which keys are logged, helping to avoid storing sensitive information.
post_exists: When a request suggests a specific post ID, this feature directly queries the database to retrieve and log the corresponding post's data. This bypasses any caching, providing a clear view of the post's current status.
queries: If query saving is enabled on the site, this logs all database queries that were executed during the 404 request. This can help identify complex or unexpected database interactions leading to the error.
wp_query: Includes the complete state of the main query object in the log report. This provides the deepest level of detail for diagnosing routing and query parsing issues.
Custom Reporting: The core functionality is built around a filter, allowing developers to add their own data to reports or conditionally abort logging entirely. For example, you could log a user's IP address or prevent logging for logged-in users.
Version
Original
Updated