WordPress.org

Ready to get started?Download WordPress

Forums

Bug fix for Sitemap Generator for WordPress 3.0b6 (4 posts)

  1. 7inspirations
    Member
    Posted 7 years ago #

    Clicking "rebuild the sitemap manually" link in the WP 2.1 admin panel generates a blank page in Firefox 2 and IR6.

    The fix is to replace line 2331 of sitemap.php:

    header("location: " . $this->GetBackLink());

    by the following:

    // Start gamedujour.com patch
    if (!headers_sent())
    {
    header('Location: http://' . $_SERVER['HTTP_HOST'] . $this->GetBackLink());
    }
    else
    {
    echo '<script type="text/javascript">';
    echo 'window.location.href="http://' . $_SERVER['HTTP_HOST'] . $this->GetBackLink() . '";';
    echo '</script>';
    echo '<noscript>';
    echo '<meta http-equiv="refresh" content="0;url=http://' . $_SERVER['HTTP_HOST'] . $this->GetBackLink() . '" />';
    echo '</noscript>';
    }
    // End gamdedujour.com patch

  2. jdybka
    Member
    Posted 7 years ago #

    Thank you

  3. drmike
    Member
    Posted 7 years ago #

    Hmmm, I had wondered about that on my wpmu install. I hadn't seen anyone else report it so i thought it was just me.

    Thanks,
    -drmike

  4. lewong
    Member
    Posted 7 years ago #

    thanks, 7inspirations. drmike pointed out your solution to me (I had asked about this in http://wordpress.org/support/topic/111982?replies=5)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.