I'm running into issues trying to update my Symfony proj:
php composer.phar update
Which returns:
Problem 1
- Conclusion: don't install symfony-cmf/symfony-cmf 1.0.0-alpha1
- remove symfony-cmf/symfony-cmf 1.0.x-dev|keep symfony-cmf/symfony-cmf dev-master
- symfony-cmf/symfony-cmf 1.0.0-alpha2 requires doctrine/phpcr-bundle 1.0.0-alpha4 -> satisfiable by doctrine/phpcr-bundle[1.0.0-alpha4].
- symfony-cmf/symfony-cmf 1.0.x-dev requires doctrine/phpcr-bundle 1.0.0-alpha4 -> satisfiable by doctrine/phpcr-bundle[1.0.0-alpha4].
- symfony-cmf/symfony-cmf dev-master requires doctrine/phpcr-bundle 1.0.0-alpha4 -> satisfiable by doctrine/phpcr-bundle[1.0.0-alpha4].
- Conclusion: don't install doctrine/phpcr-bundle 1.0.0-alpha4|install symfony-cmf/symfony-cmf 1.0.0-alpha1
My composer.json is as follows:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.2.*",
"doctrine/orm": "2.3.*",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.2.*",
"symfony/monolog-bundle": "2.2.*",
"sensio/distribution-bundle": "2.2.*",
"sensio/framework-extra-bundle": "2.2.*",
"sensio/generator-bundle": "2.2.*",
"jms/security-extra-bundle": "1.4.*",
"jms/di-extra-bundle": "1.3.*",
"friendsofsymfony/user-bundle": "*",
"sonata-project/user-bundle": "dev-master",
"sonata-project/admin-bundle": "2.2.*#dev",
"sonata-project/easy-extends-bundle" : "dev-master",
"sonata-project/intl-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "2.2.*#dev",
"sonata-project/cache-bundle": "dev-master",
"knplabs/knp-menu-bundle": "1.1.x-dev",
"sonata-project/block-bundle": "2.2.*#dev",
"jackalope/jackalope-doctrine-dbal": "dev-master",
"doctrine/phpcr-bundle": "1.0.*",
"doctrine/phpcr-odm": "1.0.*",
"symfony-cmf/routing": "1.1.*#dev",
"symfony-cmf/routing-bundle": "1.1.*#dev",
"symfony-cmf/symfony-cmf": "1.0.*",
"symfony-cmf/create-bundle": "1.0.*",
"sonata-project/doctrine-phpcr-admin-bundle": "1.0.*",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"symfony-cmf/content-bundle": "dev-master",
"slik/dompdf-bundle": "dev-master"
},
I'm new to composer and can't really understand what is happening here.
Can you help?
EDIT
After applying jules suggestion I get this error
Problem 1
- symfony-cmf/symfony-cmf dev-master requires symfony-cmf/block-bundle 1.0.0-alpha4 -> satisfiable by symfony-cmf/block-bundle[1.0.0-alpha4].
- symfony-cmf/symfony-cmf dev-master requires symfony-cmf/block-bundle 1.0.0-alpha4 -> satisfiable by symfony-cmf/block-bundle[1.0.0-alpha4].
- Conclusion: don't install symfony-cmf/block-bundle 1.0.0-alpha4
- Installation request for symfony-cmf/symfony-cmf dev-master -> satisfiable by symfony-cmf/symfony-cmf[dev-master].
Edit 2 - Symfony CMF older contents
vendor/symphony-cmf/block-bundle
vendor/symphony-cmf/content-bundle
vendor/symphony-cmf/core-bundle
vendor/symphony-cmf/create-bundle
vendor/symphony-cmf/menu-bundle
vendor/symphony-cmf/routing
vendor/symphony-cmf/routing-bundle
vendor/symphony-cmf/symfony-cmf
vendor/symphony-cmf/tree-browser-bundle
All of these folders contain the expected (I think) structure inside Symfony/Cmf/Bundle/BundleName.
The exception is the folder symfony-cmf which only contains docs.
Does this help?
Try
php composer.phar update --prefer-dist
Related
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
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 need to use sonata e commerce capabilities in my project but I have't had any success so far. It seems that there is not a compatible version with my current setup.
Here is my composer file
"require": {
"php": ">=5.3",
"ext-soap": "*",
"ext-gd": "*",
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"knplabs/knp-last-tweets-bundle": "*",
"friendsofsymfony/rest-bundle":"^1.8",
"twig/extensions":"1.2",
"friendsofsymfony/oauth-server-bundle": "dev-master",
"hwi/oauth-bundle": "^0.4.2",
"sonata-project/admin-bundle": "2.x.dev",
"sonata-project/doctrine-orm-admin-bundle": "2.x.dev",
"sonata-project/media-bundle": "~2.3",
"sonata-project/classification-bundle": "2.x-dev",
"sonata-project/user-bundle": "2.x.dev",
"sonata-project/block-bundle": "2.2.*"
},
When I run composer require sonata-project/ecommerce-bundle composer cant find a version that works with my current setup.
The error message that I get is
Problem 1
- Installation request for sonata-project/ecommerce ^2.0 -> satisfiable by sonata-project/ecommerce[2.0.0].
- sonata-project/ecommerce 2.0.0 requires sonata-project/block-bundle ^3.0 -> satisfiable by sonata-project/block-bundle[3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.x-dev] but these conflict with your requirements or minimum-stability.
Please help. I have more than 3 days trying to get this working.
Some issues are going to be fixed when this PR is merged: https://github.com/sonata-project/sandbox/pull/583
So just wait a few days, or patch some code ;)
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.
G'day all, I'm afraid yet another newbie is stuck trying to glue all the bits together. It's rather frustrating, to say the least :(
I've searched these forums, and see countless possible solutions, but none have worked so far. Most also also quite old, and versions have moved on.
Here we go:
https://sonata-project.org/bundles/user/2-2/doc/reference/installation.html
When I try this: composer require sonata-project/easy-extends-bundle
I get this:
Using version ^2.1 for sonata-project/easy-extends-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
- The requested package sonata-project/admin-bundle == 2.3.7.0 could not be found. Problem 2
- Can only install one of: sonata-project/block-bundle[2.3.8, 2.2.13].
- Can only install one of: sonata-project/block-bundle[2.3.8, 2.2.13].
- Can only install one of: sonata-project/block-bundle[2.3.8, 2.2.13].
- sonata-project/admin-bundle dev-master requires sonata-project/block-bundle ^2.3.8 -> satisfiable by
sonata-project/block-bundle[2.3.8].
- Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
- Installation request for sonata-project/block-bundle == 2.2.13.0 -> satisfiable by sonata-project/block-bundle[2.2.13].
Potential causes:- A typo in the package name - The
package is not available in a stable-enough version according to your
minimum-stability setting
Installation failed, reverting ./composer.json to its original
content.
I'm just following instructions, plain and simple! I read those articles, and tried a few solutions here, and via a Google search.
For what it's worth, I'm an old Unix hacker from way back, and I don't remember open source builds being this hard ...
Any clues? Many thanks in advance!
p.s. I'm using a Debian virtual box, as I thought it'd be easier than trying things on my Windows 8 PC.
Here is the only changed section from composer.json:
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.4",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0#dev",
"sonata-project/admin-bundle": "2.3.*",
"sonata-project/doctrine-orm-admin-bundle": "^2.3",
"sonata-project/easy-extends-bundle": "^2.1",
"sonata-project/user-bundle": "^2.2",
"sonata-project/easy-extends-bundle": "dev-master"
},
1. Empty the vendor folder: Delete everything on it, but don't delete itself. Maybe a broken downloaded dependency is causing you issues.
2. Replace your require section of your composer.json with this one:
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"doctrine/orm": "~2.2,>=2.2.3,<2.5",
"doctrine/dbal": "<2.5",
"doctrine/doctrine-bundle": "~1.4",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~1.3",
"sonata-project/admin-bundle": "2.3.*",
"sonata-project/doctrine-orm-admin-bundle": "^2.3",
"sonata-project/easy-extends-bundle": "^2.1",
"sonata-project/user-bundle": "^2.2"
},
Notice the difference about "friendsofsymfony/user-bundle" version.
Now it should work! Let me know if it's still causing you issues.