I want to upgrade the CakePHP framework behind our project. Currently we are using the 3.8.10 version.
I did all the steps to complete the process described here:
https://book.cakephp.org/4/en/appendices/4-0-upgrade-guide.html
(I have no, errors, warnings or notices in my code)
All the steps worked just fine but the last.
After i run the following command:
php composer.phar require --update-with-dependencies “cakephp/cakephp:4.0.*”
I receive the following error message:
Problem 1
- cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
- cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
- cakephp/bake 1.12.0 requires cakephp/cakephp ^3.8.0 -> satisfiable by cakephp/cakephp[3.8.0, 3.8.0-RC1, 3.8.0-RC2, 3.8.0-RC3, 3.8.0-beta1, 3.8.1, 3.8.10, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for cakephp/bake (locked at 1.12.0, required as ^1.9.0) -> satisfiable by cakephp/bake[1.12.0].
Can you help me identify the problem? What am I doing wrong?
Similar issue is already listed on Cakephp github repository
To resolve this you need to use "cakephp/bake": "4.x-dev"
OR
For the time being you also need to add the following settings to your composer.json until the migrations and twig-view plugins get new CakePHP 4 compatible stable releases:
"minimum-stability": "dev",
"prefer-stable": true
You can check the below links
https://github.com/cakephp/cakephp/issues/13114
https://github.com/cakephp/cakephp/issues/14043
https://github.com/cakephp/app/blob/4.0.0-alpha1/composer.json
Related
Problem 1
- patronbase/omnipay-redsys[dev-master, v3.1.0] require omnipay/common dev-address3-support -> found omnipay/common[dev-feat-httpdecorator, dev-feat-customer, dev-feat/symfony5, dev-fix-gateway-params, dev-feat-amountinteger, dev-future, dev-master, dev-revert-67-sf3-compat, dev-revert-184-feat-parameters, dev-feat-php8, dev-feat-psr18, dev-test/php72, v2.0.0, ..., 2.5.x-dev, v3.0-alpha.1, ..., 3.1.x-dev (alias of dev-master)] but it does not match the constraint.
- patronbase/omnipay-redsys 3.1.x-dev is an alias of patronbase/omnipay-redsys dev-master and thus requires it to be installed too.
- Root composer.json requires patronbase/omnipay-redsys ^3.1 -> satisfiable by patronbase/omnipay-redsys[v3.1.0, 3.1.x-dev (alias of dev-master)].
https://packagist.org/packages/patronbase/omnipay-redsys
I have this problem installing patronbase/omnipay-redsys, can someone please help me? Thanks
That package requires a non-existing branch of omnipay/common, so you need to use an older version of that package (like: composer require omnipay/common 3.0.0). Also, such an error should be reported to the maintainers of the package
This question already has answers here:
Reference - Composer error "Your PHP version does not satisfy requirements" after upgrading PHP
(3 answers)
How to explain Composer's error log?
(2 answers)
Closed 1 year ago.
I Just Update My Composer Which Returns with some errors and issues:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jeremykenedy/laravel-roles v1.2.0 requires laravel/framework 5.3.*|5.4.*|5.5.*|5.6.* -> found
laravel/framework[v5.3.0-RC1, ..., 5.6.x-dev] but it conflicts with your root composer.json require
(^8.0).
- jeremykenedy/laravel-roles v1.3.0 requires laravel/framework 5.3.*|5.4.*|5.5.*|5.6.*|5.7.* -> found
laravel/framework[v5.3.0-RC1, ..., 5.7.x-dev] but it conflicts with your root composer.json require
(^8.0).
- jeremykenedy/laravel-roles[v1.4.0, ..., v1.7.0] require laravel/framework
5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.* -> found laravel/framework[v5.3.0-RC1, ..., 5.8.x-dev] but it
conflicts with your root composer.json require (^8.0).
- Root composer.json requires jeremykenedy/laravel-roles ^1.2 -> satisfiable by jeremykenedy/laravel-
roles[v1.2.0, ..., v1.7.0].
I Searched on google but failed to solve my issue. Plz, Provide me clear answer So I solve my error.
Thanks, Brother For the Help.
After execution of
composer install --ignore-platform-reqs
Following Errors Also Occur:
Class App\Http\Controllers\riderOrders located in L:/Live/cyber-food-
fiji/app\Http\Controllers\RiderOrders.php does not comply with psr-4
autoloading standard. Skipping.
Class "Grimzy\LaravelMysqlSpatial\SpatialServiceProvider" not found
Script #php artisan package: discover handling the post-autoload-dump
event returned with error code 1
After Execution of
composer update
Your requirements could not be resolved to an installable set of
packages.
Problem 1
- pusher/pusher-php-server[v3.2.0, ..., v3.3.1] require php ^5.4 || ^7.0 -> your php version (8.0.0) does not satisfy that requirement.
- pusher/pusher-php-server v3.4.0 requires php >=5.4 <7.3 -> your php version (8.0.0) does not satisfy that requirement.
- pusher/pusher-php-server v3.4.1 requires php >=5.4 <7.4 -> your php version (8.0.0) does not satisfy that requirement.
- Root composer.json requires pusher/pusher-php-server ^3.2 -> satisfiable by pusher/pusher-php-server[v3.2.0, ..., v3.4.1].
Thanks For Helping me with the last bug.
Plz Also guide in the above errors.
Thanks...
Run this command:
composer install --ignore-platform-reqs
or
composer update --ignore-platform-reqs
Note:
--ignore-platform-reqs: ignore all platform requirements (php, hhvm, lib-* and ext-) and force the installation even if the local machine does not fulfill these. See also the platform config option.
--ignore-platform-req: ignore a specific platform requirement(php, hhvm, lib- and ext-*) and force the installation even if the local machine does not fulfill it.
I'm trying to install willvincent/laravel-rateable package on laravel 8 but it requires:
illuminate/support ^6.0|^7.0
How do I solve this issue in order to use the rateable package?
- willvincent/laravel-rateable[2.2.0, ..., 2.2.1] require illuminate/support ^6.0|^7.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but it conflicts with another require.
- Root composer.json requires willvincent/laravel-rateable ^2.2 -> satisfiable by willvincent/laravel-rateable[2.2.0, 2.2.1].
Have a look at https://packagist.org/packages/willvincent/laravel-rateable: this package is not compatibel with Laravel 8. There's already an issue posted at https://github.com/willvincent/laravel-rateable/issues/50, and a pull request at https://github.com/willvincent/laravel-rateable/pull/49/files.
You need to wait until the maintainer makes the package compatible - but through testing the pull request in your own application, you could provide feedback to the maintainer. That could speed up the process
I have problem with configuration MongoDB Symfony
Program doesnt see class \MongoDbBudle\ to I went to Tools ->
Composer -> add -> "doctrine/mongodb-odm". I tried to install it but I saw error:
C:\wamp64\bin\php\php7.0.10\php.exe C:\Users\Root\PhpstormProjects\untitled2\composer.phar require doctrine/mongodb-odm:1.2.x-dev -n --no-progress
./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
- Removal request for alcaeus/mongo-php-adapter == 1.1.9999999.9999999-dev
- Removal request for alcaeus/mongo-php-adapter == 9999999-dev
- doctrine/mongodb-odm 1.2.x-dev requires doctrine/mongodb ^1.4.0 -> satisfiable by doctrine/mongodb[1.4.0].
- doctrine/mongodb 1.4.0 requires ext-mongo ^1.5 -> satisfiable by alcaeus/mongo-php-adapter[1.1.x-dev, dev-master].
- Installation request for doctrine/mongodb-odm 1.2.x-dev -> satisfiable by doctrine/mongodb-odm[1.2.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- C:\wamp64\bin\php\php7.0.10\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
php.ini seems to be ok. I added dynamic extension mongo-dll:
http://pastebin.com/bfb34A0s
Please help me how to solve this problem.
Using ODM with PHP 7 is a bit trickier than it should, please check if adding
"provide": {
"ext-mongo": "1.6.14"
}
to your project's composer.json would solve the issue. Otherwise you can see full chapter on how to use ODM with PHP 7 in the official documentation
I'm trying to install Symfony CMF bundle.
I have installed SonataAdminBundle 3.x which requires SonataBlockBundle 3.x.
When installing SymfonyCMF bundle it requires symfoy-cmf/block-bundle 1.x, but this block-bundle requires SonataBlockBundle 2.5 or less.
I have fork the symfoy-cmf/block-bundle 1.x and change the requirement to 3.1 or less.
but I'm still getting following error
Problem 1
- symfony-cmf/block-bundle 1.3.0 requires sonata-project/block-bundle >=2.2.12,<2.5 -> satisfiable by
sonata-project/block-bundle[2.2.12, 2.2.13, 2.2.14, 2.2.15, 2.3.0,
2.3.1, 2.3.10, 2.3.11, 2.3.12, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9] but these conflict with your requirements or minimum-stability.
- symfony-cmf/symfony-cmf 1.3.0 requires symfony-cmf/block-bundle 1.3.* -> satisfiable by
symfony-cmf/block-bundle[1.3.0].
- Installation request for symfony-cmf/symfony-cmf ~1.3 -> satisfiable by symfony-cmf/symfony-cmf[1.3.0].
composar.json
...
"symfony-cmf/symfony-cmf": "~1.3",
"iBasit/block-bundle": "dev-master", // this is to replace sonata-cmf/block-bundle requirement
"sonata-project/block-bundle": "3.0.*",
...
We have got composer dependencies conflict.
I tried to use some ways
use minimum-stability section
use conflict section
install cmf first, before admin bundle
check ways you tried to do
I made all I knew about the area of your question and I dont see any decision right know.
The best way here is to use minimum-stability section to cmf bundle with "prefer-stable": true flag
I strongly not recommend you to make some changes like "I have fork the symfoy-cmf/block-bundle 1.x and change the requirement to 3.1 or less" because in future it can break dependencies and logic of bundles and it''s hardcode.
Thanks for attention, pls let me know if anyone find the decision of the problem.