Cannot modify headers
-
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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Cannot modify headers’ is closed to new replies.