Could not detect the location of "drupal/core"

Created on 12 March 2023, over 1 year ago
Updated 18 August 2023, 11 months ago

Problem/Motivation

Upgrading to Drpal 10
Apache: Drupal: 9.5.4. PHP 8.1.12
When running upgrade status I got the Error message:
Could not detect the location of "drupal/core", please open an issue at https://www.drupal.org/project/issues/upgrade_status β†’ . Scanning is not possible until this is resolved.

But module shows all Modules

Steps to reproduce

I install the module using composer:
Composer require drupal/upgade_status

compoer.json:
"name": "drupal/recommended-project",
"description": "Project template for Drupal 9 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": "^1.9",
"defuse/php-encryption": "^2.3",
"drupal/admin_toolbar": "^3.3",
"drupal/advban": "^1.4",
"drupal/agreement": "^3.0@alpha",
"drupal/backup_migrate": "^5.0",
"drupal/bartik": "1.0",
"drupal/captcha": "^1.2",
"drupal/content_access": "1.x-dev",
"drupal/core-composer-scaffold": "^9.4",
"drupal/core-project-message": "^9.4",
"drupal/core-recommended": "^9.4",
"drupal/disable_messages": "^2.1",
"drupal/ds": "^3.15",
"drupal/editor_advanced_link": "2.0",
"drupal/entity": "1.3",
"drupal/entity_browser": "2.6",
"drupal/entity_usage": "4.x-dev",
"drupal/feeds": "3.x-dev",
"drupal/feeds_ex": "1.x-dev",
"drupal/feeds_tamper": "2.x-dev",
"drupal/gdoc_field": "^1.3",
"drupal/honeypot": "^2.1",
"drupal/language_switcher_langcode_block": "^2.1",
"drupal/language_switcher_menu": "1.0.0-beta1",
"drupal/languageicons": "1.0.0-beta3",
"drupal/paragraphs": "1.13",
"drupal/redirect_after_login": "^2.7",
"drupal/seckit": "2.0",
"drupal/structure_sync": "^2.0",
"drupal/terms_of_use": "^2.2",
"drupal/textarea_widget_for_text": "^1.2",
"drupal/upgrade_status": "^3.18",
"drupal/view_mode_switch": "^2.0",
"drupal/views_bulk_operations": "^4.1",
"drupal/views_data_export": "^1.1",
"sainsburys/guzzle-oauth2-plugin": "^3.0",
"symfony/var-dumper": "*"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": 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": [
" ",
" Congratulations, you’ve installed the Drupal codebase ",
" from the drupal/recommended-project template! ",
" ",
"",
"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"
]
}

πŸ’¬ Support request
Status

Active

Version

3.18

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain lapurddrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lapurddrupal
  • Hi, have you resolved it? I have the same issue

  • πŸ‡§πŸ‡ͺBelgium mchvdm

    I had this issue as well and was able to solve it. Of course you might have an unrelated issue.

    In my core folder I had two folders (one was named 'b', the other was called 'core') with inside those folders another core folder.
    And in those two core folders there was a folder called 'modules' with a few module folders.

    See attached screenshot for clarity.

    After deleting both folders ('b' and 'core') the issue was fixed.

    I do not know where those folders came from, I did a lot of testing on that installation and it was an upgrade from a D8.

  • πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

    Yeah if unrelated composer files are found, that would be a problem indeed. :)

  • πŸ‡§πŸ‡ͺBelgium mchvdm

    Ah true, next to removing those folders I also removed the composer.json file that was residing in my root (/web) folder. Maybe that was the solution and not (just) the removing of the extra folders.

Production build 0.69.0 2024