FriendsOfFlarum / upload

The file upload extension with insane intelligence for your Flarum forum.
https://discuss.flarum.org/d/4154
MIT License
177 stars 96 forks source link

Can't install on PHP 8.2 #398

Closed alvinkonda closed 6 months ago

alvinkonda commented 7 months ago

I'm receiving the following error

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laminas/laminas-diactoros 2.14.0 requires php ^7.3 || ~8.0.0 || ~8.1.0 -> your php version (8.2.16) does not satisfy that requirement.
    - flarum/core v1.8.5 requires laminas/laminas-diactoros ^2.4.1 -> satisfiable by laminas/laminas-diactoros[2.14.0].
    - flarum/core is locked to version v1.8.5 and an update of this package was not requested.

Is your extension supported on the PHP 8.2 version?

jasondeewright commented 6 months ago

I think this is more of a laminas-diactoros issue, but they have much more recent versions. I'm able to install successfully with:

My laminas/laminas-diactoros resolves to 2.26.0 and everything is copacetic.

You could try a fresh install with rm -rf composer.lock vendor and composer install

alvinkonda commented 6 months ago

Thanks for the reply, I managed to solve it by updating the forum.