Questions tagged [composer]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
9 views

Egulias Email validator error when upgrading from Drupal 9.5 to 10.1.8 using composer

I am trying to upgrade from Drupal 9.5 to 10.1.8 using composer. I have used upgrade status module to ensure that all modules are compatible with Drupal 10. I have used the composer command to begin ...
Binny's user avatar
  • 890
0 votes
0 answers
56 views

Contrib module remove

I want to remove the content_sync module from my site. Firstly I uninstalled it with drush pm-uninstall, run a drush cex, drush cr and then removed it using composer remove. I removed also every ...
user7167081's user avatar
0 votes
0 answers
68 views

Issue Installing First Drupal Module with Composer

While setting up a new Drupal 10 site with composer, installing the first module using composer causes a 500 (internal server error) for all pages. This is my first time installing any version of ...
Mike Chess's user avatar
-1 votes
0 answers
65 views

Applying a Github patch to a custom module

I am developing a custom module and using composer to require dependencies. In my root composer.json I have: "require" : { .... "drupal/my_module": "^0.2.1&...
John Doe's user avatar
-1 votes
1 answer
120 views

Drush Launcher does not work

Drush Launcher gives an error in an environment updated to Drupal 10.2. The environment is Drupal 10.2, PHP 8.2, Drush 12.4, Drush Launcher 0.10.2. Specifically, I get the following error [user@host ...
Skyyade's user avatar
  • 23
-3 votes
0 answers
73 views

How to upgrade both Drupal and Drush at once? [duplicate]

To do a minor upgrade for a Drupal project I do composer update but I have learned that this global command will not upgrade Drush. If Drush is an add-on over a Drupal project, why then this global ...
just someone in the void's user avatar
-2 votes
1 answer
125 views

Unable to upgrade from 10.1 to 10.2

I've been using Composer from the start and have had no problem upgrading Drupal as it went, but somehow it refuses to upgrade from 10.1.8 to 10.2. In my composer.json I have "drupal/core-...
Hubert's user avatar
  • 149
-2 votes
1 answer
77 views

Dependency issues do not allow to upgrade [closed]

I'm trying to upgrade a project to 10.2 but I should update my modules first. Running composer update throws this error. Deprecation Notice: Using ${var} in strings is deprecated, use {$var} instead ...
Jorge Montoya's user avatar
0 votes
2 answers
105 views

"Declaration of Monolog\Logger::emergency() must be compatible with Psr\Log\LoggerInterface::emergency()"

I'm using PHP 8.1.2-1ubuntu2.14, Drush 8.4.12 (latest), and Drupal 7.98 (not yet updated). I'm having a problem with a Drush command which uses Google APIs, Google Auth, and Google services. I get the ...
eliosh's user avatar
  • 31
0 votes
2 answers
352 views

Upgrade via Composer shows errors [closed]

I'm trying to upgrade Drupal 9.5.11 to Drupal 10 via composer. The upgrade status module shows everything is ok. I've disabled every module except the toolbar and configuration manager. I've done this ...
Meggy's user avatar
  • 417
0 votes
1 answer
247 views

I can't upgrade from 9.5.11 to 10.2.0

I'm not able to upgrade my website from Drupal 9.5.11 to 10.2.0 via Composer. I don't think there is something wrong with the module versions; the Upgrade status module gives me a good to go. The ...
Filip's user avatar
  • 13
0 votes
0 answers
52 views

Update every module to the latest resolvable version in a single command?

I read Using Composer to Download and Update Files which says I have to type out module names to update them. Is there command to update every module, for example a plain composer update?
giorgio79's user avatar
  • 4,621
0 votes
1 answer
79 views

Upgrade fails: "Could not delete core"

The upgrade from 9.5.11 to 10.1.7 fails with the error: Upgrade of drupal/core failed; Could not delete core I followed the steps in https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-...
EfCee's user avatar
  • 3
0 votes
0 answers
18 views

Drupal wouldn't acknowledge receiving updates, so I tried running the update in GitPod terminal and now Drupal is messed up!

I setup a Drupal 10.0 test site (to do the LinkedIn Learning courses) on a windows machine using some combination of WSL, Composer, XAMPP. I would access it at https://imrodmartin-ddevgitpod-...
MJX's user avatar
  • 1
0 votes
1 answer
216 views

I am trying to upgrade and Composer is complaining. How do I figure out what the actual issue is and fix it?

I am trying to update my Drupal 9 site to Drupal 10. I installed the Upgrade status module (and removed it before trying to update); my site is good with the exception of updating the Dynamic Entity ...
Eluchel's user avatar
  • 387
0 votes
1 answer
354 views

Updating Drupal 9.5 to Drupal 10 fails with php errors: what should php include path be?

I am attempting to update a Drupal 9.5 site to Drupal 10. Upgrade status says 100% ready PHP is 8.1.25 Webserver is nginx 1.18 MYSQL is 8.0.35-0ubuntu0.22.04.1 - (Ubuntu) Following instructions here: ...
aharown07's user avatar
  • 382
-2 votes
1 answer
387 views

Cannot upgrade guzzlehttp/guzzle (6.5.8 => 7.7.1) when passing from 9.5.11 to 10.1.5

I am trying to upgrade from Drupal 9.5.11 to 10.1.5. I am also running PHP 8.1.14. [root@ip-172-31-13-94 demo9]# composer require 'drupal/core-recommended:^10' 'drupal/core-composer-scaffold:^10' '...
SomebodySysop's user avatar
1 vote
0 answers
271 views

Install of drupal/core failed

my installation: > drupal > lando composer install :ended up as seen below, I have run out of ideas what to do with this. 117/118 [===========================>] 99% Install of drupal/...
Lucky Boy's user avatar
4 votes
1 answer
413 views

How do I add a patch to patches in composer.json from the command line?

In https://drupal.stackexchange.com/a/297530/69441 Third, add an "extras" section in composer with a patch: How do I do this without an interactive editor?
̷c̷h̷x̷'s user avatar
-3 votes
1 answer
105 views

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-07-22/3238515-8-17-no-link-template-except [closed]

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-07-22/3238515-8-17-no-link-template-exception.patch. below is composer.json file code. { &...
Drupal's user avatar
  • 1
0 votes
2 answers
239 views

Composer issues when trying to upgrade

I'm trying to upgrade from Drupal 9 to Drupal 10, and I'm running into errors from composer. Here's the command I'm using: composer require drupal/core-composer-scaffold:10.1.5 drupal/core-recommended:...
Lambic's user avatar
  • 718
-3 votes
1 answer
285 views

How I can use Drush for portal deployment and redeployment?

I have downloaded Composer on a Windows 11 computer. I have installed Drush with composer require drush/drush, or maybe composer global require drush/drush. As I haven't mentioned any specific version,...
Dev Anand Sadasivam's user avatar
0 votes
0 answers
122 views

Getting existing composer managed site to legacy-project composer managed

[Update] I seem to be making some actual progress by just replacing the the composer.json with https://github.com/drupal/legacy-project/blob/8.9.x/composer.json and then doing a composer require [all ...
Chris Rockwell's user avatar
0 votes
0 answers
81 views

Composer.lock does not match project versions

I have a drupal site developed using the core-recommended project, and I maintain the site using the recommended practices on drupal.org. Recently after adding a new developer to the project, Composer ...
Ryan Schwab's user avatar
2 votes
3 answers
461 views

Fatal error: concerning DrushStyle::warning not being compatible with SymfonyStyle::warning

I just upgraded our site from Drupal 9.5.9 to Drupal 10.1 (following instructions from here - https://www.drupal.org/docs/upgrading-drupal/upgrading-from-drupal-8-or-later/upgrading-a-composer-based-...
Mahesh Gudapakkam's user avatar
-1 votes
1 answer
81 views

Can not get the module by composer [closed]

My Drupal Version is 9.5.10 PHP Version 8.1.18 I am trying to get the module: composer require 'drupal/rocket_chat:^3.0' But unsuccessful: Problem 1 Root composer.json requires drupal/rocket_chat, it ...
Ali Rizvi's user avatar
0 votes
2 answers
1k views

Why don't these Composer dependencies allow upgrading to Drupal 10?

I'm currently on Drupal Version 9.5.10, and I cannot update to Drupal 10 due to some depdendancy conflicts. I updated my database, cleared cache, ran a cron. It doesn't fix. How can I upgrade to ...
Ali Rizvi's user avatar
2 votes
4 answers
2k views

Unable to upgrade from Drupal 9.5.10 to 10.1.1

I'm stuck on my efforts to upgrade my sites (I have 5 in total that I manage) from Drupal 9.5.10 to 10.1.1. I'm using PHP 8.1.8. I'm following the instruction from https://www.drupal.org/docs/...
alex's user avatar
  • 51
1 vote
2 answers
218 views

Is Drupal Commerce compatible with Drupal 10?

Don't see this answered anywhere. I have Drupal 10 installed, as a dev site cohabiting with a live Drupal 7 on the same server. I don't use composer for the D7 install, but can't get it to work on ...
Mike Burman's user avatar
-4 votes
2 answers
1k views

Why doesn’t "composer update" upgrade this site?

I'm running Drupal 9.59. I tried following the instructions on drupal.org for upgrading to Drupal 10. The steps with composer --no-update went fine. The actual update step yields: Loading composer ...
JAyenGreen's user avatar
0 votes
0 answers
388 views

Composer install times out with a bind-mounted volume running Composer through Docker

I've been working on trying to set up a Drupal 10 local development instance on my Windows machine and keep running into an issue of the Drupal installation failing when I have a volume mounted. ...
Nathan Healea's user avatar
-2 votes
1 answer
91 views

Errors Thrown by Composer and Drupal Core [closed]

I'm working as a part of a development team where my colleagues (team members) work in separate Git branches created out of and then merging their branches into a common development branch, develop. ...
razor's user avatar
  • 125
1 vote
1 answer
575 views

How can I patch a Composer dependency to make the dependency compatible with other dependency versions? [duplicate]

I'm trying to update my site from D9 to D10, I've had quite a lot of modules to go through, and for the most part a lot of them have releases which are stable for D10, but roughly 4-5 of them only ...
Andrew Morris's user avatar
1 vote
0 answers
143 views

Unable to reinstall Admin Toolbar in modules directory

All my modules are in the web/modules/ directory except for Admin Toolbar which is in web/modules/contrib/. (Why? Long story, legacy site.) Admin Toolbar refuses to update now because of the ...
Chanel's user avatar
  • 105
-1 votes
2 answers
1k views

Why is cweagans/composer-patches not installing this patch? [closed]

I'm trying to apply different patches but after the command composer install nothing happens. Output: Installing dependencies from the lock file (including require-dev) Verifying lock file contents ...
nathan111777's user avatar
1 vote
1 answer
102 views

Troubleshooting issue forks to make core version compatibility fixes

During the Drupal 8->9 upgrade, we noticed an issue where module maintainers had abandoned a project or were not responding to merge requests in a timely manner. As you know, composer doesn't care ...
Loopy's user avatar
  • 113
-2 votes
1 answer
418 views

Issues updating from 9.4.3 with composer

I have a project that wasn't updated since a few months and I am stuck on 9.4.3 with composer refusing to update. Here is my composer.json { "name": "drupal-composer/drupal-project&...
MrUpsidown's user avatar
0 votes
1 answer
65 views

Should I "composerize" my installation?

So; having been involved with a D7 / CiviCRM build a number of years ago, I started building a D10/CiviCRM build as a project to suggest to my local organisation. I think I might have caused myself an ...
Darren Whittenham-Gray's user avatar
1 vote
2 answers
1k views

Run composer installed drupal from root (/) and not /web directory

How do I run a composer-installed Drupal site from / instead of /web? The default install with composer create-project drupal/recommended-project ./ will install Drupal in the /web directory. So when ...
pierostz's user avatar
  • 412
0 votes
1 answer
718 views

Cannot apply patch; file not found [closed]

There is a specialized fix to a contrib theme that I am trying to apply. Because this theme is in the .gitignore file, it's incumbent upon me to generate a patch that composer can include. Please note ...
sam452's user avatar
  • 451
0 votes
0 answers
42 views

PHP Error: Drush\Application::setLogger(Psr\Log\LoggerInterface $logger) must be compatible in two given files | How to fix this error? [duplicate]

I was trying to setup a local environment of a website created on Acquia cloud platform. Everything was done properly including the database import. But now, when I execute drush commands, it gives me ...
techenzie's user avatar
0 votes
1 answer
119 views

Convert Drupal 8.6 site to Composer (after D8 end of life)? [closed]

Client has a sqldump and a tarball of a broken Drupal site. Instead of using Composer to set up the recommended project, it looks like the previous developer performed a git checkout of http://git....
hotwebmatter's user avatar
  • 2,102
0 votes
1 answer
81 views

Migrate webform directory with Composer from manual installation

I'm started drupal project (core 9.5.2) installing modules manually (it is not good, i know). After the website is deployed in production, I made changes for configuring composer and all worked well. ...
vctlzac's user avatar
  • 163
-3 votes
1 answer
804 views

Best practice to upgrade drupal 9.4 to 9.5? Composer or Drush method? [closed]

I can run this command to upgrade drupal 9.4 to 9.5, but I can also do it in drush. Which method is better and why? composer require drupal/core-recommended:9.5.0 drupal/core-composer-scaffold:9.5.0 ...
Patoshi パトシ's user avatar
-3 votes
1 answer
381 views

"Your requirements could not be resolved to an installable set of packages." [closed]

cPanel PHP Version: 7.3 Drupal 8.8 I am trying to install upgrade_status module via composer for the first time in a shared hosting server but I am unable to do that. Below shows the error that I get. ...
autop's user avatar
  • 565
5 votes
2 answers
3k views

Why doesn't cweagans/composer-patches install my custom patch for drupal/slick?

Basically, I have installed slick module and customised code and created a patch file using "git diff" command. Slick module file path is modules/contrib/slick/ directory. Below is the code ...
user109436's user avatar
0 votes
1 answer
743 views

Problem with PHP version on Ubuntu on Windows when installing Drush

I'm trying to install Drupal 10 with DDEV with these instructions: https://ddev.readthedocs.io/en/latest/users/quickstart/#drupal. I'm on Ubuntu on Windows (WSL2). Ubuntu version: 20.04. Windows 10. ...
oneindige's user avatar
0 votes
1 answer
986 views

Drush fatal error with Declaration of Drupal\Core\Logger\LoggerChannel::log [closed]

When I run any drush command or even just drush I get the fatal error: Fatal error: Declaration of Drupal\Core\Logger\LoggerChannel::log($level, $message, array $context = []) must be compatible with ...
AlxVallejo's user avatar
0 votes
0 answers
306 views

How can I provide composer with a twig version that it's okay with, so I can roll back Drupal to a version that will work with PHP 7.4?

I inherited a broken Drupal 9 site. Drush could not be made to work, so I deleted the vendor directory, renamed composer.lock and reinstalled. This has worked for me before on broken sites. Now I ...
Deej's user avatar
  • 41
8 votes
1 answer
4k views

Composer not applying patch: exceeded the timeout of 300 seconds [closed]

Since my update to the new OSX (Ventura 13) I'm having problems using composer. The biggest problem I have is that my patches aren't patched and end up with and exceeded the timeout of 300 seconds ...
Joost's user avatar
  • 1,318

1
2 3 4 5
13