Questions tagged [composer]
Use it for questions about the PHP application library dependency manager (Composer).
550
questions
-2
votes
0
answers
30
views
Configure composer install path
Trying to install drupal via composer on a shared server.
The complete path to my website looks like this :
/srv/data/web/vhosts/mysite.tld/htdocs/
i have (limited) terminal access and write ...
0
votes
1
answer
25
views
How to load a sandbox project via composer and enable other devs on project to commit to the sandbox project
I'm working on an install profile right now in Drupal (https://www.drupal.org/sandbox/jnicola/3277854). I want to while developing the next project we're on also build this out during the initial part ...
0
votes
2
answers
32
views
Composer\Downloader\TransportException: The "drupal.org/packages.json" file could not be downloaded (HTTP/1.1 404 Not Found)
In Drupal 8.9.x, After composer cache-clear. I am getting this error [Composer\Downloader\TransportException] The "drupal.org/packages.json" file could not be downloaded (HTTP/1.1 404 Not ...
0
votes
0
answers
24
views
unapplied patch reinstall the drupal core
I've upgraded a site from d8 to d9. And I'm rewarded with this error :
- Applying patches for drupal/core
https://www.drupal.org/files/issues/2021-03-15/...
-2
votes
1
answer
47
views
Error when installing Rules with composer
I've tried to install the latest Rules via composer on drupal 9.3.9. I am new to composer.
I uses "composer require 'drupal/rules:^3.0@alpha'" and got a similar error that on issue https://...
-1
votes
1
answer
103
views
Why cannot I upgrade?
I'm currently working on upgrading a Drupal site from Drupal 8.9.7 to Drupal 9.
I'm getting this error when I run lando composer require "drupal/core:^9.3.8" --with-all-dependencies.
Your ...
-4
votes
1
answer
48
views
Unable to apply a user.module Core patch in Drupal 7.x site using Composer [closed]
I have a patch https://www.drupal.org/files/user_reset_password_privacy-1521996-10.patch,
which is to be applied to user.module using Composer. I have added the URL under "patches" as well.
&...
0
votes
1
answer
38
views
Including modules in Git repository [duplicate]
Non core third party modules are maintained in modules directory in the Drupal root directory.
Should this directory be added to the .gitignore file?
If a module is upgraded in a Staging system then ...
0
votes
0
answers
75
views
Composer update Error after Composer-Update from 1 to 2
My Linux had a Composer upgrade to Composer version 2.1.9. No problem with the newly set up Drupal. Only I still have an older Drupal lying around, which I now also wanted to update Composer 2 and ...
0
votes
0
answers
43
views
System updates, now config page errors, drush ends abnormally
After an update failed I'm seeing the following issues. I have tried several things to recover. I do have a database backup, but I am not sure on how to restore using Drush (and I'm concerned because ...
0
votes
0
answers
98
views
"composer install" works during upgrade but the autoload file is missing in the vendor directory
I am upgrading a Drupal 8 site to Drupal 9. I removed the core, vendor, modules, and contrib directories; I ran composer install. All went well, but when I refreshed the page, I saw the following ...
1
vote
2
answers
69
views
How do I install my own, custom module dependant on Composer?
I've looked all over, but there seems to be no advice on this online.
I've recently updated a Drupal 8 site to Drupal 9. I wasn't using composer before, and so I've used composerize-drupal to make the ...
0
votes
1
answer
69
views
Applying a patch - how? [duplicate]
Im trying to install Radix on Drupal 9 (Drush 10) - Installation keeps failing in composer / drush en radix and I have tracked it down to a current "bug" (or atleast a closed bug now) which ...
0
votes
1
answer
149
views
How to Fix drush installation - path or alias to drupal root
I had 10.6.2 working - on Centos 7 and today it is just GONE. I had to remove phpunit and apparently it took the drush pathing setup for drush with it. Now it says it is installed but the command is ...
1
vote
0
answers
36
views
Install newer packages without conflicting with core-recommended?
Is there a way to install third party packages without conflicting with core-recommended? Example:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- spatie/...
1
vote
1
answer
87
views
drupal-scaffold composer append robots.txt
We recently upgraded to Drupal 9.3.0 with the composer layout. Each time we execute composer update the contents of robots.txt is overlayed with the file located in core/assets/scaffold/files/robots....
0
votes
0
answers
75
views
Composer Remove leaves files and references in composer.lock
I'm trying to update my site from D8 to D9 and there are a few modules I no longer need and am trying to get rid of. I run composer remove drupal/varbase_core and it removes it from my composer.json, ...
0
votes
0
answers
89
views
LDAP integration not working with Drupal 9 (using Ludwig as a composer alternative - was working under Drupal 8)
I 'm having a problem since updating to Drupal 9, with regards to LDAP integration. Previously, while on Drupal 8, I had successfully integrated my schools LDAP for users authentication, using the ...
0
votes
1
answer
116
views
Tarball 9.3.0 to Composer 9.3.0
We have a large production website running 8.9.20 with a Tarball directory format. We would like to make the jump to 9.3.0 and convert the site from Tarball to Composer directory format. I performed ...
3
votes
0
answers
29
views
How do I add a dependency on a forked project? [duplicate]
I've hit a bug that requires a patch to composer.json.
There's a patch in the issue queue, but it hasn't been merged yet.
How do I update my composer.json to depend on the forked version of the module?...
0
votes
0
answers
50
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
vote
1
answer
99
views
Add Composer to an existing site
I built a Drupal 8.9 site with Composer on a DEV server and copied the files (& db) over to the LIVE server.
The LIVE server did not have Composer installed previously so I installed it, locally.
...
0
votes
1
answer
58
views
Is it possible to use WSL-based Drush on a Windows 10 XAMPP and if so how?
I currently use Drupal 9 but concepts about Drupal 10 may be useful.
I use Windows 10 Home with XAMPP and C:/xampp/htdocs is my web application root.
I want to establish a minimal Drupal development ...
1
vote
1
answer
54
views
Uploading local files via composer
I'm using composer to manage a Drupal 9 instance. I'm brand new to composer and have no idea what i'm doing. That being said, I've successfully set it up and have used it to install modules and an ...
0
votes
1
answer
43
views
Upgrading to Composer 2 blocked by Symfony dependecies
I have an existing Drupal 8.9.16 site which uses Composer 1 (and Commerce 2.24). I am trying to upgrade to using Composer 2 using this guide: https://www.drupal.org/docs/develop/using-composer/...
-3
votes
1
answer
277
views
Upgrading from 8.9.19 to 9 fails because of root composer.json require (^8.8.0)
My upgrade is failing. I am at 8.9.19 and I used upgrade-status to make sure all my modules are compatible with next major core version. I am following instructions at https://www.drupal.org/docs/...
0
votes
2
answers
57
views
What's the best way to migrate from manual upgrades to composer updates?
I have an 8.9.19 installation that I would like to move over to use composer.
What's the best way to migrate the installation to use composer upgrades? Manual installations are becoming a real pain.
2
votes
1
answer
160
views
Is there any problem with installing composer globally?
I have a VPS and will be hosting a mixture of drupal 8 and drupal 9 sites.
I need to install composer to manage the sites.
Is there any need to install composer in a project folder or can I just ...
0
votes
0
answers
20
views
Unable to inherit profile
I am trying to create a custom installation profile which will use standard as a base profile. So I created the customprofile.info.yml as below:
name: 'Custom profile'
core_version_requirement: '^9'
...
2
votes
1
answer
951
views
Trouble with the upgrade of core 8.9 to 9.2
We are in the process of migrating to Drupal 9, and I am having nothing but problems with composer and trying to get Drupal core updated.
I have provided my composer.json file, and a HUGE list of ...
1
vote
1
answer
216
views
How target specific version of fork based merge request (MR) patch
I'm upgrading the core from 9.1.7 to 9.2.5, however there's a patch I don't how to upgrade.
This is the relative issue. The file 2897638-48.patch is currently used.
The patch's work meanwhile proceed ...
2
votes
2
answers
65
views
What is the proper process to customize htaccess files?
We have custom redirect links that use the RedirectMatch rules that redirect based on a root path. We'd rather handle these at the web server level rather than using the Redirect module (if it can ...
0
votes
1
answer
69
views
drupalcommerce/project-base prohibits upgrade to Drupal 9.2.4
I'm running into composer errors while trying to update a Drupal Commerce site to Drupal 9.2.4.
I'm not sure how to interpret this output when I try composer prohibits drupal/core 9.2.4
results: https:...
0
votes
1
answer
209
views
Why is composer deleting and reinstalling core?
I am running Drupal 9.2.4 on Lando on Mac Big Sur. When I use composer to install a module it first deletes core.
Removing package drupal/core so that it can be re-installed and re-patched.
- ...
1
vote
1
answer
124
views
Should I remove "Commerce Base" from site before an upgrade?
The "Upgrade Status" module reports that "Commerce Base" exists in site file structure, but is not installed and suggests removing it. I expect that the Commerce project references ...
2
votes
2
answers
1k
views
Why Can't I Upgrade from 9.2.3 to 9.2.4 Using Composer?
If I check for outdated artifacts using:
composer outdated "drupal/*"
I can see Core needs updating:
drupal/core 9.2.3 9.2.4
drupal/core-composer-scaffold ...
0
votes
1
answer
619
views
"PHP Warning: require(drupal.php): failed to open stream"
I have created two fresh installations of Drupal, one version 8.9.17 and the other 9.2.3 and have been trying to get the Drupal console to work so that I can generate a module.
I used the following ...
0
votes
1
answer
149
views
Composer require installation profile constraint match error
I am trying to download this install profile https://github.com/UH-StudentServices/student_guide
I added it to composer.json like this
"repositories": [
{
"type"...
0
votes
1
answer
89
views
Cannot update Group module with composer
We are using the Group module on our D8 site. We use composer to manage our modules and dependencies. I am somewhat of a composer novice, so it's possible that the solution is right in front of me, ...
0
votes
2
answers
1k
views
Composer not updating modules
I have a Drupal 8.9.16 website and when I try running composer update to update the modules, I get this output
$ composer update
Loading composer repositories with package information
Updating ...
0
votes
0
answers
584
views
Issues after updating Composer 2
I have been using drupal for over a month now. I am unable to install modules properly because of the composer 2 updating issues.
So far I have made the following changes while updating composer 2
&...
0
votes
1
answer
825
views
Locked to version problem when upgrading
Every time I run the composer command to upgrade Drupal 8.9.16 to Drupal 9, it notifies me that there is a problem with a module.
For example, I run:
composer require drupal/core --with-all-...
0
votes
1
answer
80
views
How to update a module in production?
I am using git to deploy my composer.lock to production. Contrib is not part of my git repo. Therefore, in production I then run composer install to add contrib to production.
What happens when I ...
0
votes
0
answers
47
views
Warnings after upgrading
After upgrading to Drupal 9.2.0 using Composer I sometime get the following error.
Deprecated function: Required parameter $bubbleable_metadata follows optional parameter $data in require_once() (...
0
votes
0
answers
111
views
Module update with composer, updates module but not really
I am updating modules on my drupal site and I am using the composer like this:
composer require 'drupal/module'
The output I get from composer looks like everything is working fine but when I go to ...
0
votes
1
answer
647
views
upgrade_status - unexpected error about PHP version
I'm doing preparatory work for upgrading a site from D8 to D9...
The Drupal dev site (macOS 10.14.6 served with Laravel Vagrant) is running PHP 7.3.28, both on command line and php-fpm, and I'm seeing ...
2
votes
1
answer
327
views
How do I apply patches from a merge request? [duplicate]
I used the patch #48 of Views exposed sort identifiers are not configurable. I need to update the core, and apply the latest rebased version of that.
However, the issue hasn't be marked Fixed, and I ...
1
vote
1
answer
229
views
How do I avoid overwriting the .htaccess file when I use the Compose command?
On my new Drupal 9 website, I customized the .htaccess file and the robots.txt file
I don't want its files to be overwritten when updating with Composer.
I added the lines below in my composer.json ...
0
votes
0
answers
106
views
Composer memory limit error on update ( AWS Lightsail)
I'm running an AWS lightsail server for a Drupal 8 qa site. I'm getting an out of memory error when running update. I created a new server with 2GB of memory, and was able to run updates for a few ...
0
votes
0
answers
55
views
How can I make composer-managed Drush 8 available to www-data?
I have an internal Drupal 7 app. The app uses php exec() to execute Drush 8.x commands after certain files are uploaded to the server via a custom form. In order for it to work we downloaded drush....