Uncaught Error: Class "Monolog\Logger" not found
Justman100 opened this issue · 8 comments
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\Logger
class exists in Monolog. Make sure you don't have a corruptedvendor/monolog/monolog
folder (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
psr
PHP 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
@Justman100 yeah sorry i have no idea.. this seems to be an environment issue.
Fatal error: Uncaught Error: Class "Monolog\Logger" not found in C:\wamp\www\donor\modules\Vtiger\helpers\Logger.php:83 Stack trace: #0 C:\wamp\www\donor\include\logging.php(24): require_once() #1 C:\wamp\www\donor\include\database\PearDatabase.php(16): require_once('C:\wamp\www\don...') #2 C:\wamp\www\donor\include\utils\UserInfoUtil.php(12): require_once('C:\wamp\www\don...') #3 C:\wamp\www\donor\vtlib\Vtiger\Access.php(10): include_once('C:\wamp\www\don...') #4 C:\wamp\www\donor\vtlib\Vtiger\ModuleBasic.php(10): include_once('C:\wamp\www\don...') #5 C:\wamp\www\donor\vtlib\Vtiger\Module.php(12): include_once('C:\wamp\www\don...') #6 C:\wamp\www\donor\prospect.php(3): include_once('C:\wamp\www\don...') #7 {main} thrown in C:\wamp\www\donor\modules\Vtiger\helpers\Logger.php on line 83
how to resolve this error in vtiger v- 8