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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Silverstripe wont change to dev environment


Go to End


483 Views

Avatar
ivke013

Community Member, 1 Post

4 July 2016 at 10:26pm

Edited: 04/07/2016 10:29pm

My site is on live online server, after installing few modules (user definded forms) via SSH and Composer i get 500 internal server error. I try to run /dev/build/?flush but nothing is happening. Again the some error!

I check in chrome to inspect in network tab and there is also 500. So dev env in not enabled.

I try to enable it:
_config.php

Config::inst()->update("Director", "environment_type", "dev");

config/config.yml :

Director:
  environment_type: 'dev'

And nothing is happening. It wont to change on dev env to allowe me to run dev/build?flush. I realy dont know what i do wrong.

I also try this way inside _config.php

ini_set('display_errors', 1);
error_reporting(E_ALL);
Director::set_environment_type('dev');
SS_Log::add_writer(new SS_LogFileWriter('./logs/'), SS_Log::WARN, '<=');

And nothing again.

How can i slove this problem and back my site to work again?