Can't install activity log Laravel 5.7 - laravel-5.7

I try to install composer require spatie/laravel-activitylog but I got failed there is anyway to fix this problem?
Problem 1
- Installation request for spatie/laravel-activitylog ^3.5 -> satisfiable by spatie/laravel-activitylog[3.5.0].
- Conclusion: remove laravel/framework v5.7.28
- Conclusion: don't install laravel/framework v5.7.28
- spatie/laravel-activitylog 3.5.0 requires illuminate/config ~5.8.0 -> satisfiable by laravel/framework[5.8.x-dev], illuminate/config[5.8.x-dev, v5.8.0, v5.8.11, v5.8.12, v5.8.2, v5.8.3, v5.8.4, v5.8.8, v5.8.9].
- Can only install one of: laravel/framework[5.8.x-dev, v5.7.28].
- don't install illuminate/config 5.8.x-dev|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.0|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.11|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.12|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.2|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.3|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.4|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.8|don't install laravel/framework v5.7.28
- don't install illuminate/config v5.8.9|don't install laravel/framework v5.7.28
- Installation request for laravel/framework (locked at v5.7.28, required as 5.7.*) -> satisfiable by laravel/framework[v5.7.28].
Thank Q
(Solved) by composer require spatie/laravel-activitylog 3.0

v3.3.0 has dropped the support for L5.7 & PHP7.1
https://github.com/spatie/laravel-activitylog/blob/master/CHANGELOG.md#330---2019-04-08
So you have to run below command
composer require spatie/laravel-activitylog:^3.2

You can check official docs for requirements: https://docs.spatie.be/laravel-activitylog/v3/requirements/ , currently latest version requires laravel 6.0 or higher, if you have an older version of the framework you need to install an older version of activity logger, like #Chirag Shan suggested.

Related

Cannot install sonata admin on Symfony

I installed symfony 4.4 full, and then tried to install sonata-project/doctrine-orm-admin-bundle.
Out of the box, this doesn't work. can someone please explain this?
I got the same error using symfony 5.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for sonata-project/doctrine-orm-admin-bundle ^3.21 -> satisfiable by sonata-project/doctrine-orm-admin-bundle[3.21.0].
- Conclusion: remove twig/twig v3.0.5
- Conclusion: don't install twig/twig v3.0.5
- sonata-project/doctrine-orm-admin-bundle 3.21.0 requires twig/twig ^1.41 || ^2.10 -> satisfiable by twig/twig[v2.12.0, v2.12.1, v2.12.2, v2.12.3, v2.12.4, v2.12.5, v2.13.0, v2.13.1].
- Can only install one of: twig/twig[v2.12.0, v3.0.5].
- Can only install one of: twig/twig[v2.12.1, v3.0.5].
- Can only install one of: twig/twig[v2.12.2, v3.0.5].
- Can only install one of: twig/twig[v2.12.3, v3.0.5].
- Can only install one of: twig/twig[v2.12.4, v3.0.5].
- Can only install one of: twig/twig[v2.12.5, v3.0.5].
- Can only install one of: twig/twig[v2.13.0, v3.0.5].
- Can only install one of: twig/twig[v2.13.1, v3.0.5].
- Installation request for twig/twig (locked at v3.0.5, required as ^2.12|^3.0) -> satisfiable by twig/twig[v3.0.5].
You need to install one of the specified version of twig before installing sonata.
Sonata has a dependency on twig.
use composer require "sonata-project/admin-bundle:^3.56" "twig/twig:^2.10"

i can't install sonataAdminBundle with symfony 5

I am trying to install sonata admin bundle in a fresh Symfony 5 installation but I get this error :
Problem 1
- Conclusion: don't install sonata-project/admin-bundle 3.56.1
- Conclusion: remove twig/twig v3.0.0
- Installation request for sonata-project/admin-bundle ^3.56 -> satisfiable by sonata-project/admin-bundle[3.56.0, 3.56.1].
- Conclusion: don't install twig/twig v3.0.0
- sonata-project/admin-bundle 3.56.0 requires twig/twig ^2.10 -> satisfiable by twig/twig[v2.10.0, v2.11.0, v2.11.1, v2.11.2, v2.11.3, v2.12.0, v2.12.1, v2.12.2].
- Can only install one of: twig/twig[v2.10.0, v3.0.0].
- Can only install one of: twig/twig[v2.11.0, v3.0.0].
- Can only install one of: twig/twig[v2.11.1, v3.0.0].
- Can only install one of: twig/twig[v2.11.2, v3.0.0].
- Can only install one of: twig/twig[v2.11.3, v3.0.0].
- Can only install one of: twig/twig[v2.12.0, v3.0.0].
- Can only install one of: twig/twig[v2.12.1, v3.0.0].
- Can only install one of: twig/twig[v2.12.2, v3.0.0].
- Installation request for twig/twig (locked at v3.0.0) -> satisfiable by twig/twig[v3.0.0].
We rely on many third party libraries which is hard to fix.
There is also an open issue on GitHub https://github.com/sonata-project/SonataAdminBundle/issues/5788

