You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package name and version: Google Api client Google\Client v2.12.11 and Monolog 2.3.5
Steps to reproduce
When google Client class tries to build a Default Logger using method createDefaultLogger() at line 1124 the monolog StreamHandler class constructor cannot find expandIniShorthandBytes() in Monolog\Utils class.
Following is the stacktrace from
Error: Call to undefined method Monolog\Utils::expandIniShorthandBytes() in /home/portalgeek/public_html/modules/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:58
Stack trace:
#0 /home/portalgeek/public_html/modules/vendor/google/apiclient/src/Client.php(1136): Monolog\Handler\StreamHandler->__construct('php://stderr', 250) #1 /home/portalgeek/public_html/modules/vendor/google/apiclient/src/Client.php(1124): Google\Client->createDefaultLogger() #2 /home/portalgeek/public_html/modules/vendor/google/apiclient/src/Service/Resource.php(162): Google\Client->getLogger() #3 /home/portalgeek/public_html/modules/vendor/google/apiclient-services/src/Directory/Resource/Users.php(70): Google\Service\Resource->call('get', Array, 'Google\Service\...') #4 /home/portalgeek/public_html/modules/addons/merlin_module/GClient2.php(65): Google\Service\Directory\Resource\Users->get(NULL)
There seems to be some lib conflict between Google and Monolog on expandIniShorthandBytes(). Did anyone have this same issue? I tried looking on the internet for something but no clues.
The text was updated successfully, but these errors were encountered:
I'm running the exact same versions in multiple projects, never saw this (but my setup might differ to not trigger this code path, so 🤷🏼 ).
StreamHandler and Utils are both within the monolog/monolog package and come together. The only way I can think they don't match is if you manually uploaded the files and it missed to update Utils or so.
The Monolog was updated using composer and I can verify that Utils has mentioned the method in the vendor folder. And this is for an application called WHMCS. I also notice this application has multiple vendor folders. but I verified that the stack trace path for Utils has the mentioned method as well. Can multiple autoload cause a conflict in the Utils version?
Yeah definitely an autoload issue with multiple vendor dirs having different monolog versions and one loading before the other somehow. Nothing we can fix here.
Environment details
Steps to reproduce
Following is the stacktrace from
Error: Call to undefined method Monolog\Utils::expandIniShorthandBytes() in /home/portalgeek/public_html/modules/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:58
Stack trace:
#0 /home/portalgeek/public_html/modules/vendor/google/apiclient/src/Client.php(1136): Monolog\Handler\StreamHandler->__construct('php://stderr', 250)
#1 /home/portalgeek/public_html/modules/vendor/google/apiclient/src/Client.php(1124): Google\Client->createDefaultLogger()
#2 /home/portalgeek/public_html/modules/vendor/google/apiclient/src/Service/Resource.php(162): Google\Client->getLogger()
#3 /home/portalgeek/public_html/modules/vendor/google/apiclient-services/src/Directory/Resource/Users.php(70): Google\Service\Resource->call('get', Array, 'Google\Service\...')
#4 /home/portalgeek/public_html/modules/addons/merlin_module/GClient2.php(65): Google\Service\Directory\Resource\Users->get(NULL)
There seems to be some lib conflict between Google and Monolog on expandIniShorthandBytes(). Did anyone have this same issue? I tried looking on the internet for something but no clues.
The text was updated successfully, but these errors were encountered: