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.

bug: Undefined variable: SESS, mod.forum_core.php forum version 3.1.0 (20100712)

July 14, 2010 5:22pm

Subscribe [3]
  • #1 / Jul 14, 2010 5:22pm

    Max Lazar

    341 posts

    Severity: Notice
    
    Message: Undefined variable: SESS
    
    Filename: forum/mod.forum_core.php
    
    Line Number: 7156

    I believe it legacy of EE1.6.x

    if ($author_id != $SESS->userdata['member_id'])
  • #2 / Jul 14, 2010 5:38pm

    Ingmar

    29245 posts

    Yes, this code is no longer valid in EE 2.0. Try

    $this->EE->session->userdata['member_id']

    instead. Moving.

  • #3 / Jul 14, 2010 5:59pm

    Max Lazar

    341 posts

    yes, I fixed it the same way, but to be clear -  it’s still in your Forum module core, last version, function “Forum Delete Confirmation Page” 😊 so, its bug (I don’t really understand why is was moved to CodeShare Corner) - I add it into bug tracking.

  • #4 / Jul 14, 2010 6:16pm

    Ingmar

    29245 posts

    That was my mistake, then, I am sorry: I had assumed this was in your template code somewhere. Moving back to Tech Support for now.

  • #5 / Jul 15, 2010 1:55am

    John Henry Donovan

    12339 posts

    Thanks for the report Max. Fixed for next release. Report here for cross reference
    https://support.ellislab.com/bugs/detail/13146/

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

ExpressionEngine News!

#eecms, #events, #releases