Jump to:

4951 Posts in 13999 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Undefined variable: _SESSION

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2348 Views
  • Dave L
    Avatar
    Community Member
    56 Posts

    Undefined variable: _SESSION Link to this post

    Hi,

    I'm getting an error when trying to run my website on our test server. Basically the site works fine for the most part but I'm getting this error in my logs:

    [23-Feb-2010 03:29:58] Warning at [edit]/sapphire/core/control/Director.php line 120: Undefined variable: _SESSION (http://[edit]/)

    I believe this error is also what's preventing log ins from working. I've done a check on my encoding:

    find ./ -exec file -i {} \;

    and all of my files (mysite/* and themes/*) are us-ascii

    Does anyone know this problem?

    tia

    Dave

  • Dave L
    Avatar
    Community Member
    56 Posts

    Re: Undefined variable: _SESSION Link to this post

    Turns out this was an extra space after one of my php closing tags ?>. Found this by looking into the "Redirecting to..." issue I was also noticing.

    http://silverstripe.org/archive/show/217783#post217783

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Undefined variable: _SESSION Link to this post

    I think there's a job for someone to go through the core and remove all the ?> end tags. These little guys cause a lot of problems!

    2348 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.