Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using a Composer setup based on https://github.com/drupal-composer/drupal-project with the Drupal.org repository URL. The version of core installed is 7.50 - 7.51 is not downloaded when running composer update drupal/drupal --with-dependencies
.
I've also tried removing the composer.lock
file and running composer install
, but it has the same result.
If I change the repository URL to https://packagist.drupal-composer.org
and run the same command, 7.51 is downloaded.
Here is my composer.json
:
{
"repositories": [{
"type": "composer",
"url": "https://packages.drupal.org/7"
}],
"require": {
"composer/installers": "~1.0",
"derhasi/composer-preserve-paths": "0.1.*",
"drupal/admin_theme": "^1.0",
"drupal/adminimal_admin_menu": "^7.1",
"drupal/adminimal_theme": "^7.1",
"drupal/contact_google_analytics": "^1.4",
"drupal/diff": "^3.2",
"drupal/drupal": "7.*",
"drupal/email": "^1.3",
"drupal/entity": "^1.8",
"drupal/features": "^2.10",
"drupal/field_collection": "^1.0",
"drupal/filefield_paths": "^1.0",
"drupal/ga_tokenizer": "^1.5",
"drupal/globalredirect": "^1.5",
"drupal/google_analytics": "^2.3",
"drupal/imagefield_crop": "^2.0",
"drupal/libraries": "^2.3",
"drupal/logintoboggan": "^1.5",
"drupal/master": "^2.0",
"drupal/menu_firstchild": "^1.1",
"drupal/module_filter": "^2.0",
"drupal/multiselect": "^1.12",
"drupal/nice_menus": "^2.5",
"drupal/page_title": "^2.7",
"drupal/paranoia": "^1.6",
"drupal/pathauto": "^1.3",
"drupal/permissions_lock": "^1.0",
"drupal/redirect": "^1.0",
"drupal/references": "^2.1",
"drupal/security_review": "^1.2",
"drupal/strongarm": "^2.0",
"drupal/views": "^3.14",
"drupal/views_bulk_operations": "^3.3",
"drupal/views_slideshow": "^3.1",
"drupal/wysiwyg": "^2.2"
},
"conflict": {
"drupal/core": "8.*"
},
"scripts": {
"post-create-project-cmd": [
"rm README.md LICENSE .travis.yml phpunit.xml.dist"
]
},
"config": {
"vendor-dir": "vendor"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/": ["type:drupal-core"],
"web/sites/all/modules/contrib/{$name}/": ["type:drupal-module"],
"web/sites/all/themes/contrib/{$name}/": ["type:drupal-theme"],
"web/sites/all/libraries/{$name}/": ["type:drupal-library"],
"web/sites/all/drush/{$name}/": ["type:drupal-drush"],
"web/profiles/{$name}/": ["type:drupal-profile"]
},
"preserve-paths": [
"web/sites/all/modules/contrib",
"web/sites/all/modules/custom",
"web/sites/all/themes/contrib",
"web/sites/all/themes/custom",
"web/sites/all/libraries",
"web/sites/all/drush",
"web/sites/default/settings.php",
"web/sites/default/files"
],
"patches": {},
"branch-alias": {}
},
"require-dev": {
"drupal/devel": "^1.5",
"drupal/reroute_email": "^1.2",
"drupal/stage_file_proxy": "^1.7"
}
}
Comments
Comment #2
webflo CreditAttribution: webflo at UEBERBIT GmbH commentedHi, could you dump the output of "composer why drupal/drupal"? Thanks!
Comment #3
opdaviesSure.
Comment #4
opdaviesAny progress on this issue?
I'm currently stuck on an unsecure version of D7 core and cannot update following https://www.drupal.org/SA-CORE-2016-005.
Comment #5
MixologicSorry its been so long, I took a look at this and created a composer.json with what you have above and did a composer install.
The first thing that happened was that the package constraints for adminimal_theme and adminimal_admin_menu are set to packagist.drupal-composer.org style version numbers:
I removed the 7's from that, did a composer install and it grabbed drupal/drupal 7.53
All of the metadata for drupal/drupal 7.50 and above exists at the facade, so Im not sure what else might be causing this.
If I edit the composer.json, set it to 7.50 manually, and composer update, it downgrades to 7.50. If I then change it back to 7.* and do a
composer update drupal/drupal --with-dependencies
it upgrades to 7.53 like I would expect it to.If, after tweaking the version numbers for adminimal there is still a problem, how about posting the results of
composer -vvv update drupal/drupal --with-dependencies
Comment #6
opdaviesAh, I hadn't spotted the incorrect Adminimal versions. Weird, as I don't think I've used the Packagist repo on that project, aside for testing the core issue.
I've fixed the versions, removed composer.lock and re-run
composer install
and got 7.53 so it seems like this was the issue.Also, the
composer create-project drupal-composer/drupal-project:7.x-dev some-dir --stability dev --no-interaction
command from https://github.com/drupal-composer/drupal-project/tree/7.x gets 7.53 too. :)Thanks!