- Issue created by @YousefAnbar
Also, please confirm that you tried the Composer command with the
--with-all-dependencies
as directed in the error message.- 🇬🇧United Kingdom catch
Try this:
composer update drupal/core drupal/quiz drupal/rules
However if that's the problem, you should ideally update quiz and rules before updating to 10.3, since this allows to update less things at once.
- 🇯🇴Jordan YousefAnbar Zarqa
{ "name": "drupal/recommended-project", "description": "Project template for Drupal 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" } ], "require": { "composer/installers": "^2.0", "cweagans/composer-patches": "^1.7", "drupal/admin_toolbar": "^3.4", "drupal/auto_entitylabel": "^3.0", "drupal/autotitle": "^1.3", "drupal/better_exposed_filters": "^6.0", "drupal/better_social_sharing_buttons": "^4.0", "drupal/block_class": "^2.0", "drupal/block_content_permissions": "^1.11", "drupal/bootstrap_layout_builder": "^2.1", "drupal/bootstrap_sass": "^5.0", "drupal/conditional_fields": "^4.0@alpha", "drupal/core": "^10.2", "drupal/core-composer-scaffold": "^10.2", "drupal/core-recommended": "^10.2", "drupal/ds": "^3.18", "drupal/entityqueue": "^1.7", "drupal/eu_cookie_compliance": "^1.24", "drupal/field_group": "^3.4", "drupal/honeypot": "^2.1", "drupal/inline_entity_form": "^3.0@RC", "drupal/layout_builder_modal": "^1.2", "drupal/layout_builder_restrictions": "^2.19", "drupal/layout_builder_st": "^1.0@alpha", "drupal/layout_builder_styles": "^2.0", "drupal/layout_library": "^1.0@beta", "drupal/likeit": "^3.1", "drupal/link_class": "^2.1", "drupal/mail_login": "^3.0", "drupal/media_entity_soundcloud": "^3.1", "drupal/menu_link_attributes": "^1.3", "drupal/menu_position": "^1.1", "drupal/metatag": "^2.0", "drupal/password_policy": "^4.0", "drupal/pathauto": "^1.12", "drupal/pdf": "^1.2", "drupal/quiz": "^6.0@alpha", "drupal/rabbit_hole": "^2.0@alpha", "drupal/redirect": "^1.9", "drupal/registration_role": "^2.0", "drupal/schema_metatag": "^3.0", "drupal/session_limit": "^2.0@beta", "drupal/simple_sitemap": "^4.1", "drupal/slick": "^2.10", "drupal/slick_views": "^2.8", "drupal/smart_trim": "^2.1", "drupal/smtp": "^1.2", "drupal/svg_image_field": "^2.3", "drupal/table_bs_filter": "^2.0", "drupal/taxonomy_bulk_actions": "^1.0", "drupal/taxonomy_unique": "^2.5", "drupal/token_filter": "^2.1", "drupal/universal_device_detection": "^2.0", "drupal/userprotect": "^1.2", "drupal/video_embed_field": "^2.5", "drupal/views_bootstrap": "^5.5@alpha", "drupal/views_data_export": "^1.4", "drupal/webform": "^6.2", "drupal/webform_views": "^5.2", "drupal/webp": "^1.0@RC", "drupal/xls_serialization": "^1.3", "drush/drush": "^12.4" }, "conflict": { "drupal/drupal": "*" }, "minimum-stability": "dev", "prefer-stable": true, "config": { "allow-plugins": { "composer/installers": true, "drupal/core-composer-scaffold": true, "phpstan/extension-installer": true, "dealerdirect/phpcodesniffer-composer-installer": true, "php-http/discovery": true, "cweagans/composer-patches": true }, "sort-packages": true }, "extra": { "drupal-scaffold": { "locations": { "web-root": "web/" } }, "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/profiles/custom/{$name}": [ "type:drupal-custom-profile" ], "web/themes/custom/{$name}": [ "type:drupal-custom-theme" ] }, "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/installing-drupal", " * 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" ] }, "enable-patching": true, "patches": { "drupal/core": { "Warning: Undefined array key 1 in": "https://www.drupal.org/files/issues/2022-12-26/3329660-2.patch", "Fix multilingual site's layout edit context issue": "https://www.drupal.org/files/issues/2023-08-30/3101231-D10-allow-synced-layout-override-translations.patch", "InvalidArgumentException: Invalid translation language (en) specified": "https://www.drupal.org/files/issues/2023-09-13/3386915-6.patch", "Views relationships with multi-valued entity reference fields invalidate Distinct query option": "https://www.drupal.org/files/issues/2023-02-27/2993688-117.patch" }, "drupal/layout_builder_st": { "Argument 1 passed error": "https://www.drupal.org/files/issues/2020-01-13/layout_builder_st-3106064-2.patch", "Argument 1 passed to ComponentPluginTranslate": "https://www.drupal.org/files/issues/2019-07-24/isTranslation-null-given.patch", "Contextual links for translation are removed by core": "https://git.drupalcode.org/project/layout_builder_st/-/merge_requests/5.patch", "Error: Call to a member function getConfig() OverridesSectionStorage.php": "https://www.drupal.org/files/issues/2024-02-22/3420063-15.patch" }, "drupal/field_group": { "Allow token to be used in attributes and classes for HTML elements": "https://www.drupal.org/files/issues/2022-11-14/field_group-2961885-20.patch" }, "drupal/media_library_form_element": { "TypeError: explode(): Argument #2 ($string) must be of type string, array given in explode()": "https://www.drupal.org/files/issues/2023-05-10/check-default-value-not-array-15044301-16.patch" }, "drupal/smtp": { "Invalid address: (Reply-To)": "https://www.drupal.org/files/issues/2023-06-11/invalid-address-reply-To-3366074-2.patch" }, "drupal/likeit": { "Entity queries must explicitly set whether the query should be access checked or not.": "https://www.drupal.org/files/issues/2024-03-03/fix-accessCheck-error-3425165-1.patch", "Change the once() from JQUERY": "patches/fix-once-jquery.patch" }, "drupal/quiz": { "Add questions from bank shoud have destination": "https://www.drupal.org/files/issues/2023-06-09/3365470-add-questions-from-bank-redirection.patch", "Remove jquery/once library code": "https://www.drupal.org/files/issues/2024-03-05/3425669-2.patch" } }, "patches-ignore": {} } }
- 🇯🇴Jordan YousefAnbar Zarqa
@cilefen Yes, I tried this
composer update "drupal/core-*" --with-all-dependencies
@catch when I run this command, this is the result
$ composer update drupal/core drupal/quiz drupal/rules Gathering patches for root package. Loading composer repositories with package information Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Nothing to install, update or remove Generating autoload files 48 packages you are using are looking for funding. Use the `composer fund` command to find out more! No security vulnerability advisories found.
See https://getcomposer.org/doc/03-cli.md#prohibits-why-not
Having both drupal/core and drupal/core-revommended specified is not recommended.
- 🇮🇳India nishtha.pradhan
I agree with #7
But if you still want to keep both drupal/core and drupal/core-recommended, then you try this:- Make a backup of all your codebase.
- Delete vendor/ folder & composer.lock file
- Now try running just
composer update "drupal/core-*" --with-all-dependencies
- 🇺🇸United States chartmann
https://www.drupal.org/project/drupal/issues/3459791#comment-15674110 💬 Cannot update from Drupal Core: 10.2.7 to 10.3.1 Active worked for me. I was getting a circular dependency for Rules. I modified to:
composer require drupal/core-recommended:10.3.7 drupal/core-composer-scaffold:10.3.7 drupal/core-project-message:10.3.7 drupal/rules --update-with-all-dependencies