PHP Version

Discussion in 'aMember Pro v.4' started by meduteam, Jun 19, 2012.

  1. meduteam

    meduteam New Member

    Joined:
    Mar 9, 2012
    Messages:
    7
    Hi guys,

    are there any problems known in V4 with PHP Version
    5.3.2-1ubuntu4.15


    Functions like
    if (Am_Lite::getInstance()->isLoggedIn() ){ ?>

    dont seem to work anymore??

    Any ideas?

    best
    M
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    is quite unclear. What exactly happens?

    P.S. Make sure you are running code under EXACTLY same domain as where you login into aMember.
    http://example.com and http://www.example.com are different domains and may have different cookies.
  3. meduteam

    meduteam New Member

    Joined:
    Mar 9, 2012
    Messages:
    7
    Hi Alex,

    we are using the following code
    <?php if (Am_Lite::getInstance()->isLoggedIn() ){ ?>

    //show paid version

    <?php } else {?>

    //show free version

    <?php } ?>

    Even if you are logged in you always get to see the free version.
    Also shortcodes seems stop working
    like [am4user var=login] , output is empty, which we need to append to the URL...

    This es exactly the same Domain, just PHP was updated...
    Before everthing worked fine.

    best
    m
  4. robw

    robw CGI-Central Partner

    Joined:
    Dec 18, 2007
    Messages:
    287
    You don't say clearly, but it sounds like you are using wordpress??? (you mention short codes)

    Have you checked you still have aMember wordpress plugin installed, active and correctly configured?

    Also ensure that it is the latest version from your amember/application/default/plugins/protect/wordpress/upload_to_wordpress/ folder

    Cheers
    Rob
  5. meduteam

    meduteam New Member

    Joined:
    Mar 9, 2012
    Messages:
    7
    ok,

    problem seems to be solved.
    session.save_path seems to be the problem.
    deleted it ... worked again.
    thx
    m

Share This Page