Support » Fixing WordPress » nicer-archives page error/ 2 calls to wp-blog-header.php

  • 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?


Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘nicer-archives page error/ 2 calls to wp-blog-header.php’ is closed to new replies.