Tek Raj Bhatt → created an issue.
@ cehjan → it is not a good way to update Drupal core. Since, some settings of the old site are stored in the database, they may cause issue later on.
For drupal/core related issues I have added the following code in my composer.json file.
"drupal/core": "^10.0",
"drupal/core-composer-scaffold": "^10.0",
"drupal/core-project-message": "^10.0",
"drupal/core-recommended": "^10.0",
Along with it, we need to remove the old plugins and themes which are causing the issues.
@ Merrydbe → what issue are you getting exactly? Can you post the errors as well as the steps you followed for the D9 to D10 migration?
By the way, after struggling for a few days I am able to update my giant project which uses around 80+ modules is now migrated to Drupal 10.
I am also getting the same problem while updating to Drupal 10 from Drupal 9 using Composer.
Below is the code for my composer.json file. Actually, I have updated the version of drupal/core-recommended, drupal/core-project-message, and core-composer-scaffold to ^10.0.1 from ^9.5.11 a few minutes ago and then tried composer update.
{
"name": "pantheon-upstreams/drupal-project",
"description": "Install Drupal 9 with Composer on Pantheon.",
"type": "project",
"license": "MIT",
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "path",
"url": "upstream-configuration"
}
],
"require": {
"composer/installers": "^1.9",
"drupal/address": "^1.9",
"drupal/admin_toolbar": "^3.1",
"drupal/adminimal_admin_toolbar": "^1.11",
"drupal/advagg": "^6.0@alpha",
"drupal/ajax_loader": "^2.0",
"drupal/antibot": "^2.0",
"drupal/backup_migrate": "^5.0",
"drupal/better_exposed_filters": "^6.0",
"drupal/blazy": "^2.4",
"drupal/block_visibility_groups": "^1.4",
"drupal/cer": "^5.0@beta",
"drupal/checklistapi": "^2.0",
"drupal/chosen": "^3.0",
"drupal/classy_paragraphs": "^1.0@RC",
"drupal/clientside_validation": "^4.0",
"drupal/config_direct_save": "^2.1",
"drupal/config_filter": "^1.10",
"drupal/config_split": "^1.9",
"drupal/config_update": "^2.0@alpha",
"drupal/contact_block": "^1.5",
"drupal/contact_storage": "^1.1",
"drupal/core-composer-scaffold": "^10.0",
"drupal/core-project-message": "^10.0",
"drupal/core-recommended": "^10.0",
"drupal/ctools": "^3.7",
"drupal/date_recur": "^3.2",
"drupal/devel": "^4.1",
"drupal/devel_entity_updates": "^4.1",
"drupal/drupal-driver": "^2.1",
"drupal/drupal-extension": "^4.1",
"drupal/editor_advanced_link": "^2.0",
"drupal/editor_file": "^1.5",
"drupal/entity_clone": "^2.0@beta",
"drupal/entity_reference_revisions": "^1.9",
"drupal/entity_reference_views_select": "^1.4",
"drupal/entity_update": "^3.0",
"drupal/examples": "^3.0",
"drupal/fakeobjects": "^1.1",
"drupal/faqfield": "^7.0",
"drupal/fences": "^3.0",
"drupal/field_group": "^3.1",
"drupal/fitvids": "^1.1",
"drupal/flexslider": "^2.0",
"drupal/geolocation": "^3.12",
"drupal/google_analytics": "^3.1",
"drupal/haystack": "^1.9",
"drupal/honeypot": "^2.0",
"drupal/image_widget_crop": "^2.3",
"drupal/jquery_ui_checkboxradio": "^1.2",
"drupal/menu_link_attributes": "^1.2",
"drupal/metatag": "^1.16",
"drupal/migrate_tools": "^5.0",
"drupal/neato": "^1.9",
"drupal/owlcarousel": "^1.0@beta",
"drupal/pantheon_advanced_page_cache": "^1.2",
"drupal/paragraphs": "^1.15",
"drupal/paragraphs_edit": "^2.0@alpha",
"drupal/pathauto": "^1.8",
"drupal/pdfpreview": "^1.0",
"drupal/prepopulate": "^2.3",
"drupal/rabbit_hole": "^1.0@beta",
"drupal/range": "^1.5",
"drupal/recaptcha": "^3.0",
"drupal/recaptcha_v3": "^1.4",
"drupal/recommended-project": "^10",
"drupal/redirect": "^1.6",
"drupal/schema_metatag": "^2.2",
"drupal/seckit": "^2.0",
"drupal/sendgrid_integration": "^2.1",
"drupal/seo_checklist": "^5.0",
"drupal/simple_block": "^1.2",
"drupal/simple_gmap": "^3.0",
"drupal/sitemap": "^2.0@beta",
"drupal/slick": "^2.10",
"drupal/slick_views": "^2.8",
"drupal/smtp": "^1.0",
"drupal/svg_image": "^1.14",
"drupal/twig_field_value": "^2.0",
"drupal/twig_tweak": "^3.1",
"drupal/twig_xdebug": "^1.2",
"drupal/views_block_filter_block": "^1.0",
"drupal/views_bulk_operations": "^4.0",
"drupal/viewsreference": "^1.7",
"drupal/webform": "^6.2@beta",
"drupal/webform_ip_geo": "^1.0",
"drupal/wordpress_migrate": "^3.0@alpha",
"drupal/xmlsitemap": "^1.0",
"drush/drush": "^11"
},
"require-dev": {
"phpspec/prophecy-phpunit": "^2",
"phpunit/phpunit": "^9",
"symfony/phpunit-bridge": "^5.3"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"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/private/scripts/quicksilver/{$name}/": ["type:quicksilver-script"]
},
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2"
},
"drupal-scaffold": {
"allowed-packages": [
"pantheon-systems/drupal-integrations"
],
"locations": {
"web-root": "./web"
},
"file-mapping": {
"[project-root]/.editorconfig": false,
"[project-root]/pantheon.upstream.yml": false,
"[project-root]/.gitattributes": false
}
}
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "8.1.20"
},
"allow-plugins": {
"drupal/core-project-message": true,
"zaporylie/composer-drupal-optimizations": true,
"drupal/core-composer-scaffold": true,
"cweagans/composer-patches": true,
"composer/installers": true
}
}
}