![]() ![]() It only started happening recently because the oauth2 client started allowing Guzzle since version 2.5.0 which was released on July 18 2020. Flarum core does not require Guzzle by the way. So I believe everyone having this issue must have removed the Twitter login extension at some point, and then ran a global Composer update. It's the Twitter login extension which relies on league/oauth1-client which only works with Guzzle 6. I think the issue does not affect everyone because there's usually one other extension installed by default that requires Guzzle 6 only. League/oauth2-client is installed as a dependency of the Facebook/GitHub login extensions, and probably other community extensions that provide login. If you then try to install extensions that need Guzzle 6.0, Composer will not accept to downgrade the major version of an already-installed dependency. If league/oauth2-client is installed first, Composer will install version 7.0 of Guzzle. ![]() The problem is that league/oauth2-client works with either Guzzle ^6.0 or ^7.0, while most other extensions work with only Guzzle ^6.0. In this case the conflict is actually solvable, but Composer is unable to solve it by itself. Not all extensions require the same dependency versions, and this can lead to conflicts. The causeĬomposer lets each extension request the dependencies and dependencies versions of their choice. ![]() Installation request for guzzlehttp/guzzle (locked at 7.0.1) -> satisfiable by guzzlehttp/guzzle. Can only install one of: guzzlehttp/guzzle. fof/upload 0.10.0 requires guzzlehttp/guzzle ^6.0 -> satisfiable by guzzlehttp/guzzle. Conclusion: don't install guzzlehttp/guzzle 7.0.1 Conclusion: remove guzzlehttp/guzzle 7.0.1 Installation request for fof/upload ^0.10.0 -> satisfiable by fof/upload. Your requirements could not be resolved to an installable set of packages. Updating dependencies (including require-dev) Loading composer repositories with package information The output of Composer will show some kind of conflict message which will include things like: composer require fof/uploadUsing version ^0.10.0 for fof/upload You might get an "Installation failed" from Composer when trying to install a new extension. An issue has recently been arising with new Flarum installations and I want to give some guidance in how to solve it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |