Jump to content

Warning: Header may not contain more than a single header.. HELP!


wickedz

Recommended Posts

Hey guys,

I'm new to the WordPress world so take it easy on me :)

 

I hate to be that guy, but I would LOVE step by step instructions on how to remove this error showing up on the top of my blog now after i tried to install a widget.

After reading several forums and trying to do this myself, I realize I'm going to make a larger issue of this.  So to make it easy, i've copied and pasted both the warning and the header.php file below.

 

Thanks in advance guys!

 

----------------

 

**WARNING**

Warning: Header may not contain more than a single header, new line detected. in /home/content/53/7411653/html/canada_urbansocializer_ca/wp-includes/link-template.php on line 2443

 

-----------------

 

***HEADER.PHP***

 

<?php

/**

* Core header file, invoked by the get_header() function

*

* @package Suffusion

* @subpackage Templates

*/

 

global $suffusion_unified_options, $suffusion_interactive_text_fields, $suffusion_translatable_fields, $suffusion_skin_dependence;

foreach ($suffusion_unified_options as $id => $value) {

/**

* Some strings are set interactively in the admin screens of Suffusion. If you have WPML installed, then there may be translations of such strings.

* This code ensures that such translations are picked up, then the unified options array is rewritten so that subsequent calls can pick it up.

*/

if (function_exists('icl_t') && in_array($id, $suffusion_translatable_fields) && isset($suffusion_interactive_text_fields[$id])) {

$value = wpml_t('suffusion-interactive', $suffusion_interactive_text_fields[$id]."|".$id, $value);

}

global $$id;

$$id = $value;

$suffusion_unified_options[$id] = $value;

}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

 

<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

 

<?php

suffusion_document_header();

$suffusion_pseudo_template = suffusion_get_pseudo_template_class();

if (is_singular()) {

wp_enqueue_script('comment-reply');

}

$skin = isset($suf_color_scheme) ? $suf_color_scheme : 'light-theme-gray-1';

$extra_classes = $suffusion_pseudo_template;

if (isset($suffusion_skin_dependence[$skin])) {

$extra_classes = array_merge($extra_classes, $suffusion_skin_dependence[$skin]);

}

$extra_classes[] = $skin;

wp_head();

?>

</head>

<body <?php body_class($extra_classes); ?>>

    <?php suffusion_before_page(); ?>

<?php

suffusion_before_begin_wrapper();

?>

<div id="wrapper" class="fix">

<?php

suffusion_after_begin_wrapper();

?>

<div id="container" class="fix">

<?php

suffusion_after_begin_container();

?>

 

 

 

 

 

 

Link to comment
Share on other sites

Sorry. thanks for the heads up.

As far as the link-template, that's what i thought too, I looked for it in my theme options and it is not there as a php file for me to edit. There's a number of other ones (pagination-posts, layout-blog, shortcodes, etc. etc.) but there is no link-template.

The only other php file I can think of is the 'sidebar below header' (sidebar-below-header.php attached). This error resulted in my adding a widget to the sidebar of this theme (Suffusion).

.........

actually it wouldn't let me upload anything goofily enough.. so have i provided enough to work off of?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.