• ok, I know this has been covered…. and I have searched and followed the advice, let me show you my issue now.

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/u/s/musiqcentral/html/wp-content/themes/Sea/header.php:2) in /home/content/m/u/s/musiqcentral/html/wp-includes/pluggable.php on line 850

    is the error.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="https://gmpg.org/xfn/11">
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">
    
    <title>
    <?php bloginfo('name'); ?>
    <?php if(is_home()) { ?>
     - <?php bloginfo('description'); ?>
    <?php } ?>
    <?php if(is_single()) { ?>
    <?php wp_title(); ?>
    <?php } ?>
    <?php if(is_404()) { ?>
     - Page Not Found
    <?php } ?>
    <?php if(is_search()) { ?>
     - Search Results for: <?php echo wp_specialchars($s, 1); ?>
    <?php } ?>
    </title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <script src="<?php bloginfo('template_directory'); ?>/js/heightMatch.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/topmenudynamic.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/dropdown.js" type="text/javascript"></script>
    
    <?php wp_head(); ?>
    
    </head>
    <body>
    
    <div id="container">
    <!-- Include the Google Friend Connect javascript library. -->
    <script type="text/javascript" src="https://www.google.com/friendconnect/script/friendconnect.js"></script>
    <!-- Define the div tag where the gadget will be inserted. -->
    <div id="div-1234521535868"></div>
    <!-- Render the gadget into a div. -->
    <script type="text/javascript">
    var skin = {};
    skin['BORDER_COLOR'] = '#cccccc';
    skin['ENDCAP_BG_COLOR'] = '#e0ecff';
    skin['ENDCAP_TEXT_COLOR'] = '#333333';
    skin['ENDCAP_LINK_COLOR'] = '#0000cc';
    skin['ALTERNATE_BG_COLOR'] = '#ffffff';
    skin['CONTENT_BG_COLOR'] = '#ffffff';
    skin['CONTENT_LINK_COLOR'] = '#0000cc';
    skin['CONTENT_TEXT_COLOR'] = '#333333';
    skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
    skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
    skin['CONTENT_HEADLINE_COLOR'] = '#333333';
    skin['POSITION'] = 'top';
    skin['DEFAULT_COMMENT_TEXT'] = '- add your comment here -';
    skin['HEADER_TEXT'] = 'Comments';
    google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
    google.friendconnect.container.renderSocialBar(
     { id: 'div-1234521535868',
       site: '06099073935428622981',
       'view-params':{"scope":"SITE","features":"video,comment","showWall":"true"}
     },
      skin);
    </script>
    
    <!-- header -->
    <div id="header">
    <br />
    	<div id="header_logo">
    	<h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
    	<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
    
    	<div id="header_ad">
    	<?php include (TEMPLATEPATH . "/468_60.php"); ?>
    	</div>
    
    <div class="clear"></div>
    </div>
    <br />
    <!-- end -->
    
    <!-- page menu and search -->
    <div id="top">
    
    	<ul id="pagemenu">
    	<?php wp_list_pages('sort_column=post_date&title_li=&depth=1'); ?>
    	<li><a href="https://www.twittrblog.com/forum">Forums</a></li>
    	</ul>
    
    	<div id="searchbar">
    	<form method="get" action="<?php bloginfo('url'); ?>/" class="searchform" style="float: right;">
    	<fieldset>
    	<label class="searchlabel"><?php _e('Search Blog'); ?></label>
    	<input type="text" value="<?php the_search_query(); ?>" name="s" class="searchterm" />
    	<input type="submit" value="Search" class="searchbutton" />
    	</fieldset>
    	</form>
    	</div>
    
    <div class="clear"></div>
    </div>
    <!-- end -->
    
    <div class="clear"></div>
    
    <!-- category menu -->
    <div id="bar">
    
    	<ul id="catmenu">
    	<li<?php if(!is_category() && !is_page()) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('home'); ?>/">Home</a></li>
    	<?php wp_list_categories('hide_empty=0&depth=1&title_li='); ?>
    	</ul>
    
    	<div id="toprss"><a href="<?php bloginfo('rss2_url'); ?>">SUBSCRIBE TO RSS FEED</a></div>
    
    <div class="clear"></div>
    </div>

    is my header… I can’t fix this issue line two it the language attributes line… I tried using straight html here but it just moved down to line 6

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Twittrblog

    (@musiqcentral)

    Samboll.. I did this…. i stated this in my post….

    try going to my site https://www.twittrblog.com and try to register… I am using part of prologue theme (automattic) in the top of the index… this is when i get the error when i try to post from this

    Thread Starter Twittrblog

    (@musiqcentral)

    Here is my index page with the prologue Twitter like feature. I removed a comment within that called the header but still this doesn’t solve the problem

    <?php get_header(); ?>
    
    <div id="content">
    
    <div id="postform">
    <?php
    if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] ) && $_POST['action'] == 'post' ) {
    	if ( ! is_user_logged_in() )
    		auth_redirect();
    
    	if( !current_user_can( 'publish_posts' ) ) {
    		wp_redirect( get_bloginfo( 'url' ) . '/' );
    		exit;
    	}
    
    	check_admin_referer( 'new-post' );
    
    	$user_id		= $current_user->user_id;
    	$post_content	= $_POST['posttext'];
    	$tags			= $_POST['tags'];
    
    	$char_limit		= 40;
    	$post_title		= strip_tags( $post_content );
    	if( strlen( $post_title ) > $char_limit ) {
    		$post_title = substr( $post_title, 0, $char_limit ) . ' ... ';
    	}
    
    	$post_id = wp_insert_post( array(
    		'post_author'	=> $user_id,
    		'post_title'	=> $post_title,
    		'post_content'	=> $post_content,
    		'tags_input'	=> $tags,
    		'post_status'	=> 'publish'
    	) );
    
    	wp_redirect( get_bloginfo( 'url' ) . '/' );
    	exit;
    }
    
    if( current_user_can( 'publish_posts' ) ) {
    	require_once dirname( __FILE__ ) . '/post-form.php';
    }
    ?>
    </div>
    	<div id="column">
    
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    	<div class="post">
    		<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    		<div class="postinfo">
    		<div class="info">Posted by <?php the_author_posts_link(); ?> on <?php the_time('j F, Y'); ?></div>
    		<div class="commentnum"><?php comments_popup_link('No comments yet', '1 comment so far', '% Comments'); ?></div><div class="clear"></div>
    		</div>
    		<div class="category">This item was filled under <?php the_category(', '); ?></div>
    		<div class="entry">
    
    		<?php the_content('Continue reading...'); ?><div class="clear"></div>
    
    		</div>
    		<?php the_tags('<div class="tags">Tagged with: ', ', ', '</div><div class="clear"></div>'); ?>
    	</div>
    	<?php endwhile; ?>
    
    	<!-- Plugin Navigation -->
    	<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    	<!-- End -->
    
    	<?php else : ?>
    	<div class="post">
    	<h1>No posts were found.</h1>
    	Sorry! the page you are looking for does not exist.
    
    	<h3>Blog Search</h3>
    	<?php include(TEMPLATEPATH."/searchform.php"); ?>
    	</div>
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <div class="clear"></div>
    </div>
    
    <?php get_footer(); ?>

    —————————————-
    and my newest header.php
    —————————————-

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">
    <title><?php bloginfo('name'); ?>
    <?php if(is_home()) { ?> - <?php bloginfo('description'); ?>
    <?php } ?>
    <?php if(is_single()) { ?>
    <?php wp_title(); ?>
    <?php } ?>
    <?php if(is_404()) { ?>
     - Page Not Found
    <?php } ?>
    <?php if(is_search()) { ?>
     - Search Results for: <?php echo wp_specialchars($s, 1); ?>
    <?php } ?>
    </title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <script src="<?php bloginfo('template_directory'); ?>/js/heightMatch.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/topmenudynamic.js" type="text/javascript"></script>
    <script src="<?php bloginfo('template_directory'); ?>/js/dropdown.js" type="text/javascript"></script>
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    <?php if ( strstr( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) ) { ?>
    <meta name="viewport" content="width=320" />
    <style type="text/css">
    #header_img, #sidebar, #postbox .avatar {
    	display: none;
    }
    
    #wrapper, #main {
    	width: 320px;
    	padding: 0;
    	float: none;
    	margin-left: 3px;
    }
    
    h1 {
    	font-size: 2em;
    	font-family: Georgia, "Times New Roman", serif;
    	margin-left: 0;
    	margin-top: 5px;
    	margin-bottom: 10px;
    }
    
    h2 {
    	font-size: 1.2em;
    	font-weight: bold;
    	color: #555;
    }
    
    #postbox form {
    	padding: 5px;
    }
    
    #postbox textarea#posttext {
    	width: 300px;
    	height: 50px;
    	border: 1px solid #c6d9e9;
    	margin-bottom: 10px;
    	padding: 2px;
    	font: 1.4em/1.2em "Lucida Grande",Verdana,"Bitstream Vera Sans",Arial,sans-serif;
    }
    #postbox input#tags,  #commentform #comment {
    	font-size: 1.2em;
    	padding: 2px;
    	border: 1px solid #c6d9e9;
    	width: 300px;
    	margin-left: 0;
    }
    
    #postbox label {
    	color: #333;
    	display: block;
    	font-size: 1.2em;
    	margin-bottom: 4px;
    	margin-left: 0;
    	font-weight: bold;
    }
    
    #postbox input#submit {
    	font-size: 1.2em;
    	margin-left: 250px;
    	margin-top: 5px;
    }
    
    #main ul {
    	list-style: none;
    	margin-top: 16px;
    	margin-left: 0;
    }
    
    #wpcombar {
    	display: none;
    }
    body {
    	padding-top: 0;
    }
    </style>
    <?php } ?>
    
    </head>
    <body>
    
    <div id="container">
    <!-- Include the Google Friend Connect javascript library. -->
    <script type="text/javascript" src="https://www.google.com/friendconnect/script/friendconnect.js"></script>
    <!-- Define the div tag where the gadget will be inserted. -->
    <div id="div-1234521535868"></div>
    <!-- Render the gadget into a div. -->
    <script type="text/javascript">
    var skin = {};
    skin['BORDER_COLOR'] = '#cccccc';
    skin['ENDCAP_BG_COLOR'] = '#e0ecff';
    skin['ENDCAP_TEXT_COLOR'] = '#333333';
    skin['ENDCAP_LINK_COLOR'] = '#0000cc';
    skin['ALTERNATE_BG_COLOR'] = '#ffffff';
    skin['CONTENT_BG_COLOR'] = '#ffffff';
    skin['CONTENT_LINK_COLOR'] = '#0000cc';
    skin['CONTENT_TEXT_COLOR'] = '#333333';
    skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
    skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
    skin['CONTENT_HEADLINE_COLOR'] = '#333333';
    skin['POSITION'] = 'top';
    skin['DEFAULT_COMMENT_TEXT'] = '- add your comment here -';
    skin['HEADER_TEXT'] = 'Comments';
    google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
    google.friendconnect.container.renderSocialBar(
     { id: 'div-1234521535868',
       site: '06099073935428622981',
       'view-params':{"scope":"SITE","features":"video,comment","showWall":"true"}
     },
      skin);
    </script>
    
    <!-- header -->
    <div id="header">
    
    	<div id="header_logo">
    	<h1 class="blogtitle"><a href="<?php bloginfo('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
    	<div class="description"><?php bloginfo('description'); ?></div>
    	</div>
    
    	<div id="header_ad">
    	<?php include (TEMPLATEPATH . "/468_60.php"); ?>
    	</div>
    
    <div class="clear"></div>
    </div>
    
    <!-- end -->
    
    <!-- page menu and search -->
    <div id="top">
    
    	<ul id="pagemenu">
    	<?php wp_list_pages('sort_column=post_date&title_li=&depth=1'); ?>
    	<li><a href="https://www.twittrblog.com/forum">Forums</a></li>
    	</ul>
    
    	<div id="searchbar">
    	<form method="get" action="<?php bloginfo('url'); ?>/" class="searchform" style="float: right;">
    	<fieldset>
    	<label class="searchlabel"><?php _e('Search Blog'); ?></label>
    	<input type="text" value="<?php the_search_query(); ?>" name="s" class="searchterm" />
    	<input type="submit" value="Search" class="searchbutton" />
    	</fieldset>
    	</form>
    	</div>
    
    <div class="clear"></div>
    </div>
    <!-- end -->
    
    <div class="clear"></div>
    
    <!-- category menu -->
    <div id="bar">
    
    	<ul id="catmenu">
    	<li<?php if(!is_category() && !is_page()) { ?> class="current-cat"<?php } ?>><a href="<?php bloginfo('home'); ?>/">Home</a></li>
    	<?php wp_list_categories('hide_empty=0&depth=1&title_li='); ?>
    	</ul>
    
    	<div id="toprss"><a href="<?php bloginfo('rss2_url'); ?>">SUBSCRIBE TO RSS FEED</a></div>
    
    <div class="clear"></div>
    </div>

    Thread Starter Twittrblog

    (@musiqcentral)

    sorry for the bump, but I have been waiting for a response and resolution, I have followed the codex to a tee is there ANY thing else that it can be?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot modify headers’ is closed to new replies.