Cannot modify header information
-
See lots of these PHP Warnings in the error_log:
PHP Warning: Cannot modify header information - headers already sent in /home/eltownhall/public_html/wp-includes/pluggable.php on line xxxxwhere xxxx ranges from 1137 to 1161
I added a custom error handler to pluggable.php to display a stack trace. I found that limit_login_clear_auth_cookie() is calling wp_clear_auth_cookie() in pluggable.php.
Here is the stack trace:1 /home/eltownhall/public_html/wp-includes/pluggable.php(1143): setcookie()
2 /home/eltownhall/public_html/wp-content/plugins/limit-login-attempts/limit-login-attempts.php(340): wp_clear_auth_cookie()
3 /home/eltownhall/public_html/wp-content/plugins/limit-login-attempts/limit-login-attempts.php(251): limit_login_clear_auth_cookie()
4 /home/eltownhall/public_html/wp-content/plugins/limit-login-attempts/limit-login-attempts.php(105): limit_login_handle_cookies()
5 /home/eltownhall/public_html/wp-includes/class-wp-hook.php(324): limit_login_setup()
6 /home/eltownhall/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
7 /home/eltownhall/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
8 /home/eltownhall/public_html/wp-settings.php(578): do_action()
9 /home/eltownhall/public_html/wp-config.php(105): require_once('/home/eltownhal…')
10 /home/eltownhall/public_html/wp-load.php(50): require_once('/home/eltownhal…')
11 /home/eltownhall/public_html/wp-cron.php(46): require_once('/home/eltownhal…')
12 {main}Plugin version 1.7.2
WordPress version 6.8.2
PHP Version: 8.3
The topic ‘Cannot modify header information’ is closed to new replies.