-2

The website encountered an unexpected error. Please try again later. My drupal version is 9.2.5. How to open dev mode

1
  • Honestly need a question and description here.
    – Kevin
    Commented Sep 17, 2021 at 2:38

1 Answer 1

2

To show all error messages with backtrace information, update <drupal_root>/sites/default/settings.php. Change the following line to verbose

$config['system.logging']['error_level'] = 'verbose';

Remember to change it back for production.

4
  • Bug my drupal version is 9.2.5, this setting not working. why?
    – Brian
    Commented Sep 17, 2021 at 2:57
  • Do you also have a <drupal_root>/sites/default/settings.local.php file? You might need to update this instead.
    – tyler36
    Commented Sep 17, 2021 at 3:01
  • Oh, thanks, it work now
    – Brian
    Commented Sep 17, 2021 at 3:03
  • Glad you got it working! 😄
    – tyler36
    Commented Sep 17, 2021 at 3:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.