Drupal 升级 9 到 10 编辑器冲突

问题描述 投票:0回答:1

对于作曲家来说相当陌生,有几个问题。 按照此处的说明进行操作 > https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-later/how-to-upgrade-from-drupal-9-to-drupal-10 & https://www.drupal.org/docs/updating-drupal/updating-drupal-core-via-composer

当我跑步时

composer update --dry-run
我得到一个“问题”

  Problem 1
    - Root composer.json requires drupal/config_update ^1.6 -> satisfiable by drupal/config_update[1.6.0, 1.7.0, 1.x-dev].
    - Root composer.json requires drupal/core-recommended ^10 -> satisfiable by drupal/core-recommended[10.0.0-alpha1, ..., 10.5.x-dev].
    - drupal/better_exposed_filters 5.x-dev is an alias of drupal/better_exposed_filters dev-5.x and thus requires it to be installed too.
    - drupal/better_exposed_filters[dev-5.x, 5.0.0-beta1, ..., 5.2.0] require drupal/jquery_ui_slider ^1.1 -> satisfiable by drupal/jquery_ui_slider[1.1.0, 1.x-dev].
    - Conclusion: don't install drupal/jquery_ui_slider 1.1.0 (conflict analysis result)
    - Root composer.json requires drupal/better_exposed_filters ^5.0 -> satisfiable by drupal/better_exposed_filters[5.0.0-beta1, ..., 5.x-dev (alias of dev-5.x)]

composer.json:

