WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
[resolved] Header already sent error in editprofile page (5 posts)

  1. nlsubtitles
    Member
    Posted 2 years ago #

    When a profile is edited on the frontend everything works fine, except if the password is changed.

    The function works (the password is changed) but I get about 10 errors:
    Warning: Cannot modify header information - headers already sent by (output started at header.php:4) in /wp-includes/pluggable.php on line 686,687 and so on...

    These are the first 4 lines of my header.php :
    <!DOCTYPE html>
    <html dir="ltr" lang="en-US" xmlns:fb="http://ogp.me/ns/fb#">
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />

    I can't find anything thats wrong there.

    And the line in pluggable.php refers to some setcookies functions.

    I have found some other thread about this issue, and you posted a solution (This Thread), however the thread is 5/6 months old and the solution does not work anymore..

    Anyone got any answers for this error?
    Thanks!

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. nlsubtitles
    Member
    Posted 2 years ago #

    I've tried this with the TwentyTen and TwentyEleven theme, both give the same error. The error line is always where the php in header.php starts.

  3. nlsubtitles
    Member
    Posted 2 years ago #

    Fixed!

    Added this code to my theme functions.php file:

    //allow redirection, even if my theme starts to send output to the browser
    add_action('init', 'do_output_buffer');
    function do_output_buffer() {
            ob_start();
    }
  4. globalreporter
    Member
    Posted 2 years ago #

    Hi, I'm out of topic, but, please, I'd like to know how you linked the profile editing page with the User Frontend Edit page (where I wrote the code [wpuf_editprofile]) :)
    Is it possible for you to tell me such basical information? I didn't find an answer yet!

    Thank you,
    Rocco :)

  5. nlsubtitles
    Member
    Posted 2 years ago #

    I do not understand your question? If you put the [wpuf_editprofile] shortcode into a certain page, then that page is your User Frontend editprofile page..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic