Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2022 at 07:55 UTC
Updated:
26 Apr 2023 at 08:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
toby_toby commentedComment #3
cilefen commentedIt looks like another copy of Drupal installed into the vendor directory. How did you upgrade this codebase?
Comment #4
cilefen commentedComment #5
toby_toby commented#3 thank you for your response.
using composer command ie, $composer update
Comment #6
cilefen commentedYou have two copies of Drupal installed there somehow, which is most unusual. Show us the composer.json file.
Comment #7
toby_toby commented#6 pls find the attached composer.json file in .txt format
Comment #8
pgn5qs commentedI have the same exact issue. I was transiently able to get it working again when I downgraded composer back to 2.0.11 but then it recurred. Site completely broken now. WSOD.
Update: Strange but if I downgrade to composer 2.0.11 and then $composer update. This fixes the crash.
Comment #9
cilefen commentedcomposer/installers": false,Is probably the problem. You actually have to allow those plugins or everything installs into vendor then you have two copies.Comment #10
cilefen commentedComment #11
cilefen commentedComment #12
toby_toby commented#9 Perfect, It's worked.
I am changed the value to
composer/installers": true,and removed vendor folder and composer.lock file then ran the
composer installcommand.after that, successfully ran the drush commands.
Now the issue is solved.
Thank you for your support.
Comment #13
cilefen commentedComment #15
amit.mall commented#9, #12 not working for me
Comment #16
amitgoyal commentedI tried following steps to make it work which are similar to https://www.drupal.org/project/drupal/issues/3276393#comment-14493922,
In my case, composer/installers was already set to true. After running the above steps, I was able to clear the cache and run database updates.
Comment #17
siddharthjain commentedThanks @amitgoyal, #16 works for me.