Questions tagged [composer]

Use it for questions about the PHP application library dependency manager (Composer).

Filter by
Sorted by
Tagged with
0 votes
0 answers
254 views

Fatal error memory limit (always) while installing a module

I am asking for help in solving an extremely annoying problem. I have a simple website based on Drupal 9. Due to its simplicity, the installation of all modules was based on the Drupal UI. I also have ...
Flat Calm's user avatar
-1 votes
1 answer
454 views

Why does composer remove a folder it doesn't manage

I have the gesso theme installed in themes/contrib, and since I have not subthemed, all my components and templates live in within its folders. For that reason, I do not manage it with composer. I ...
JAyenGreen's user avatar
1 vote
1 answer
110 views

Deprecated Dependency Warning not removing

In my Drupal 8.9.6 (Installed with Lightning distribution) Status Admin Page, there are three warnings showing after updating several modules and core to the latest versions: DEPRECATED DEPENDENCY: ...
Muhammad Mustafa's user avatar
14 votes
3 answers
2k views

Require v8 only contrib module with v9 patch

Given I have Drupal 9 composer installation with composer-patches plugin and given a contrib module with a stable v8 release, but no v9 release (not even dev branch) and given that contrib module has ...
Hudri's user avatar
  • 5,286
0 votes
1 answer
456 views

Updating core to 8.9.6 fails

I'v installed Drupal 8 by composer. Everything worked fine, but when I tried to update core from 8.9.1 to 8.9.5 in ended up in 8.9.4. Today I tried to update from 8.9.4. to 8.9.6 by changing composer....
paul77's user avatar
  • 23
1 vote
0 answers
67 views

Updating core with Composer, differences, and why --with-dependencies fails

I'm a Drupal novice and have been playing around with it for the last few months. It seems like every 'how-to' article tells you a different way and a reason not to do it the other way. I am a ...
mindmischief's user avatar
0 votes
1 answer
1k views

Composer killed when installing a module

I am actually running Drupal on a LAMP (XUbuntu 20-04 with 4 GB RAM in VirtualBox) At the beginning of the installation I had no problem with installing dependencies using composer But since yesterday ...
Jean-Pierre Mena's user avatar
0 votes
0 answers
98 views

Composer patches cweagans Core module update syntax - one patch not being applied

I'm using cweagans composer patches: https://github.com/cweagans/composer-patches to patch Drupal 9.x I've made a patch file. The first patch applies but I think I have the path wrong for the core ...
markb's user avatar
  • 21
1 vote
1 answer
414 views

Problem Trying to upgrade webform to latest version using composer

I've been trying to upgrade webform 5.19 to version 6 using composer but I keep getting this error: Your requirements could not be resolved to an installable set of packages. Problem 1 drupal/...
TomP's user avatar
  • 103
0 votes
1 answer
387 views

Why can't I apply patches in the recommended-project?

I just created a new site and I cannot apply the patches with Composer in Drupal 8.9 Here is my composer.json file : { "name": "drupal/recommended-project", "...
sdfff's user avatar
  • 61
0 votes
0 answers
936 views

Update error and Basic Auth / Symfony errors

I'm running 2 servers: TEST and PROD. I've been using Composer to install updates. They are running on Windows Server 2016 using IIS. I copied composer.json and composer.lock from TEST over to PROD. ...
mindmischief's user avatar
1 vote
1 answer
2k views

How do I uninstall and remove Drupal Console from my project?

1 year ago, I installed the Drupal Console module on my site. This module seems to be completely abandoned, so I'm asking my question here. https://www.drupal.org/project/console I had installed this ...
sdfff's user avatar
  • 61
-1 votes
1 answer
23 views

Composer file that is only additive [closed]

We have a Drupal 8.x instance maintained by one team and would like to be able to have another team add modules to this without overriding/removing what is already there. Is this possible?
Paul Croarkin's user avatar
0 votes
0 answers
131 views

Applying patch on core module failing

I am trying to apply patch on core module systems. But it is failing with the message "Could not apply patch! Skipping. The error was: Cannot apply patch patches/path-alias-8.9.2.patch". ...
Nabil's user avatar
  • 341
1 vote
2 answers
215 views

update drupal core from a version to a new version with composer

i want to update the core from 8.7.6 to 8.9.2 and when I try this command "composer require drupal/core:^8.9.2 --update-with-dependencies" i have got an error like below , can anyone help me ...
alex espandora's user avatar
1 vote
2 answers
342 views

Failed updating from 8.8.8 to 8.9.2

I want to update my Drupal website from 8.8.8 to 8.9.2. I have separately tried each of the below: Run composer update Removing both Vendor directory and composer.lock file then run composer install ...
Vanessa Abi Rashed's user avatar
9 votes
2 answers
5k views

drupal/core vs. drupal/core-recommended

I've got a question regarding drupal/core and drupal/core-recommended. So drupal/core-recommended uses fixed versions of the packages, which the corresponding core version was tested with. And yes it ...
adrum99's user avatar
  • 189
1 vote
2 answers
1k views

How can I create a recommended project in the root directory?

My server consists only one Drupal site and therefore I would like to install it directly under D:\home\site\wwwroot However this seems impossible as the new command composer create-project drupal/...
user2574948's user avatar
0 votes
1 answer
2k views

Updating drupal/core using composer: "[RuntimeException] Could not delete web/core" (using Lando)

Trying to update Drupal 8 core. composer require drupal/core:~8.9.2 --no-update This works fine. composer -vvv update It fails with the following: - Updating drupal/core (8.8.5 => 8.9.2): ...
featherbelly's user avatar
  • 1,071
3 votes
2 answers
4k views

Exception: In BootstrapHook.php line 32, how can I consistently resolve this?

My build process is (mostly working), but sometimes when I swap out to a new project, I am winding up with an error which looks like the output below. I have found this error message extremely ...
Hugh Esco's user avatar
0 votes
0 answers
1k views

composer require --dev drupal/devel isn't working

I followed the instructions on prkos.hr/Install-Drupal-8-Ubuntu-1404-LTS for installing Drupal 8 and tried to install 'devel module' but had the error composer require --dev drupal/devel [...
Yevhenii's user avatar
2 votes
1 answer
3k views

How to install a specifc commit in Composer

The commerce_webform_order module (currently in dev status) recently changed one of its dependencies from Webform 5.x (stable) to Webform 6.x (alpha). I want to temporarily freeze ...
Vilāsamuni's user avatar
0 votes
1 answer
801 views

Install and enable 'Real AES' module: Dependency with Defuse PHP-encryption library

I downloaded the real_aes-8.x-2.2.zip file from the Real AES project page, unzipped and copied it to contrib module folder (/var/www/html/modules/contrib). While trying to enable this module using ...
Clare's user avatar
  • 11
2 votes
1 answer
2k views

I'm unable to install the Symfony var-dumper component

I am having issues installing symfony/var-dumper package via composer the command I ran is composer require symfony/var-dumper The result I get is Your requirements could not be resolved to an ...
Sanjok Gurung's user avatar
0 votes
1 answer
111 views

Unable to add patches via composer when we run "composer install" or "composer update"

I am facing an issue wherein I have added a single patch in my composer.json under "extras" "patches": { "drupal/field_validation": { "...
harshal's user avatar
  • 4,359
-1 votes
1 answer
1k views

Why do I get "Nothing to install or update" when I update to latest core version?

Under /admin/modules/update, Drupal core is listed as requiring update from 8.8.8 to 8.9.2. I have started my Drupal installation using the drupal/recommended-project project template and I used ...
Vanessa Abi Rashed's user avatar
1 vote
2 answers
664 views

How do I fix these requirement conflicts? [closed]

While updating through composer, I am getting an error from the Webform module. Drupal version 8.9.1 updated. How do I resolve this error? Problem 1 - drupal/webform_node 5.15.0 requires drupal/...
mike's user avatar
  • 21
0 votes
1 answer
101 views

Install and use Azure SDK

Is it possible to install Azure SDK via Composer within a Drupal site and use it in custom modules? { "require": { "microsoft/windowsazure": "*" } } Also ...
user2574948's user avatar
1 vote
1 answer
680 views

Site crashes after running 'composer install' to update modules

My website is running Drupal 8.8.x When upgrading to Drupal 8.9.x and then running 'composer install' on production everything seems to install as expected but the site then goes offline with a 500 ...
quantumized's user avatar
  • 1,177
0 votes
1 answer
343 views

Cannot update core with composer after switching to core-recommended

I tried to update core from 8.9.0 to 8.9.1 with composer require drupal/core-recommended:8.9.1 but I get the following error: Your requirements could not be resolved to an installable set of packages. ...
0711master's user avatar
1 vote
1 answer
1k views

Can't update to 8.9.1 after migrating from webflo/drupal-core-strict to drupal/core-recommended

I successfully updated my drupal 8.7.8 site to 8.9.0 following the instructions on 'Migrate composer project for Drupal earlier than 8.8.0' Drupal documentation page, section 'Migrating from webflo/...
Paolo's user avatar
  • 11
0 votes
0 answers
296 views

Module missing when uninstalling

When I try to uninstall a module using composer I get an error about the same module is missing, but the module exists. For example, if I run this command: composer remove drupal/bamboo_twig I get: ...
briast's user avatar
  • 632
4 votes
0 answers
1k views

How can I fix requirements could not be resolved to an installable set of packages?

I had a development site still on 8.8.0. I updated it using composer require 'drupal/core-recommended:^8.9' --update-with-all-dependencies, as per instructions; it worked, but it only went to 8.9.0-...
Francesco Marchetti-Stasi's user avatar
0 votes
0 answers
80 views

Change module location

Somehow while converting my D8 site to a composer based site, I ended up with the modules in the sites/modules folder as well as in the sites/modules/contrib folder. When I delete the module folders ...
Glaze's user avatar
  • 13
0 votes
0 answers
108 views

How to specify a patch for dependencies inside a module's composer file?

I would like to know how to specify a patch inside a module's composer file. The scenario is like this: On my Drupal 9 site, I want to run the command composer require module. The module composer ...
Lia's user avatar
  • 121
1 vote
1 answer
292 views

Is it safe to delete the /module folder?

I see that the /module folder still exists and a /module/contrib folder has the updated module folders in it. composer update has updated the site to 8.9 composer update will not update any of ...
DStrider's user avatar
  • 135
0 votes
1 answer
169 views

Maintaining libraries on a live site without Composer

I notice this question has been asked several times on here - and each time the answers always seem to involve using Composer one way or another! :-) I get that one can get around shared hosting ...
Collega's user avatar
  • 109
1 vote
0 answers
404 views

Composer updating to 8.9.0beta2 instead of 8.9.0 [closed]

I'm currently using the drupal/core-recommended project and I'm having issues updating to 8.9.0. Some reason composer is updating it to 8.9.0-beta2. Steps I took to update was go into my composer....
MetalBearSolid's user avatar
0 votes
1 answer
88 views

Can I still start a "stable" D8 project now that D9 is stable? [closed]

Trying to start a new Drupal 8 project today: $ composer create-project --no-install drupal/recommended-project my-recommended-project But this now installs Drupal 9.0.0 instead! :mindblown: So I ...
hotwebmatter's user avatar
  • 2,102
1 vote
1 answer
543 views

Composer: require dev branch then go back to stable once current dev is stable

Let's say you need a patch in a Drupal module (or core) only included in the dev version yet. It's already commited and should normaly be included in the next stable release. So I'd like composer ...
Thony's user avatar
  • 363
-4 votes
1 answer
158 views

Optimize Drupal Composer Workflow via Gitlab

I have the following workflow for one of my product based on Drupal 8: I use three custom private dependencies via composer ( two modules , one theme) , a lot of contrib modules and obviously drupal ...
Christophe CARON's user avatar
0 votes
1 answer
2k views

Project directory in Ubuntu

I am trying to get Drupal 8 installed on Ubuntu 18.04. I have installed LAMP and composer. I will install Drupal 8 with this (I think this is the latest recommended way) ... composer create-project ...
spiderplant0's user avatar
2 votes
1 answer
3k views

How do I remove an unused patch?

I'm trying, for the first time, to add a patch in composer.json, for a layout builder issue (https://www.drupal.org/project/drupal/issues/3045171#comment-13450756). It's the first time I do it, I see ...
arrubiu's user avatar
  • 3,212
0 votes
1 answer
141 views

Composerise Drupal command syntax and starting location

I have 2 sites a dev site and the production site. Need to convert them from drupal/drupal composer sites to the newer format allowing continued support for composer. The syntax is unclear to me as ...
DStrider's user avatar
  • 135
-2 votes
1 answer
50 views

Why isn't the module shown as updated?

I updated a module with Composer and it shows updated in the composer.json file. However, on Available updates, it still shows the old version is installed. I ran update.php and nothing changed. ...
timwhelan's user avatar
  • 258
2 votes
0 answers
253 views

Patch gets not applied to Drupal locally in DDEV built with Composer from the Drupal Git repo

I try to build a local workflow to be able to review patches for core. I am using DDEV for the local environment. Steps I have taken: git clone https://git.drupalcode.org/project/drupal.git . ddev ...
rkoller's user avatar
  • 121
2 votes
1 answer
52 views

Download a module for a different core version?

I'm using Drush 10, and I can't use dl to download a module, since the command was removed to push Composer use. Is there a way to download a Drupal 7 module into a Drupal 8 site using Composer, so ...
mbomb007's user avatar
  • 516
0 votes
1 answer
130 views

Adding repositories in contrib module composer.json?

Is it possible to add repositories from a module's composer.json instead of a project's composer.json? I've got the following set up: Commerce Recurly (sandbox) - and its composer.json Recurly ...
Mrweiner's user avatar
  • 1,921
1 vote
1 answer
717 views

How to troubleshoot entity error

How can I tell which entity is throwing this error (on all pages)? TypeError: Argument 4 passed to Drupal\views\Plugin\views\display\Block::__construct() must implement interface Drupal\Core\...
Charles Letcher's user avatar
2 votes
1 answer
560 views

Cannot install Composer because it doesn't contain any .info.yml files

Newbie using clean Drupal 8 install on a server. Installed module "International Telephone," but got error. Then I read that I needed to also install Composer. When I tried to install Composer, I ...
Thom Kolton's user avatar

1 2 3
4
5
13