Symfony 2.8 > 3.4.22 - Your requirements could not be resolved to an installable set of packages

I'm searching about this error on Stack Overflow but I don't find anything about it.
Recently I updated Symfony 2.8 to 3.4.22 and now I have to update some bundles with composer, 3 of 21 bundles have problems when I try to upgrade them.
These bundles are:
- symfony/doctrine-bridge
- friendsofsymfony/user-bundle
- friendsofsymfony/oauth-server-bundle
The output of composer when I try to install these bundles manually is:
Using version ^4.2 for symfony/doctrine-bridge
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove doctrine/doctrine-bundle 1.10.2
- Conclusion: don't install doctrine/doctrine-bundle 1.10.2
- Conclusion: remove symfony/symfony v3.4.22
- Conclusion: don't install symfony/symfony v3.4.22
- Conclusion: don't install symfony/symfony v3.4.21
- Conclusion: don't install symfony/symfony v3.4.20
- Conclusion: don't install symfony/symfony v3.4.19
- Conclusion: don't install symfony/symfony v3.4.18
- Conclusion: don't install symfony/symfony v3.4.17
- Conclusion: don't install symfony/symfony v3.4.16
- Conclusion: don't install symfony/symfony v3.4.15
- Conclusion: don't install symfony/symfony v3.4.14
- Conclusion: don't install symfony/symfony v3.4.13
- Conclusion: don't install symfony/symfony v3.4.12
- Conclusion: don't install symfony/symfony v3.4.11
- Conclusion: don't install symfony/symfony v3.4.10
- Conclusion: don't install symfony/symfony v3.4.9
- Conclusion: don't install symfony/symfony v3.4.8
- Conclusion: don't install symfony/symfony v3.4.7
- Conclusion: don't install symfony/symfony v3.4.6
- Conclusion: don't install symfony/symfony v3.4.5
- Conclusion: don't install symfony/symfony v3.4.4
- Conclusion: don't install symfony/symfony v3.4.3
- Conclusion: don't install symfony/symfony v3.4.2
- Conclusion: don't install symfony/symfony v3.4.1
- Installation request for doctrine/doctrine-bundle (locked at 1.10.2, required as ^1.6) -> satisfiable by doctrine/doctrine-bundle[1.10.2].
- Conclusion: don't install symfony/symfony v3.4.0
- doctrine/doctrine-bundle 1.10.2 requires symfony/doctrine-bridge ~2.7|~3.0|~4.0 -> satisfiable by symfony/doctrine-bridge[v4.2.0, v4.2.1, v4.2.2, v4.2.3].
- don't install symfony/doctrine-bridge v4.2.0|don't install symfony/symfony v3.4.22
- don't install symfony/doctrine-bridge v4.2.1|don't install symfony/symfony v3.4.22
- don't install symfony/doctrine-bridge v4.2.2|don't install symfony/symfony v3.4.22
- don't install symfony/doctrine-bridge v4.2.3|don't install symfony/symfony v3.4.22
- Installation request for symfony/symfony 3.4.* -> satisfiable by symfony/symfony[v3.4.0, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.21, v3.4.22, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9].
Installation failed, reverting ./composer.json to its original content.
And the friendsofsymfony/oauth-server-bundle and friendsofsymfony/user-bundle are the same errors:
Using version ^1.6 for friendsofsymfony/oauth-server-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- friendsofsymfony/oauth-server-bundle 1.6.2 requires paragonie/random_compat ^1|^2 -> satisfiable by paragonie/random_compat[1.0.10, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, v1.0.0, v1.0.1, v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v1.x-dev, v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9] but these conflict with your requirements or minimum-stability.
- friendsofsymfony/oauth-server-bundle 1.6.1 requires paragonie/random_compat ^1|^2 -> satisfiable by paragonie/random_compat[1.0.10, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, v1.0.0, v1.0.1, v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v1.x-dev, v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9] but these conflict with your requirements or minimum-stability.
- friendsofsymfony/oauth-server-bundle 1.6.0 requires paragonie/random_compat ^1|^2 -> satisfiable by paragonie/random_compat[1.0.10, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, v1.0.0, v1.0.1, v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v1.x-dev, v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9] but these conflict with your requirements or minimum-stability.
- Installation request for friendsofsymfony/oauth-server-bundle ^1.6 -> satisfiable by friendsofsymfony/oauth-server-bundle[1.6.0, 1.6.1, 1.6.2].
Installation failed, reverting ./composer.json to its original content.
How I can resolve these dependencies?
Any help is welcome
Edit 1: I'm trying to do a fresh bundles install not updating the
older bundles
Edit 2: PHP Version => 7.1.26
Here is the solution:
In composer.json, change:
"paragonie/random_compat": "^2.1",
By this (if you don't have it, add it):
"paragonie/random_compat": ">=1",
And remove in the same document this line:
"symfony/doctrine-bridge" : "~2.1",
Then, make a composer update and for me, it works like a charm!
References:
https://github.com/paragonie/random_compat#version-99999
https://symfony.com/doc/3.4/doctrine.html
Thank you all

installing fos/elasticabundle, it need pagerfanta version

I want install FOSElasticaBundle, but erorr occured.
I don't know what to do, system cmd shows this:
C:\xampp\htdocs\project>composer require friendsofsymfony/elastica-bundle
Using version ^5.0 for friendsofsymfony/elastica-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.1.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install friendsofsymfony/elastica-bundle v5.0.3
- Conclusion: don't install friendsofsymfony/elastica-bundle v5.0.2
- Conclusion: don't install friendsofsymfony/elastica-bundle v5.0.1
- Conclusion: remove pagerfanta/pagerfanta v2.0.1
- Installation request for friendsofsymfony/elastica-bundle ^5.0 -> satisfiable by friendsofsymfony/elastica-bundle[v5.0.0, v5.0.1, v5.0.2, v5.0.3].
- Conclusion: don't install pagerfanta/pagerfanta v2.0.1
- friendsofsymfony/elastica-bundle v5.0.0 requires pagerfanta/pagerfanta ^1.0.5 -> satisfiable by pagerfanta/pagerfanta[v1.0.5, v1.1.0].
- Can only install one of: pagerfanta/pagerfanta[v1.1.0, v2.0.1].
- Can only install one of: pagerfanta/pagerfanta[v1.0.5, v2.0.1].
- Installation request for pagerfanta/pagerfanta (locked at v2.0.1) -> satis
fiable by pagerfanta/pagerfanta[v2.0.1].
Installation failed, reverting ./composer.json to its original content.
C:\xampp\htdocs\project>
I have pagerfanta installed but it works good.
Please help.
friendsofsymfony/elastica-bundle v5.0.0 requires pagerfanta/pagerfanta ^1.0.5 -> satisfiable by pagerfanta/pagerfanta[v1.0.5, v1.1.0].
You have pagerfanta/pagerfanta v2.0.1 installed, so to use elastica-bundle v5.0.3 you need to downgrade it to v1.1.0

Requirements could not be resolved to an installable set of packages | Laravel4

I am getting this error when I was trying to install Menu package to generate navigation bar for Laravel 4.
I was doing it by following the installation instruction given on its GitHub page.
As per the instruction I added the "vespakoen/menu": "dev-master" line to my composer.json file and gave an composer update on Windows PowerShell
PS d:\xxx\yyy> composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework 4.0.x-dev
- Conclusion: don't install laravel/framework 4.0.x-dev
- Conclusion: don't install laravel/framework v4.0.10
- Conclusion: don't install laravel/framework v4.0.9
- Conclusion: don't install laravel/framework v4.0.8
- Conclusion: don't install laravel/framework v4.0.7
- Conclusion: don't install laravel/framework v4.0.6
- Conclusion: don't install laravel/framework v4.0.5
- Conclusion: don't install laravel/framework v4.0.4
- Conclusion: don't install laravel/framework v4.0.3
- Conclusion: don't install laravel/framework v4.0.2
- Conclusion: don't install laravel/framework v4.0.1
- Conclusion: don't install laravel/framework v4.0.0
- Installation request for vespakoen/menu dev-master -> satisfiable by vespakoen/menu[dev-master].
- Conclusion: don't install laravel/framework v4.0.0-BETA4
- Conclusion: don't install laravel/framework v4.0.0-BETA3
- vespakoen/menu dev-master requires orchestra/testbench 2.1.* -> satisfiable by orchestra/testbench[2.1.x-dev, v2.1
.0].
- orchestra/testbench 2.1.x-dev requires laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev, v4.1
.0, v4.1.1, v4.1.10, v4.1.11, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
- orchestra/testbench v2.1.0 requires laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev, v4.1.0,
v4.1.1, v4.1.10, v4.1.11, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
- Can only install one of: laravel/framework[v4.0.0-BETA2, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.1.0, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.1, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.10, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.11, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.2, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.3, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.4, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.5, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.6, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.7, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.8, v4.0.0-BETA2].
- Can only install one of: laravel/framework[v4.1.9, v4.0.0-BETA2].
- Installation request for laravel/framework 4.0.* -> satisfiable by laravel/framework[4.0.x-dev, v4.0.0, v4.0.0-BET
A2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].
My Laravel framework installation is "laravel/framework": "4.0.*"
I believe it requires laravel 4.1 in order to work, check your composer.json you need to specify "laravel/framework": "4.*"
This will allow updating of your laravel installation to 4.x versions. Please note that this is not preferred for a production site (in case you are applying this to a production site).

Resources