yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
14.24k stars 6.91k forks source link

update to 2.0.50 error #20220

Closed easydowork closed 3 months ago

easydowork commented 3 months ago

Additional info

Q A
Yii version 2.0.49
PHP version 8.1
Operating system centos7.9
php81 /usr/local/bin/composer update --ignore-platform-reqs --with-all-dependencies
yiisoft/yii2-composer contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "yiisoft/yii2-composer" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] d
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires ezyang/htmlpurifier ^4.17, found ezyang/htmlpurifier[dev-chmod-msg, dev-fix-ci, dev-master, dev-revert-339-semantic-release, dev-php8.4, v4.5.0, ..., v4.16.0] but it does not match the constraint.
  Problem 2
    - yiisoft/yii2[2.0.14, ..., 2.0.42.1] require ezyang/htmlpurifier ~4.6 -> found ezyang/htmlpurifier[v4.6.0, ..., v4.16.0] but it conflicts with your root composer.json require (^4.17).
    - yiisoft/yii2[2.0.46, ..., 2.0.49.4] require ezyang/htmlpurifier ^4.6 -> found ezyang/htmlpurifier[v4.6.0, ..., v4.16.0] but it conflicts with your root composer.json require (^4.17).
    - yiisoft/yii2 2.0.50 requires ezyang/htmlpurifier ^4.17 -> found ezyang/htmlpurifier[dev-chmod-msg, dev-fix-ci, dev-master, dev-revert-339-semantic-release, dev-php8.4, v4.5.0, ..., v4.16.0] but it does not match the constraint.
    - Root composer.json requires yiisoft/yii2 ~2.0.14 -> satisfiable by yiisoft/yii2[2.0.14, ..., 2.0.50].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
bizley commented 3 months ago

Thank you for your question. In order for this issue tracker to be effective, it should only contain bug reports and feature requests.

We advise you to use our community driven resources:

The support forum The IRC chat room Slack The Definitive Guide to Yii If you are confident that there is a bug in the framework, feel free to provide information on how to reproduce it. This issue will be closed for now.