Hi everyone I'm trying to install media library in laravel 7.4 but it have bellow error:
Problem 1
- Installation request for symfony/console 5.0.1 -> satisfiable by symfony/console[v5.0.1].
- Installation request for spatie/laravel-medialibrary ^8.1 -> satisfiable by spatie/laravel-medialibrary[8.1.0].
- Can only install one of: symfony/process[v5.0.1, 4.4.x-dev].
- Can only install one of: symfony/process[4.4.x-dev, v5.0.1].
- Can only install one of: symfony/process[4.4.x-dev, v5.0.1].
- Conclusion: install symfony/process 4.4.x-dev
- Installation request for symfony/process 5.0.1 -> satisfiable by symfony/process[v5.0.1].
Whats wrong with this package, As here link explains the package I resolve requirements :
"require": {
"php": "^7.2.5",
"cyrildewit/eloquent-viewable": "^5.2",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"laravel/socialite": "^4.3",
"laravel/tinker": "^2.0",
"morilog/jalali": "^3.1",
"santigarcor/laratrust": "^5.2",
"symfony/console": "5.0.1",
"symfony/process": "5.0.1"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
The Medialibrary package requires exif extension . Enable this extension from the php.ini file.
Related
I'm mantaining an old project, started with laravel 5.4, and now lifted up to laravel 8.
It's all working.
Now I'm in need to install laravel-datatables.
Looking at doc, I discarded v10 because it requires Laravel 9+
For same reason, I discarded also v9
So I'm trying to install laravel-datatables v8
composer require yajra/laravel-datatables-oracle:^8.0
I got this
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yajra/laravel-datatables-oracle 8.0 -> satisfiable by yajra/laravel-datatables-oracle[v8.0.0].
- yajra/laravel-datatables-oracle v8.0.0 requires illuminate/database 5.4.*|5.5.* -> found illuminate/database[v5.4.0, ..., 5.5.x-dev] but these were not loaded, likely because it conflicts with another require.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I am not able to understand which package/require is conflicting with this package.
This my package.json
"require": {
"php": "^7.3|^8.0",
"ext-json": "*",
"barryvdh/laravel-dompdf": "^0.8.1",
"buzz/laravel-google-captcha": "^2.1",
"carlos-meneses/laravel-mpdf": "^2.1",
"davidepastore/codice-fiscale": "^0.7.1",
"doctrine/dbal": "^3.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.3",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.2",
"league/flysystem-sftp": "~1.0",
"maatwebsite/excel": "^3.1",
"nowakowskir/php-jwt": "^2.0",
"oriceon/toastr-5-laravel": "^1.0.0",
"pragmarx/google2fa-laravel": "^1.4",
"pragmarx/recovery": "^0.2.0",
"ramsey/uuid": "^4.1",
"sentry/sdk": "^3.1",
"sentry/sentry-laravel": "^2.4",
"shalvah/laravel-jsend": "^2.3",
"snowfire/beautymail": "^1.1"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
Same problem with v7
Please note: we cannot, for internal policy, use -dev branches
Trying to install v9 ...
Problem 1
- Root composer.json requires yajra/laravel-datatables-oracle 9 -> satisfiable by yajra/laravel-datatables-oracle[v9.0.0].
- yajra/laravel-datatables-oracle v9.0.0 requires illuminate/database 5.8.* -> found illuminate/database[v5.8.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
As written in the error message: yajra/laravel-datatables-oracle in v8 is only compatible with Laravel v5, and you are using Laravel v8.
Try to use composer require yajra/laravel-datatables-oracle:^9.0 - this version is compatible with Laravel v5 to v8. Next time you are facing such a problem, have a look at the constraints of different versions of the package. Packagist has a pretty nice overview of the compatible versions, for example at https://packagist.org/packages/yajra/laravel-datatables-oracle#v9.21.2 where you can see the dependencies for the latest v9 version of that datatables package
I accepted answer from Nico Haase because it helped me found the solution, but this is the exact solution for my exact case
composer require yajra/laravel-datatables-oracle:^9.*
It installed the 9.21.x version and it's compatibile with my actual set of package
This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 1 year ago.
I am having troubles upgrading my Symfony project from 4.4. to 5.0. I already removed all depreciations and so forth and am now trying to upgrade via composer.
When I run composer update "symfony/*" I get the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove stof/doctrine-extensions-bundle v1.6.0
- Conclusion: don't install stof/doctrine-extensions-bundle v1.6.0
- Conclusion: don't install symfony/console v5.0.11
- Conclusion: don't install symfony/console v5.0.10
- Conclusion: don't install symfony/console v5.0.9
- Conclusion: don't install symfony/console v5.0.8
- Conclusion: don't install symfony/console v5.0.7
- Conclusion: don't install symfony/console v5.0.6
- Conclusion: don't install symfony/console v5.0.5
- Conclusion: don't install symfony/console v5.0.4
- Conclusion: don't install symfony/console v5.0.3
- Conclusion: don't install symfony/console v5.0.2
- Installation request for stof/doctrine-extensions-bundle (locked at v1.6.0, required as ^1.3) -> satisfiable by stof/doctrine-extensions-bundle[v1.6.0].
- Conclusion: don't install symfony/console v5.0.1
- stof/doctrine-extensions-bundle v1.6.0 requires symfony/http-kernel ^4.4 || ^5.2 -> satisfiable by symfony/http-kernel[v4.4.21].
- symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
- symfony/console v5.0.0 conflicts with symfony/http-kernel[v4.4.21].
- Installation request for symfony/console 5.0.* -> satisfiable by symfony/console[v5.0.0, v5.0.1, v5.0.10, v5.0.11, v5.0.2, v5.0.3, v5.0.4, v5.0.5, v5.0.6, v5.0.7, v5.0.8, v5.0.9].
It looks like there is a problem with symfony/console and symfony/http-kernel. When I checked stof/doctrine-extensions-bundle on packagist I coudn't find any restrictions on symfony/console. For symfony/http-kernel it looks like at least 5.2 is required, however, I don't want to upgrade directly to Symfony 5.2, or is that the only way I can solve this? Does anyone see / know where this problem is coming from and can point me in the right direction?
Here is my composer.json:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-curl": "*",
"ext-iconv": "*",
"ext-intl": "*",
"ext-json": "*",
"ext-openssl": "*",
"ext-zlib": "*",
"babdev/pagerfanta-bundle": "^2.10",
"dompdf/dompdf": "^0.8.3",
"endroid/qrcode-bundle": "^3.4",
"friendsofsymfony/ckeditor-bundle": "^2.1",
"league/csv": "^8.0",
"mobiledetect/mobiledetectlib": "^2.8",
"sensio/framework-extra-bundle": "^5.4",
"stof/doctrine-extensions-bundle": "^1.3",
"swiftmailer/swiftmailer": "^6.0",
"symfony/apache-pack": "^1.0",
"symfony/asset": "5.0.*",
"symfony/console": "5.0.*",
"symfony/dotenv": "5.0.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.0.*",
"symfony/framework-bundle": "5.0.*",
"symfony/intl": "5.0.*",
"symfony/maker-bundle": "^1.13",
"symfony/monolog-bundle": "^3.5",
"symfony/orm-pack": "^1.0",
"symfony/security-bundle": "5.0.*",
"symfony/serializer": "5.0.*",
"symfony/serializer-pack": "^1.0",
"symfony/swiftmailer-bundle": "^3.4",
"symfony/twig-bundle": "5.0.*",
"symfony/yaml": "5.0.*"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.2",
"symfony/phpunit-bridge": "^5.2",
"symfony/profiler-pack": "^1.0"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"#auto-scripts"
],
"post-update-cmd": [
"#auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.0.*"
}
}
}
stof/doctrine-extensions-bundle v1.6.0 requires symfony/http-kernel ^4.4 || ^5.2 looks pretty clear to me: that package in that given version is not compatible with Symfony 5.0
Either downgrade stof/doctrine-extensions-bundle to v1.5 (which is compatible with Symfony 5.0), or (the better solution) update Symfony to v5.2 - the Support for 5.0 has ended in July 2020
This question already has answers here:
How to explain Composer's error log?
(2 answers)
Closed 2 years ago.
I have the app in Laravel 5.6 and need to cache some models. I found only one package that can provide this (genealabs/laravel-model-caching), but it requires package illuminate/cache 8.0.* that is in conflict with some another require:
Problem 1
Root composer.json requires genealabs/laravel-model-caching ^0.11.1 -> satisfiable by genealabs/laravel-model-caching[0.11.1].
genealabs/laravel-model-caching 0.11.1 requires illuminate/cache ^8.0 -> found illuminate/cache[v8.0.0, ..., 8.x-dev] but it conflicts with another require.
Is there a way how to find out which package is it in a conflict with?
My composer.json requires are:
"require": {
"php": "^7.1.3",
"ext-curl": "*",
"ext-intl": "*",
"ext-json": "*",
"anouar/paypalpayment": ">=3.0",
"barryvdh/laravel-dompdf": "^0.8.6",
"barryvdh/laravel-ide-helper": "^2.5",
"bugsnag/bugsnag-laravel": "^2.0",
"fideloper/proxy": "^4.0",
"gloudemans/shoppingcart": "^2.5",
"guzzlehttp/psr7": "^1.6",
"hazestudio/laravel-gopay-sdk": "^0.1.5",
"laravel/framework": "5.6.*",
"laravel/tinker": "^1.0",
"predis/predis": "^1.1",
"tcg/voyager": "^1.3"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.4",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
}
Thanks a lot in advance for any help.
I think there is package version issue. You need to find genealabs/laravel-model-caching version which is support with laravel 5.6.*
I try to add package to starter-kit:
composer require akiraz2/Yii2-ticket-support "dev-master"
Starter-kit:
https://github.com/yii2-starter-kit/yii2-starter-kit
Package:
https://github.com/yii2-starter-kit/yii2-starter-kit
Composer.json in my project:
"require": {
"php": ">=7.1.0",
"ext-intl": "*",
"yiisoft/yii2": "^2.0.13",
"yiisoft/yii2-swiftmailer": "^2.0.0",
"yiisoft/yii2-authclient": "^2.0.0",
"yiisoft/yii2-bootstrap4": "^2.0",
"yiisoft/yii2-jui": "^2.0.0",
"yii2-starter-kit/yii2-file-kit": "^2.1.0",
"asofter/yii2-imperavi-redactor": ">=0.0.3#dev",
"trntv/yii2-aceeditor": "^2.0",
"trntv/probe": "^1.0",
"trntv/yii2-glide": "^1.2",
"trntv/yii2-datetime-widget": "dev-master#dev",
"trntv/cheatsheet": "^0.1#dev",
"trntv/yii2-command-bus": "^3.0",
"intervention/image": "^2.1",
"vlucas/phpdotenv": "^2.0",
"almasaeed2010/adminlte": "^3.0",
"npm-asset/font-awesome": "^5.0",
"npm-asset/html5shiv": "^3.0",
"npm-asset/jquery-slimscroll": "^1.3",
"npm-asset/flot": "^3.2",
"symfony/process": "^4.0",
"guzzlehttp/guzzle": "^6.0",
"alexantr/yii2-elfinder": "^1.3",
"trntv/sitemaped": "^0.1",
"yii2mod/yii2-swagger": "^1.1",
"kartik-v/yii2-widgets": "^3.4",
"akiraz2/yii2-ticket-support": "dev-master",
"rmrevin/yii2-fontawesome": "^3.4"
},
"require-dev": {
"yiisoft/yii2-debug": "^2.0.0",
"yiisoft/yii2-gii": "^2.0.0",
"yiisoft/yii2-faker": "^2.0.0",
"codeception/codeception": "2.4.0",
"codeception/verify": "^0.3.1"
},
Composer.json in the package: akiraz2/yii2-ticket-support
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"yiisoft/yii2": "~2.0",
"hashids/hashids": "^2.0",
"yiidoc/yii2-redactor": "*",
"php-imap/php-imap": "^3.0",
"yiisoft/yii2-queue": "~2.0"
},
Error:
Problem 1
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- akiraz2/yii2-ticket-support dev-master requires rmrevin/yii2-fontawesome ~2.17 -> satisfiable by rmrevin/yii2-fontawesome[2.17.0, 2.17.1, 2.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for akiraz2/yii2-ticket-support dev-master -> satisfiable by akiraz2/yii2-ticket-support[dev-master].
Just read the error message: it tells you that akiraz2/yii2-ticket-support requires rmrevin/yii2-fontawesome with the version constraint ~2.17, while your own application requires that same package with ^3.4
I'm totally new to composer and symfony, and i've started a symfony3 project. Things where going well, but now composer won't update my dependancies. I've been searching a solution for 3 hours.
Here is my console log:
Problem 1
- sonata-project/admin-bundle dev-master requires sonata-project/block-bundle 3.x-dev#dev -> satisfiable by sonata-project/block-bundle[3.x-dev] but these conflict with your requirements or minimum-stability.
- sonata-project/admin-bundle dev-master requires sonata-project/block-bundle 3.x-dev#dev -> satisfiable by sonata-project/block-bundle[3.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
And my composer.json requirements:
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.0.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.8",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"friendsofsymfony/user-bundle": "dev-master",
"sonata-project/admin-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master"
},
If you can find the problem, and explain it to me, you're going to be my hero!
By default, composer installs only stable versions of packages, even if you ask a dev version for one of them, by defining the minimum-stability to stable.
To tell composer that you allow installation of development versions (such as dev-master),
Add the following line after your requirements:
"minimum-stability": "dev"
Note: It's actually mandatory to work with last versions of sonata bundles.