Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#43257 closed defect (bug) (invalid)

wp_redirect() throws error "Cannot modify header information"

Reported by: thamaraiselvam's profile thamaraiselvam Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.4
Component: General Keywords:
Focuses: administration, template Cc:


When I try to

wp_redirect( $url );

it does not redirect and throws following error.

PHP Warning: Cannot modify header information - headers already sent by (output started at /home/accuhomeinspecti/public_html/wp-admin/includes/template.php:2041) in /home/accuhomeinspecti/public_html/wp-includes/pluggable.php on  line 1216

This admin class printing throws error : wp-admin/includes/template.php


<html xmlns="" class="ie8 <?php echo $admin_html_class; ?>" <?php

Version 62.0.3202.94 (Official Build) (64-bit)

7.1 + Nginx

Change History (2)

#1 @soulseekah
5 years ago

  • Resolution set to invalid
  • Status changed from new to closed

This is definitely not a bug in core. See for possible explanations, solutions.

#2 @swissspidy
5 years ago

  • Milestone Awaiting Review deleted

Agreed. A plugin or theme you're using is doing_it_wrong.

Note: See TracTickets for help on using tickets.