[wp-trac] [WordPress Trac] #43257: wp_redirect() throws error "Cannot modify header information"

WordPress Trac noreply at wordpress.org
Thu Feb 8 06:50:36 UTC 2018


#43257: wp_redirect() throws error  "Cannot modify header information"
--------------------------------------+-----------------------------
 Reporter:  thamaraiselvam            |      Owner:
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  General                   |    Version:  4.9.4
 Severity:  normal                    |   Keywords:
  Focuses:  administration, template  |
--------------------------------------+-----------------------------
 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'''

 {{{#!php
 <?php

 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo
 $admin_html_class; ?>" <?php

 }}}

 Browser:
 Version 62.0.3202.94 (Official Build) (64-bit)

 PHP
 7.1 + Nginx

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43257>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list