{
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal 8 projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
          "type": "package",
          "package": {
            "name": "jquery/jquery-simple-color",
            "version": "1.2.3",
            "dist": {
              "url": "https://github.com/recurser/jquery-simple-color/archive/v1.2.3.zip",
              "type": "zip"
            },
            "type": "drupal-library"
          }
        },
        {
          "type": "package",
          "package": {
            "name": "josdejong/jsoneditor",
            "version": "v5.29.1",
            "type": "drupal-library",
            "dist": {
              "url": "https://github.com/josdejong/jsoneditor/archive/v5.29.1.zip",
              "type": "zip"
            },
            "source": {
              "url": "https://github.com/josdejong/jsoneditor",
              "type": "git",
              "reference": "v5.29.1"
            }
          }
        }
    ],
    "require": {
        "composer/installers": "^1.2",
        "cweagans/composer-patches": "^1.6",
        "drupal/access_unpublished": "1.x-dev",
        "drupal/addtoany": "^1.16",
        "drupal/admin_toolbar": "^2.5",
        "drupal/advagg": "^6.0@alpha",
        "drupal/anchor_link": "^1.9",
        "drupal/ape": "^1.5",
        "drupal/basic": "^2.1",
        "drupal/better_exposed_filters": "^5.0",
        "drupal/block_class": "^1.3",
        "drupal/coder": "^8.3",
        "drupal/color_field": "^3.0",
        "drupal/config_ignore": "^2.3",
        "drupal/config_split": "^1.7",
        "drupal/config_update": "^1.6",
        "drupal/core-composer-scaffold": "^10",
        "drupal/core-project-message": "^10",
        "drupal/core-recommended": "^10",
        "drupal/crop": "^2.2",
        "drupal/ctools": "^3.7",
        "drupal/custom_pub": "^1.0@beta",
        "drupal/dropzonejs": "^2.0",
        "drupal/dynamic_entity_reference": "^1.16",
        "drupal/easy_breadcrumb": "^2.0",
        "drupal/elasticsearch_connector": "^8.0.x-dev",
        "drupal/embed": "^1.5",
        "drupal/entity_browser": "^2.5",
        "drupal/entity_embed": "^1.0",
        "drupal/exclude_node_title": "^1.4",
        "drupal/fa_formatter": "^1.2",
        "drupal/fastly": "^3.10",
        "drupal/field_formatter_class": "^1.1",
        "drupal/field_group": "^3.2",
        "drupal/form_options_attributes": "^1.0",
        "drupal/helpfulness": "2.x-dev@dev",
        "drupal/image_widget_crop": "^2.2",
        "drupal/inline_entity_form": "^1.0@RC",
        "drupal/jquery_ui_accordion": "^1.1",
        "drupal/json_field": "^1.3",
        "drupal/link_class": "^2.0",
        "drupal/linkit": "^6.0@beta",
        "drupal/media_entity_browser": "^2.0@alpha",
        "drupal/menu_block": "^1.8",
        "drupal/menu_link_attributes": "^1.2",
        "drupal/metatag": "^1.19",
        "drupal/minifyhtml": "^1.11",
        "drupal/override_node_options": "^2.4",
        "drupal/paragraphs": "^1.14",
        "drupal/path_redirect_import": "^2.0",
        "drupal/pathauto": "^1.10",
        "drupal/prevent_term_delete": "^1.3@alpha",
        "drupal/rabbit_hole": "^1.0@beta",
        "drupal/raven": "^3.2",
        "drupal/redirect": "^1.7",
        "drupal/redis": "^1.5",
        "drupal/s3fs": "^3.0@beta",
        "drupal/scheduled_transitions": "^2.3@beta",
        "drupal/schema_metatag": "^2.3",
        "drupal/search_api": "^1.25",
        "drupal/simple_block": "^1.3",
        "drupal/simple_gmap": "^3.0",
        "drupal/simple_sitemap": "^4.1",
        "drupal/time_field": "^2.1",
        "drupal/token": "^1.10",
        "drupal/twig_tweak": "^3.2",
        "drupal/ultimate_cron": "^2.0@alpha",
        "drupal/video_embed_field": "^2.2",
        "drupal/views_infinite_scroll": "^1.6",
        "drupal/workbench": "^1.1",
        "drupal/workbench_email": "^2.2",
        "drupal/workbench_moderation": "^1.5",
        "drupal/yoast_seo": "^1.7",
        "drush/drush": "^12",
        "google/apiclient": "^2.4",
        "josdejong/jsoneditor": "^5.29",
        "jquery/jquery-simple-color": "^1.2",
        "jsq/amazon-es-php": "^0.3.0",
        "nesbot/carbon": "^2.43",
        "oomphinc/composer-installers-extender": "^2.0",
        "platformsh/config-reader": "^2.3",
        "webflo/drupal-finder": "^1.2",
        "webmozart/path-util": "^2.3"
    },
    "require-dev": {
        "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
        "palantirnet/drupal-rector": "^0.11.4",
        "phpcompatibility/php-compatibility": "^9.3",
        "squizlabs/php_codesniffer": "^3.11"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "composer/installers": true,
            "cweagans/composer-patches": true,
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "drupal/core-composer-scaffold": true,
            "oomphinc/composer-installers-extender": true,
            "drupal/core-project-message": true,
            "drupal/console-extend-plugin": true,
            "php-http/discovery": true
        }
    },
    "scripts": {
        "phpcs": "./vendor/bin/phpcs --standard='Drupal,DrupalPractice' -n --extensions='php,module,inc,install,test,profile,theme' --ignore='web/modules/contrib/*' web/themes/diabetes web/modules",
        "phpcbf": "./vendor/bin/phpcbf --standard='Drupal,DrupalPractice' -n --extensions='php,module,inc,install,test,profile,theme' --ignore='web/modules/contrib/*' web/themes/diabetes web/modules"
    },
    "extra": {
        "installer-types": ["component"],
        "installer-paths": {
            "web/core": ["type:drupal-core"],
            "web/libraries/{$name}": ["type:drupal-library"],
            "web/modules/contrib/{$name}": ["type:drupal-module"],
            "web/profiles/contrib/{$name}": ["type:drupal-profile"],
            "web/themes/contrib/{$name}": ["type:drupal-theme"],
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
            "web/modules/custom/{$name}": ["type:drupal-custom-module"],
            "web/themes/custom/{$name}": ["type:drupal-custom-theme"]
        },
        "enable-patching": true,
        "patches-file": "./composer.patches.json",
        "drupal-core-project-message": {
            "include-keys": ["homepage", "support"],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",

                "  * Install the site: https://www.drupal.org/docs/8/install",
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
        },
        "drupal-scaffold": {
            "locations": {
                "web-root": "web"
            },
            "file-mapping": {
                "[web-root]/robots.txt": false,
                "[web-root]/sites/development.services.yml": false,
                "[web-root]/.htaccess": false
            }
        }
    }
}

