Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

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

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

Undefined variable: _SESSION


Reply


3 Posts   2448 Views

Avatar
Dave L

Community Member, 60 Posts

24 February 2010 at 12:33am

Edited: 24/02/2010 1:31am

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

Avatar
Dave L

Community Member, 60 Posts

24 February 2010 at 1:31am

Edited: 24/02/2010 1:31am

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

Avatar
Sean

Forum Moderator, 922 Posts

25 February 2010 at 11:37pm

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!