Session problem

Discussion in 'Troubleshooting' started by xe912, Sep 8, 2006.

  1. xe912

    xe912 New Member

    Joined:
    Feb 13, 2006
    Messages:
    15
    Hello, Alex,

    in Amember 3.04 i get an error in pages, where i use php_include protection...

    Notice: Undefined variable: _SESSION in c:\serveris\www\basket\amember\plugins\protect\php_include\check.inc.php on line 34

    what is it?
  2. xe912

    xe912 New Member

    Joined:
    Feb 13, 2006
    Messages:
    15
    Could you help me to get rid of this error?
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Which PHP version are you using?
    replace edit file
    amember/plugins/protect/php_include/check.inc.php
    replace line
    if (!count($_SESSION))
    to
    if (!count(@$_SESSION))

Share This Page