mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-25 23:55:56 +03:00
[GH-ISSUE #1627] Monolog/Utils class cannot access expandIniShorthandBytes() method. #691
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#691
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sashi-geeks on GitHub (Jan 19, 2022).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1627
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.
@mfn commented on GitHub (Jan 19, 2022):
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 🤷🏼 ).
StreamHandlerandUtilsare 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.@sashi-geeks commented on GitHub (Jan 20, 2022):
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?
@mfn commented on GitHub (Jan 20, 2022):
Yes, this is possible and I've experienced this. Autloading happens in order and maybe an older version of that class is loaded prior.
I don't know what WHCMS is, but I suggest to check with them.
Doesn't look like a monolog issue to me though.
@Seldaek commented on GitHub (Mar 13, 2022):
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.