WordPress.org

Ready to get started?Download WordPress

Forums

I am getting a warning message I dont understand (4 posts)

  1. dougkpga
    Member
    Posted 4 years ago #

    When I try to update a plugin or widget I get this....

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

    can anyone help please?

  2. whooami
    Member
    Posted 4 years ago #

    you have whitespace before or after your opening or closing php tags inside /home/dougkpga/public_html/wp-content/themes/NicheProfitPressV2/functions.php

    based on the line number, after the closing ?>

  3. dougkpga
    Member
    Posted 4 years ago #

    ok i am new this but ill check it out.

    Thanks for your help

  4. dougkpga
    Member
    Posted 4 years ago #

    This is my code in the functions.php

    <?php
    /**
    * @package WordPress
    * @subpackage Classic_Theme
    */
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '',
    'before_title' => '',
    'after_title' => '',
    ));

    ?>

    I have deleted everything after the closing tag.

    when i update it edited successfully - thanks again - ii hope it helps someone else...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.