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
25 views

Impossible to change admin password, script gives me different hash every time (???)

Context: Drupal 9.14 installed on a small EC2 server for testing After a composer update, my admin password stopped working (first strange event). I decided to use the password-hash.sh to recreate one ...
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-...
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....
0 votes
3 answers
2k views

Stuck in my config import because of guzzlehttp/guzzle error

I am trying to import the config from another of my Drupal 9.1.4 projects with Composer / Drush (drush config-import from a folder source, all two websites on my local repository on Xampp), but a ...
1 vote
1 answer
401 views

Installing the dependencies of local modules without composer merge plugin

Currently I have a composer-based Drupal project with both third-party and custom modules. Third-party modules are managed by composer without any issues. But I would like my custom modules to declare ...
-1 votes
1 answer
442 views

How do I resolve a unresolved dependency error after using Composer to install modules?

I'm going to pull my hair out if I stare at this problem any longer. I've seen the similar questions and tried everything but I can't fix this issue with module dependency versions. I'm using ...
0 votes
1 answer
149 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 ...
2 votes
3 answers
320 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-...
0 votes
1 answer
2k views

How can you have Composer install the site in the project root not in web/?

I have downloaded Drupal 8.8 through composer drupal/recommended-project. The downloaded files structure is diff than previous download. Now core and other files are stored in web folder and vendor is ...
1 vote
1 answer
399 views

Is there a way to update custom packages with composer?

The project is using Drupal 8 composer template to manage dependencies. Some of the packages are defined locally to look like Drupal modules and be installed in a specific location. An example could ...
0 votes
1 answer
158 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: ...
-2 votes
1 answer
167 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' '...
2 votes
4 answers
2k views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
1 vote
0 answers
100 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/...
1 vote
3 answers
4k views

Authentication required (git.drupalcode.org)

On Drupal 9, I want to install the Taxonomy menu module using Composer, but I get the following error. Using version ^3.4 for drupal/taxonomy_menu ./composer.json has been updated Loading composer ...
0 votes
2 answers
139 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:...
4 votes
1 answer
373 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?
4 votes
1 answer
2k views

What is the best practice for handling abandoned packages required by the drupal core?

When I run composer update on a Drupal 9 website, I get this warning: Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead. A similar question has ...
-3 votes
1 answer
75 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. { &...
0 votes
1 answer
806 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 ...
11 votes
2 answers
671 views

Patch drupal.org project (core/module/theme) with issue fork

The new fork based merge request (MR) approach is pretty neat to get the patches created/reviewed/merged. However, if you are using the patch via cweagans/composer-patches, we have a few options. ...
-3 votes
1 answer
185 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,...
1 vote
1 answer
426 views

Module requires Composer install of third-party library

I am trying to learn about drupal 8 and composer within aegir. It seems like aegir has some support for it but the problem that I am running into right now is that aegir doesn't seem to install ...
0 votes
1 answer
1k views

Composer downgrading module version

I wish to move the bootstrap theme from the repository located in the folder theme/custom to be a dependency in composer.json I've checked that the current version drupal/bootstrap is 3.16 I perform ...
2 votes
4 answers
1k 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/...
2 votes
1 answer
929 views

Local drush stops working after changing files and folder permissions

I changed the files and folder permissions with the following commands. find . -type f -print0 | xargs -0 chmod 0644 find . -type d -print0 | xargs -0 chmod 0755 I can't run Drush commands anymore, ...
1 vote
1 answer
727 views

Error installing CiviCRM

Following the amazing work @david-snopek posted: Blog post - CiviCRM & D8, David's StackExchange Post. I spent the better part of last evening trying to get CiviCRM up and running on a Drupal 8....
2 votes
1 answer
257 views

Why doesn't core get updated to 8.5?

I am trying to update via Composer following what reported in Update core via Composer, but when I do composer update drupal/core --with-dependencies, I get the following output. Loading composer ...
0 votes
2 answers
749 views

Composer won't upgrade drupal/core-recommended

My composer.json is below { "name": "drupal/recommended-project&...
0 votes
0 answers
85 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 ...
2 votes
2 answers
3k views

How can I install an installation profile?

I have an installation profile with custom modules and themes. How should I use Composer so that Drupal and the installation profile's dependencies are downloaded and copied in the right directories?
1 vote
1 answer
565 views

composer install error

I can't install anything because of this error: [RuntimeException] Could not scan for classes inside "/app/vendor/symfony/serializer/src/" which does not appear to be a file nor a folder and ...
2 votes
2 answers
507 views

Third-party modules installed with Composer don't have their version in the .info.yml file

I have a project installed by composer, everything working perfectly, except when i run composer install contrib module installed successfully in web/modules/contrib but none of the modules .info.yml ...
0 votes
0 answers
57 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 ...
3 votes
0 answers
1k views

Composer install is asking me user and password for a contrib module [duplicate]

I'm installing my own clone of a Drupal project and when I'm launching Composer Install, in the drupal/calendar, ask me an git.drupal.org id to download the module...what can I do?
-1 votes
1 answer
71 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 ...
0 votes
2 answers
690 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 ...
0 votes
1 answer
453 views

Update webform without composer

I need to update webform from 8.x-5.0-beta18 to 8.x-5.1 but unfortunately, I cannot use Composer because it is not possible to install it on my server due to server restrictions. This also apply to: ...
0 votes
2 answers
61 views

Do these options affect other modules and possibly core?

I have a question about downloading an unstable version of a module using composer. I run composer require 'drupal/page_manager:^4.0' but I get this error message. The requested package drupal/...
1 vote
2 answers
155 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 ...
1 vote
1 answer
1k views

How do I use Git when using Composer?

I am working on an OpenSocial project and its installed via composer. I am having a folder structure as below: composer.json composer.lock html (Drupal Installation.) vendor (Dependencies) When ...
-4 votes
2 answers
865 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 ...
0 votes
0 answers
305 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. ...
-2 votes
1 answer
55 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. ...
1 vote
1 answer
408 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 ...
1 vote
0 answers
117 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 ...
-1 votes
2 answers
888 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 ...
4 votes
3 answers
9k views

Error when attempting to create sync directory

I'm installing Drupal 8 with using Composer. During the requirements verification phase I receive this error. Requirements problem Errors found Configuration directory: sync An automated attempt to ...
4 votes
4 answers
2k views

How to add theme from github with composer

I have a Drupal 8 installation and I like to install a theme from github.com using composer. It is this theme https://github.com/forumone/gesso Can anybody help me what I have to add to the composer....
0 votes
1 answer
81 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 ...

1
2 3 4 5
13