ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

php error

August 11, 2012 9:07am

Subscribe [1]
  • #1 / Aug 11, 2012 9:07am

    jam11301

    3 posts

    when i try to run this


    <?php
    global $SESS;
    $mid = $SESS->userdata[‘member_id’];
    ?>

    i get this error

    A PHP Error was encountered

    Severity: Notice

    Message: Trying to get property of non-object

    Filename: libraries/Functions.php(680) : eval()‘d code

    Line Number: 3

  • #2 / Aug 13, 2012 11:27am

    Lisa Wess

    20502 posts

    Hi, jam11301,

    This is in EE 2?  On EE 2, you need to use CodeIgniter classes, see the session class for this particular issue.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases