aMember API breaks if session_start() is called before include

Discussion in 'Integration' started by igpman, Aug 20, 2016.

  1. igpman

    igpman Member

    Joined:
    Mar 17, 2010
    Messages:
    72
    The title explains it all pretty much. Even if I create a file that is just two lines, the aMember API breaks with a Fatal Error message.

    Here is the code:
    PHP:
    session_start();
    include_once 
    'account/bootstrap.php';
    It produces this error:
    I need to find a fix for this urgently, and I can not remove calls to session_start() from my integration before including the bootstrap file. Any help will be much appreciated.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    aMember starts session from bootstrap.php. So it actually execute session_start() call too, so you need to remove these calls before bootstrap include.

Share This Page