Vote up!

13

How to turn off deprecation warnings in Drupal 9

This has troubled me for some time, since the Drupal installation I'm using is in-between php versions 8 and 7. I'm on php 8.1, but a lot of the modules were written for php 7, and the upgrade process has never been complete, and expected to never be.

In any event, after some trial and error, having this line in sites/default/settings.php solved it for me:

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

I suspect you can even raise the error level from 'none' to 'error' and still be fine.

 

Please login or register to post a comment.