• Hey guys,

    i’m usin’ WP-MEMBERS to protect my Podcastarea-Single.php’s. Login and stuff works correctly but register doesnt work right.

    It says the following in the “congratulations for register”-window:

    #############################
    Warning: Cannot modify header information – headers already sent by (output started at /homepages/14/d166908482/htdocs/podcast/wp-content/themes/rin_dennis/header.php:5) in /homepages/14/d166908482/htdocs/podcast/wp-content/plugins/wp-members.php on line 146

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/14/d166908482/htdocs/podcast/wp-content/themes/rin_dennis/header.php:5) in /homepages/14/d166908482/htdocs/podcast/wp-content/plugins/wp-members.php on line 147

    Congratulations!

    Your registration was successful.

    Click here to continue.

    ###############################

    What can I do to make it work without that text?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter juliusrockt

    (@juliusrockt)

    yeah I see!

    now I know, my problem is here in the header:

    ###########
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    ###########

    But where is the problem?

    The whole Headercode:

    ############
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archiv <?php } ?> <?php wp_title(); ?></title>
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
    <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’); ?>” />

    <?php wp_head(); ?>
    </head>
    <body>
    ###############

    The installation instructions are pretty extensive here: https://butlerblog.com/wp-members/

    This plugin apparently requires modifying a number of files…

    Thread Starter juliusrockt

    (@juliusrockt)

    yeah I know and i modified it! it’s only the single.php!

    If you are using 1.6, you shouldn’t be having any header problems. In earlier versions, the cookies for login were sent after the header, which wasn’t a problem for sites that buffered the output. I changed a couple of things in 1.6 to allow for plugin functions to run prior the header.

    If you are not buffering page output (it looks like you’re not), make sure you’ve got this:

    <?php if (function_exists(‘wpmem’)) { $securify = wpmem(); }?>

    before this:

    <?php get_header(); ?>

    in your template.

    Also, I have updated the instructions, done some cleanup, and fixed a couple things in release 1.6.1 (Most recent version is always https://butlerblog.com/wp-downloads/wp-members.zip). You might want to try that. If you still can’t get it to work after that, email me and we’ll see if we can work through it.

    Hi There,

    I recently tried implementing your WP-Member Plugin for WordPress. It all works (ie getting it to write the new fields the the database, blocking the user etc. My problem is that when the user regesters, they get resgestreation successful, but they also get:

    Warning: Cannot modify header information – headers already sent by (output started at.. on line 147 AND a second one that is the same but states 148.

    I’ve used the version of you single.php file you supplied with the download. I also have the most recent version installed, and I’m using a fresh installation of WordPress with Kurick theme set.

    What am I doing wrong?

    juliusrockt above has the exact same problem as me.

    Please feel free to email me: david[dot]coe[at]aceville[dot]co[dot]uk

    Regards

    David Coe

    It seems that when I fixed the login for non-buffered output, I neglected the registration process which logs in the user upon successful registration. I will be fixing this and will release an upgrade.

    In the meantime, a work-around is to go to line 359 in wp-members.php and comment out wpmem_login();

    For you non-php types, that means change this:

    wpmem_login();

    to this:

    //wpmem_login();

    That will get you working until I can get an upgrade out (probably this weekend). The only problem with the fix is that upon registration, the user is not logged in so when they go another protected post they will have to actually login.

    Hope this helps. When the fix is done it will be version 1.6.2 and will be available here: https://butlerblog.com/wp-members/

    yes it helps. but pls send the 1.6.2 !!!
    thnx
    enrico

    Do you plan to add a double-optin email system with the first registration AND password retrive?

    I ended up making a few fixes here, a few changes there, and ended up with version 1.8.

    This completely corrects the issue discussed in this thread (thought we had it with the login fix in 1.4/1.5) but now the registration process is corrected and all cookies are done prior to the header.

    I also added a password retrieve (something I had been meaning to do).

    All of this is in version 1.8 which can be downloaded at https://butlerblog.com/wp-members/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘wp-members doesn’t work right for me.’ is closed to new replies.