我尝试更新 better_expose_filters:

composer require 'drupal/better_exposed_filters' --no-update

但是当我运行时,我遇到了很多问题

composer update --dry-run

  Problem 1
    - Conclusion: don't install drupal/better_exposed_filters 7.0.3 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 10.4.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 10.5.x-dev (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.0-alpha7 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.0-alpha1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.0-alpha1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.0-beta1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.0-beta2 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.0-beta1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.0-beta1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.0-beta1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.4.0-beta1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.0-rc1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.0-rc2 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.0-rc3 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.0-rc1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.0-rc1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.0-rc1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.4.0-rc1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.0 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.2 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.3 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.4 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.5 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.6 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.7 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.8 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.9 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.10 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.0.11 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.0 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.2 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.3 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.4 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.5 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.6 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.7 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.1.8 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.0 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.2 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.3 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.4 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.5 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.6 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.7 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.8 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.9 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.10 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.11 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.2.12 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.0 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.1 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.2 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.3 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.4 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.5 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.6 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.7 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.8 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.9 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.10 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.3.11 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.4.0 (conflict analysis result)
    - Conclusion: don't install drupal/core 10.4.1 (conflict analysis result)
    - drupal/core[11.0.0-alpha1, ..., 11.x-dev] require php >=8.3.0 -> your php version (8.1.29) does not satisfy that requirement.
    - Root composer.json requires drupal/prevent_term_delete ^1.3@alpha -> satisfiable by drupal/prevent_term_delete[1.3.0-alpha4].
    - Root composer.json requires drupal/better_exposed_filters ^7.0 -> satisfiable by drupal/better_exposed_filters[7.0.0-beta1, ..., 7.0.x-dev].
    - Conclusion: don't install drupal/config_update 1.7.0 (conflict analysis result)
    - drupal/better_exposed_filters[7.0.0-beta1, ..., 7.0.2] require drupal/core ^10 || ^11 -> satisfiable by drupal/core[10.0.0-alpha1, ..., 10.5.x-dev, 11.0.0-alpha1, ..., 11.x-dev].
    - Conclusion: don't install one of drupal/core[10.0.0-alpha6], drupal/config_update[1.6.0] (conflict analysis result)
    - Conclusion: don't install one of drupal/core[10.0.0-alpha5], drupal/config_update[1.6.0] (conflict analysis result)
    - Conclusion: don't install one of drupal/core[10.0.0-alpha4], drupal/config_update[1.6.0] (conflict analysis result)
    - Conclusion: don't install one of drupal/core[10.0.0-alpha3], drupal/config_update[1.6.0] (conflict analysis result)
    - Conclusion: don't install one of drupal/core[10.0.0-alpha2], drupal/config_update[1.6.0] (conflict analysis result)
    - Conclusion: don't install one of drupal/core[10.0.0-alpha1], drupal/config_update[1.6.0] (conflict analysis result)
    - Root composer.json requires drupal/config_update ^1.6 -> satisfiable by drupal/config_update[1.6.0, 1.7.0, 1.x-dev].

为什么这里提到 Drupal 的其他版本?我该如何处理这个冲突?

drupal composer-php
1个回答
0
投票

要求

"drupal/better_exposed_filters": "^5.0"
与 Drupal 10 不兼容。您需要最新的 v6(最后一次发布于 2024 年 5 月)或 v7(本周刚刚更新)。

此外,我建议不要在任何生产环境中使用 alpha 或 dev 版本。此类版本可能包含错误或在没有警告的情况下更改其行为

© www.soinside.com 2019 - 2024. All rights reserved.