Site not sending verification emails?

Discussion in 'PHP' started by hash1, Jan 20, 2009.

  1. #1
    Hello all, my sites not sending out verification emails which is a big problem because I cant create my admin account because of it.

    Ive tried to manual activate and it just says it sent but I dont receive any email and get a weird php error at the top

    
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home2/bestbuxn/public_html/giftcroc/includes/header.php:9) in /home2/bestbuxn/public_html/giftcroc/sessions.php on line 8
    Code (markup):
    If some one can help I would be so grateful.

    Thanks
     
    hash1, Jan 20, 2009 IP
  2. bugcoder

    bugcoder Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    this error mostly come if something is being echoed before on page where redirection is done.
    share your code to know exact error line
     
    bugcoder, Jan 20, 2009 IP
  3. GreatMetro

    GreatMetro Peon

    Messages:
    117
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Make sure you have no spaces or line breaks before the session_start() function call. And no HTML either.
     
    GreatMetro, Jan 20, 2009 IP
  4. fatedesign

    fatedesign Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Don't include spaces or line breaks!
     
    fatedesign, Jan 20, 2009 IP
  5. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #5
    header.php must be included before any line like
    <?php
    include('header.php');
    any other code here
    ?>

    or remove session_start() from header.php
    and write session_start() at the top of php page like
    <?php
    session_start();
    any other code here
    ?>

    also u can hide the error with error_reporting(0) like
    <?php
    code code
    error_reporting(0);
    code
    ?>

    hope ugot it
     
    crivion, Jan 21, 2009 IP