{"id":26047808,"url":"https://github.com/szepeviktor/debug-wordpress","last_synced_at":"2025-10-27T22:35:39.616Z","repository":{"id":280178618,"uuid":"941159092","full_name":"szepeviktor/debug-wordpress","owner":"szepeviktor","description":"Debug WordPress errors and performance","archived":false,"fork":false,"pushed_at":"2025-06-01T04:04:16.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T13:46:17.362Z","etag":null,"topics":["debug","error","performance","plugin","speed","theme","wordpress"],"latest_commit_sha":null,"homepage":"https://github.com/szepeviktor/wordpress-website-lifecycle","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szepeviktor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-01T16:24:06.000Z","updated_at":"2025-06-01T04:04:19.000Z","dependencies_parsed_at":"2025-03-01T19:36:04.779Z","dependency_job_id":"10baa316-e859-48b4-944a-6bff29d4abea","html_url":"https://github.com/szepeviktor/debug-wordpress","commit_stats":null,"previous_names":["szepeviktor/debug-wordpress"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szepeviktor/debug-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fdebug-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fdebug-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fdebug-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fdebug-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szepeviktor","download_url":"https://codeload.github.com/szepeviktor/debug-wordpress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szepeviktor%2Fdebug-wordpress/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267293832,"owners_count":24065326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug","error","performance","plugin","speed","theme","wordpress"],"created_at":"2025-03-07T23:14:03.241Z","updated_at":"2025-10-27T22:35:39.605Z","avatar_url":"https://github.com/szepeviktor.png","language":null,"funding_links":["https://github.com/sponsors/szepeviktor"],"categories":[],"sub_categories":[],"readme":"# Debug WordPress\n\n[![theories](https://img.shields.io/badge/more-theories-purple)](https://github.com/stars/szepeviktor/lists/theory)\n\nTools and techniques for debugging WordPress.\n\n## Incoming HTTP requests\n\nDump POST request body to the error log.  \nCopy [this snippet][debug-post-requests] to `wp-config.php`.  \nFollow error log: `tail -f error_log`\n\n### Tools\n\n- For AJAX requests: https://github.com/szepeviktor/qm-ajax\n- For REST requests: https://querymonitor.com/wordpress-debugging/rest-api-requests/\n\n## HTTP response headers\n\nOpen developer tools in your browser.\n\n### Tools\n\n- https://redbot.org/\n- https://securityheaders.com/\n- https://www.webpagetest.org/\n\n## HTTP response body\n\nView page source in your browser.\n\n\u003e [!IMPORTANT]\n\u003e Check Web Console for JavaScript errors.\n\n### Tools\n\n- https://validator.w3.org/\n- https://www.webpagetest.org/\n\n## PHP code\n\nDump triggered hooks (actions and filters) to a file.  \nCopy [this MU plugin][debug-hooks] to `wp-content/mu-plugins/`.  \nFollow the log: `tail -f wp-content/debug-hooks.log`\n\nAlternatively enable debugging in wp-config.\n```php\ndefine('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true);\ndefine('WP_DEBUG_DISPLAY', false);\nini_set('display_errors', '0');\n```\nFollow the log: `tail -f wp-content/debug.log`\n\n### Tools\n\n- Plugin Identifier Search https://plugintests.com/search-ids\n\n## PHP errors\n\nFollow PHP error log: `tail -f error_log`\n\n## Outbound HTTP requests\n\nLog requests and responses.\n\n### Tools\n\n- `snitch` plugin\n- `log-http-requests` plugin\n\n## Cron events\n\nCron can be web-based and CLI-based.\n\nLog events and failures.\n\n## Background queue jobs\n\nCheck Action Scheduler logs.\n\n## Database queries\n\nLog queries before they are executed, see `EXPLAIN` statement.  \nCopy [this snippet][debug-queries] to `wp-includes/class-wpdb.php`.  \nFollow the log: `tail -f wp-content/debug-queries.log`\n\nLog failed queries.\n\n### Tools\n\n- `index-wp-mysql-for-speed` plugin\n- [Database Performance tuning][db-performance]\n\n## Emails\n\nLog [sent emails](https://github.com/johnbillion/wp_mail) and sending failures.\n\n## Support my work\n\nPlease consider supporting my work as these lists take years to compile.\n\n[![Sponsor][sponsor-button]][sponsors-page]\n\nThank you!\n\n## General debug tools\n\n- `query-monitor` plugin\n- [Test Mode](https://github.com/szepeviktor/test-mode) plugin\n- `airplane-mode` plugin\n- `whats-running` plugin\n- `frontend-debugger` plugin\n- https://themecheck.info/\n\n[debug-post-requests]: https://github.com/szepeviktor/wordpress-website-lifecycle/blob/master/debug/debug-post-requests.php\n[debug-hooks]: https://github.com/szepeviktor/wordpress-website-lifecycle/blob/master/debug/debug-hooks.php\n[debug-queries]: https://github.com/szepeviktor/wordpress-website-lifecycle/blob/master/debug/debug-queries.php\n[sponsor-button]: https://github.com/szepeviktor/.github/raw/master/.github/assets/github-like-sponsor-button.svg\n[sponsors-page]: https://github.com/sponsors/szepeviktor\n[db-performance]: https://github.com/szepeviktor/debian-server-tools/blob/master/mysql/SQL-Performance.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszepeviktor%2Fdebug-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszepeviktor%2Fdebug-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszepeviktor%2Fdebug-wordpress/lists"}