I have a bug in my code when working in the development environment.
Fatal error: Declaration of MonologLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrLogLoggerInterface::emergency($message, array $context = []) in ....
I have debugged this and found that removing psr from the WPML static autoload resolves this. Probably due to WPML using older PSR standards, I was wondering if there was any future of updating these?
Or if I have to resort to some wrapper to ignore logging within WPML during runtime?
It appears that the Logger within WPML conflicts with Laravel's Illuminate/Log package
I am using Bedrock/Sage/Acorn. I had this bug when upgrading Acorn to v4. And after the community helped me we pinpointed it to WPML
There is an internal ticket where it is mentioned that the fix for this may end up in WPML 4.7, but this may change so I can't be certain when exactly.
I will keep this thread updated.
Regards,
Bruno Kos
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.