Error Related Config Lines in SilverStripe

If you can’t login to SilverStripe CMS and can’t reset your username and password. Then you can set your username and password for SilverStripe using lines in mysite/_config.php:

Security::setDefaultAdmin('username','password');

To get the errors to be mailed to you use the lines in mysite/_config.php

SS_Log::add_writer(new SS_LogEmailWriter('me@mydomain.com'), SS_Log::ERR);

Force the Silverstripe to show you the errors if got any by setting the environment type using this line in mysite/_config.php

Director::set_environment_type("dev");

After adding those lines you in your _config.php file you always need to build the database by using address http://www.yoursitename.com/dev/build?flush=1

Looking for quality SilverStripe Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , | Posted under SilverStripe CMS | RSS 2.0

Author Spotlight

Teet Bergmann

Teet Bergmann

I'm a freelance web designer from Estonia. Mostly doing sites using Silverstripe, magento, prestashop, wordpress.

Leave a Reply

Your email address will not be published. Required fields are marked *


+ 9 = 13

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>