Warning: Cannot modify header information – headers already sent by ERROR
-
Hi there,
I keep getting the error Warning: Cannot modify header information – headers already sent by ERROR while trying to modify some aspects of my WordPress website.
My PHP skills aren’t amazing so I am not entirely sure what’s going wrong 🙁
This is the complete error message:
Notice: Undefined index: woo_nonce in /customers/6/7/e/katzenworld.uk/httpd.www/shop/wp-content/themes/mystile/functions/classes/class-wf-meta.php on line 149 Warning: Cannot modify header information - headers already sent by (output started at /customers/6/7/e/katzenworld.uk/httpd.www/shop/wp-content/themes/mystile/functions/classes/class-wf-meta.php:149) in /customers/6/7/e/katzenworld.uk/httpd.www/shop/wp-includes/pluggable.php on line 1196I have had a look at line 149 in the first mentioned file:
if ( ! wp_verify_nonce( $_POST[$this->_field_obj->__get( 'token' ) . '_nonce'], $this->_field_obj->__get( 'token' ) . '_nonce' ) ) {And also the line 1196 in the second file:
header("Location: $location", true, $status);I checked that there are no random spaces at the end or the beginning of the PHP file.
Any help wiuld be much appreciated.
Thanks,
Marc
The topic ‘Warning: Cannot modify header information – headers already sent by ERROR’ is closed to new replies.