• Resolved natalie85

    (@natalie85)


    I’ve recently installed the latest wordpress version and now I’m having a strange problem with it.
    Some people are able to view news and some visitors can’t and they get error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/directory/header.php:6) in /home/user/public_html/directory/wp-includes/pluggable.php on line 689

    Maybe the problem is caused by editing the index.php file?
    Since I wanted to have the header in main directory (because I’m using wordpress for news only, not for my content)

    I’ve did something like that with index file:

    <?php
    include(‘header.php’);
    ?>
    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>
    <? include(‘footer.php’); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • kmessinger

    (@kmessinger)

    The error I get when going to your site is Warning: Cannot modify header information – headers already sent by (output started at /home/nikki/public_html/rihanna/index.php:2) in /home/nikki/public_html/rihanna/wp-includes/pluggable.php on line 689

    I would think that points to the include header line you added to your index file.

    Thread Starter natalie85

    (@natalie85)

    I’ve removed all files besides wp-content and uploaded from the start and it’s working now

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with headers?’ is closed to new replies.