[resolved] Warning when editing pages. (2 posts)

  1. FostinWD
    Posted 6 years ago #

    I'm getting this warning when trying to edit my pages name or content:

    Warning: Cannot modify header information - headers already sent by (output started at /home/ladyga/public_html/test/wp-content/themes/unknown/functions.php:11) in /home/ladyga/public_html/test/wp-includes/pluggable.php on line 865

    this is my site my site and I've widgetized my sidebar, so according to all the tutorials out there I had to create a functions.php file with this code on it:

    if ( function_exists('register_sidebar') )
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h2>',
    'after_title' => '</h2>',

    I did so, in the sidebar.php I added the codes like this:

    <div id="sidebar-a">
    <div class="padding">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    			<?php include (TEMPLATEPATH . '/searchform.php'); ?>.       
    <?php wp_get_archives('type=monthly'); ?>
    <?php wp_list_categories('show_count=1&title_li='); ?>
    <?php endif; ?>

    Why is my functions.php is affecting other admin files?? I don't know what I'm doing wrong..

  2. FostinWD
    Posted 6 years ago #

    there was a space in the functions.php file..

Topic Closed

This topic has been closed to new replies.

About this Topic