monolog
monolog copied to clipboard
Uncaught Error: Class "Monolog\Logger" not found
Hi, if i use Composer, this comes:
PHP Fatal error: Uncaught Error: Class "Monolog\Logger" not found in /home/mt/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:60 Stack trace:
I use the version 3.5.0
This error does not make any sense. The Monolog\Logger class exists in Monolog. Make sure you don't have a corrupted vendor/monolog/monolog folder (you can use composer reinstall monolog/monolog)
This error does not make any sense. The
Monolog\Loggerclass exists in Monolog. Make sure you don't have a corruptedvendor/monolog/monologfolder (you can usecomposer reinstall monolog/monolog)
Still comes
It occurs a another error too
PHP Fatal error: Declaration of Monolog\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::emergency($message, array $context = []) in /home/mt/vendor/monolog/monolog/src/Monolog/Logger.php on line 681
Do you have the psr PHP extension installed ? If yes, please remove it. This extension is totally broken because it does not account for the fact that all psr/* packages have multiple versions. The working way is to rely on the userland implementation of the PSR interfaces which are managed by composer.
Do you have the
psrPHP extension installed ? If yes, please remove it. This extension is totally broken because it does not account for the fact that allpsr/*packages have multiple versions. The working way is to rely on the userland implementation of the PSR interfaces which are managed by composer.
Hmm, removed! But still comes
@Seldaek
@Justman100 yeah sorry i have no idea.. this seems to be an environment issue.