KO Headers Sent Diagnostic
Logs the first PHP file and line that sent output before WordPress could send headers.
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wy4tt34rp/ko-headers-sent-diagnostic/archive/refs/heads/main.zipDEX early-output diagnostic
The DEX login response currently begins with two line-feed bytes before the
<!DOCTYPE html> declaration. That makes PHP report that headers have already
been sent, preventing WordPress from setting its login test cookie.
Install
- Ensure
wp-content/mu-plugins/exists on the DEX development site. - Upload
ko-headers-sent-diagnostic.phpdirectly into that directory. It must be directly insidemu-plugins, not inside another folder. - Request
https://dex.dev.velaagency.com/wp-login.phponce. - Download
wp-content/ko-headers-sent-diagnostic.log.
The log entry will resemble:
[KO headers diagnostic] Early output detected during plugins_loaded. Output started at /path/to/wp-content/plugins/example/example.php:123
The reported file and line identify where the first output began. Common fixes
are removing bytes before <?php, removing a trailing ?> and its whitespace,
saving the file as UTF-8 without BOM, or removing accidental debug output.
Remove
Delete wp-content/mu-plugins/ko-headers-sent-diagnostic.php and
wp-content/ko-headers-sent-diagnostic.log after correcting the source file.