Cannot modify header ??

Discussion in 'Troubleshooting' started by conan, Sep 21, 2004.

  1. conan

    conan Guest

    Hi there. Having fun with setting up amember. Found most of the answers to my problems here in the forum but here' a new one.

    The member signs in using the 'extra' login form I put in the header.html (In the sidebar), clicks on submit, and is then presented the 'You will be redirected to the protected area' for 3 seconds, then off they go to the area. Works great but I've also got what's below at the top of the same page.

    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/taweb/www.mysite.com/members/login.php:3) in /usr/home/taweb/www.mysite.com/members/plugins/protect/php_include/check.inc.php on line 199

    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/taweb/www.mysite.com/members/login.php:3) in /usr/home/taweb/www.mysite.com/members/plugins/protect/php_include/check.inc.php on line 200


    Very annoying, even if it is just for 3 seconds!! I've tried it with and without the <?php session_start(); ?> at the top of login.php but no luck.

    I don't get the warning if I use the original login.php but it's more practical to have a login form in the left sidebar, and it looks pretty!! :rolleyes:

    Almost done with my masterpiece. Any help removing the warning text please?

    Thanks

    Andrew
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Andrew,
    please try to upload original file amember/login.php, why change it??

    If it doesn't help, please contact support with FTP info and URL, it is definitely something wrongly changed in aMember code in the installation.
  3. tomarriola

    tomarriola Member

    Joined:
    Mar 29, 2003
    Messages:
    140
    Conan, you can put a login form anywhere AND keep the login.php

    This code gives you a login:

    <form method=post action="http://www.yourdoman.com/amember/login.php">
    Login: <input type=text name=amember_login size=10><br>
    Password: <input type=password name=amember_pass size=10><br>
    <input type=submit value="Login">
    </form>

    The above html is found in the amember admin via a link called "Info and some URL"

    Tom
  4. conan

    conan Guest

    Thanks to Tom and Alex for the replies.

    That was the same login script I was using which worked several months ago when I first made the demo site. I tell you what fixed it for me...... replacing the login.php with the original straight out the zip file. No idea what changes I made to it but something must have happened. I don't remember even opening it !!

    Thanks a lot. I'm back in action. :)

    All the best

    Andrew
  5. tonepro1

    tonepro1 aMember Pro Customer

    Joined:
    Oct 13, 2009
    Messages:
    1
    Fixed this problem by changing the bufering in the php ini file to ON

Share This Page