Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to do a drush cache-rebuild
I got the following error:
PHP Fatal error: Cannot use Monolog\Logger as Logger because the name is already in use in /***/modules/contrib/monolog/src/Logger/MonologLogLevel.php on line 11
It seems to be complaining that use Monolog\Logger;
shadows your own Drupal\monolog\Logger\Logger
class.
Comment | File | Size | Author |
---|---|---|---|
#2 | logger_name_conflict-2629692-2.patch | 1.75 KB | mscharley |
Comments
Comment #2
mscharley CreditAttribution: mscharley as a volunteer commentedComment #4
ParisLiakos CreditAttribution: ParisLiakos commentedpatch didnt apply, applied it manually and slightly changed naming, thanks!