PHP Warning: Cannot modify header information
-
Hi, I’ve been working on a client’s website for a year or so now. I’ve never had the need to check the error log until recently when I started having problems with a different plugin. However, when I checked the error log today, it was absolutely crammed with the following PHP warning from this plugin:
[16-Feb-2024 00:00:08 UTC] PHP Warning: Cannot modify header information - headers already sent in /wp-content/plugins/cookies-and-content-security-policy/inc/set-cacsp.php on line 150
Edit: It also refers to line 148:
[16-Feb-2024 02:20:52 UTC] PHP Warning: Cannot modify header information - headers already sent in /wp-content/plugins/cookies-and-content-security-policy/inc/set-cacsp.php on line 148
This one error seems to be repeated 10’s of thousands of times. There are probably something like 5,000+ records of it in February alone. The error log is about 250MB, and if I do a Ctrl+F for this in Visual Code, I just get 19999+.
Is this something specific to this client’s site, or something you’re able to replicate?
Thanks, Matt.
- The topic ‘PHP Warning: Cannot modify header information’ is closed to new replies.