WordPress.org

Ready to get started?Download WordPress

Forums

nicer-archives page error/ 2 calls to wp-blog-header.php (3 posts)

  1. m8rk
    Member
    Posted 9 years ago #

    error:
    Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /files/home1/s1mps/wordpress/wp-includes/functions.php on line 552

    Both the archives.php and header.php call the wp-blog-header:

    in archives.php:
    $posts_per_page = '-1'; require_once('wp-blog-header.php');

    and in header.php:
    require(ABSPATH . 'wp-blog-header.php');

    archives.php doesn't work without that line, and I don't want to strip it out of the header. How do I fix this please anybody?

    Thanks

  2. m8rk
    Member
    Posted 9 years ago #

    I'm thinking I must have different versions of files conflicting, as I don't have the same problem on my test site. My first site has been upgraded from 1.2 to 1.5a5, and my test site was built with 1.5a5 from scratch.

  3. m8rk
    Member
    Posted 9 years ago #

    I made a new header.php file in the root minus the critical line:

    <?php /* Don't remove this line. */ require(ABSPATH . 'wp-blog-header.php'); ?>

    I changed both offending files that were calling wp-header.php to call header.php instead

    Problem solved - though messy if I want to change themes.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.