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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Turn Off Debug Mode!


Go to End


1914 Views

Avatar
holy noli

Community Member, 6 Posts

22 March 2010 at 10:16pm

Firstly, Silverstripe is amazing. I am a novice and use Joomla but I will be moving to silverstripe as soon as I can manage it. Really great system.

MY PROBLEM
I thought debug mode might show me the file names so I can customize the admin easier

I added the following code to config.php

Director::set_environment_type("dev");

I then set it to
Director::set_environment_type("live");

Debug mode was not what I expected. I am a novice and it is generating an error or stuck in debug mode. I cannot be sure. I have removed the code from config.php but it is still showing the error.

I would appreciate it if someone could tell me how to get rid of debug mode/this error

*********************************************************************************
[Notice] Undefined variable: _SESSION
GET /demo/admin

Line 120 in C:\xampp\htdocs\demo\sapphire\core\control\Director.php
***********************************************************************************

Thank you.