The MU forums have moved to WordPress.org

Redirect Loop / Cannot modify header information (4 posts)

  1. iain010100
    Member
    Posted 15 years ago #

    I changed some things on my site and now I'm getting a redirect loop and none of my pages appear. I switched servers from an IIS to Linux, I changed the domain and wordpress directory changed from "www.websiteA.com/wordpress" to "www.websiteB.com" (at the root), and I upgraded from WP 2.3.3 to 2.6.1.

    When I add define('WP_DEBUG', true); to wp-config.php I get these notices (and a warning) on my homepage:

    [blockquote]Notice: Undefined index: cat in /mysite/html/wp-includes/query.php on line 525
    Notice: Undefined index: path in /mysite/html/wp-includes/canonical.php on line 180
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 192
    Notice: Undefined index: path in /mysite/html/wp-includes/canonical.php on line 180
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Warning: Cannot modify header information - headers already sent by (output started at /mysite/html/wp-includes/query.php:525) in /mysite/html/wp-includes/pluggable.php on line 770
    Notice: Undefined index: cat in /mysite/html/wp-includes/query.php on line 525
    Notice: Undefined index: path in /mysite/html/wp-includes/canonical.php on line 180
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 192
    Notice: Undefined index: path in /mysite/html/wp-includes/canonical.php on line 180
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: port in /mysite/html/wp-includes/canonical.php on line 187
    Notice: Undefined index: query in /mysite/html/wp-includes/canonical.php on line 187
    Warning: Cannot modify header information - headers already sent by (output started at /mysite/html/wp-includes/query.php:525) in /mysite/html/wp-includes/pluggable.php on line 770
    [/blockquote]

    query.php line 525:

    $qv['cat'] = preg_replace( '|[^0-9,-]|', '', $qv['cat'] );

    canonical.php line 180:

    if ( $redirect['path'] == $user_home['path'] )

    canonical.php line 187:

    if ( array($original['host'], $original['port'], $original['path'], $original['query']) !== array($redirect['host'], $redirect['port'], $redirect['path'], $redirect['query']) ) {

    pluggable.php line 770:

    header("Location: $location");

    I can see blog and pages data in the admin, but whenever I submit an edit, my changes do get saved but I get this error:
    [blockquote]
    Warning: Cannot modify header information - headers already sent by (output started at /mysite/html/wp-content/themes/revolution-30/functions.php:114) in /mysite/html/wp-includes/pluggable.php on line 770
    [/blockquote]

    Plus a whole bunch of notices like these:
    [blockquote]
    Notice: Undefined index: ID in /mysite/html/wp-includes/post.php on line 766
    [/blockquote]

    I followed all WP upgrade instructions and all the instructions for changing domains.

    fyi, I had the redirect loop problem before I upgraded to the newest wordpress.

    I've been trying for three days to fix this. All the fomum searching I've done did not help. I don't have a .htaccess file.

    Any help is appreciated.

  2. nadworks
    Member
    Posted 15 years ago #

    Very same problem here.... I'm getting frustrated.

  3. alnmedia
    Member
    Posted 15 years ago #

    Same with me!!!!

  4. tdjcbe
    Member
    Posted 15 years ago #

    Well Wordpress is over here: http://wordpress.org/support

    If you;re running Wordpress Multiuser, the software these forums are for, "Same with me!" gets you pointed to this:

    http://codex.wordpress.org/Debugging_WPMU

    (I think it even mentions that in that file or the readme)

    Please provide some specifics and details.

About this Topic

  • Started 15 years ago by iain010100
  • Latest reply from tdjcbe