PHP Warning: Cannot modify header information
-
Hello, I’m hoping you can help me determine what is happening with this file.
I have a website that has been getting this error in the log for days. While I’ve found that this error usually means a php file needs fixed, I’m not sure what about this one needs to be fixed. It thankfully doesn’t appear to be impacting the functionality of the site, but I’d like to resolve it.
Below is the error I’m seeing every few minutes:
PHP Warning: Cannot modify header information – headers already sent in …/public_html/wp-content/plugins/wordfence/lib/wfUtils.php on line 2489
Then in the file line 2489 is:
if (version_compare(PHP_VERSION, ‘5.2.0’) >= 0) {
setcookie($name, $value, $expire, $path, $domain, $secure, $httpOnly);
}Most other versions of this error have mention of a second file where the header is also set, but I’m not seeing it here. Could you help guide me on what I need to do here?
Thank you
You must be logged in to reply to this topic.