Skip to main content
5 votes
Accepted

Problems with composer civicrm:publish

Based on comments the -D option cleared out the cobwebs.
Demerit's user avatar
  • 23.3k
5 votes
Accepted

Install or upgrade CiviCRM using Composer 2?

It should be possible to do any one of these: Use CiviCRM 5.31+. The error message above suggests it is using 5.30.x, which has older metadata. (Compare: 5.31's composer.json vs 5.30's composer.json) ...
Tim Otten's user avatar
  • 5,684
5 votes

Drupal 8: How do I shift a project/site from using the roundearth installation method to the CiviCRM official composer asset plugin

Depending on how your initial site set up was created you might need to take a more extreme option detailed below but hopefully the following will work: If you want you can copy composer.json , ...
Demerit's user avatar
  • 23.3k
4 votes
Accepted

How can I update CiviCRM installed with Drupal 8 using Composer?

I've been updating it using the following: composer require civicrm/civicrm-core composer civicrm cv upgrade:db That is after making a backup first. Has worked for my installation.
Corey Brown's user avatar
4 votes

How can I update CiviCRM installed with Drupal 8 using Composer?

In practice it's as simple as doing a composer update for the most part - assuming you're configured "sensibly" - the RoundEarth setup makes (or at least made!) some assumptions re: versioning that ...
HomoTechsual's user avatar
  • 1,138
4 votes

How can I update CiviCRM installed with Drupal 8 using Composer?

My experience with anything composer-ish seems to be: Struggle with it for a while until the site becomes messed up beyond repair. Restore from backup and struggle some more until it's messed up ...
Demerit's user avatar
  • 23.3k
3 votes
Accepted

Drupal 9 - CiviCRM Compilation Error

OK. Looks like I am not the only one with this issue. A newer version of scssphp (v.1.7) appears to be the culprit: https://lab.civicrm.org/dev/drupal/-/issues/164#note_65206 Patch applied to CiviCRM ...
PaulC's user avatar
  • 51
3 votes
Accepted

Compilation error when installing on Drupal8

It turns out this compilation error is related to composer versions: Using default composer version of 1.10 on Ubuntu 20.04 produces this fatal error. Manually upgrading to composer 2.0 resolves this ...
Doka's user avatar
  • 397
3 votes

How can I install/manage CiviCRM patches on Drupal 8 (using Composer)?

Drupal 8/CiviCRM has the composer-patches package already installed. So you can add a section to the "extra" element in composer.json called "patches", and list out the patch with a title and a URL (...
Jon G - Megaphone Tech's user avatar
2 votes

roundearth/drupal-civicrm-project fails to give me the CiviCRM menu

Sounds like perhaps you’re missing -> https://gitlab.com/roundearth/drupal-civicrm-project/-/issues/2 But I do recommend you change how you install D8/CiviCRM to as described in here: Downstream Git/...
KarinG - Semper IT's user avatar
2 votes

Drupal 8.4 & CiviCRM Issue

Just looping back - I did get Drupal 8.4.x and CiviCRM 4.7.x up and running - here's my live play by play steps: https://d8webform.semper-it.com/node/4
KarinG - Semper IT's user avatar
2 votes

Install or upgrade CiviCRM using Composer 2?

Although as of today (2020-11-20) there's no official word, I can see work being done towards this, e.g. https://github.com/civicrm/composer-downloads-plugin/releases/tag/v3.0.0
Alan Dixon's user avatar
  • 6,861
2 votes

Upgrading CiviCRM under Drupal 8: How can I get around this error?

You can use: (confirming this syntax) karins-MBP:d8civicrm.local sysadmin$ composer require pear/pear_exception:'1.0.1 as 1.0.0' ./composer.json has been updated Loading composer repositories with ...
KarinG - Semper IT's user avatar
2 votes
Accepted

Update CiviCRM with composer fails during patching: "Cannot apply patch Allow single quotes to be used in return path"

Yes there were patches being applied for php 8.1 compatibility but they are now in the original package so the patches aren't needed anymore. See https://github.com/civicrm/civicrm-core/pull/24198
Demerit's user avatar
  • 23.3k
2 votes
Accepted

Composer 2 and CiviCRM Installation Error

As per comments there were some leftover installed vendor files and removing composer.lock and the entire vendor folder and also web/modules/contrib/civicrm and then trying again clears it.
Demerit's user avatar
  • 23.3k
2 votes

Installing CiviCRM on a Drupal 9 site with Drush 11 conflict due to symfony/filesystem ~4.4 requirement

The solution here is to either install CiviCRM before drush - or if installing on an existing site or if that fails you can help composer pick the right version via composer require civicrm/civicrm-{...
Luke Stewart's user avatar
  • 1,890
1 vote
Accepted

Composer Drupal Update fails because unappliable Patch of Civicrms zetacomponents/mail

If you can upgrade civi to 5.52+ then do that. If not you could restrict zeta mail to an earlier version, e.g. composer require zetacomponents/mail:1.9.2, but then remember to remove that from ...
Demerit's user avatar
  • 23.3k
1 vote

Install CiviCRM on Drupal 10 without Composer

You can install it on another system or a local dev environment and then copy the files and database over and follow the instructions at https://docs.civicrm.org/sysadmin/en/latest/misc/switch-servers/...
Demerit's user avatar
  • 23.3k
1 vote

guzzle and symfony errors - WordPress

You have a plugin or CiviCRM extension using a newer version of the Guzzle package. I had a similar issue with LMS plugin so I replaced the guzzle package in CiviCRM with a newer version.
Pradeep Nayak's user avatar
1 vote
Accepted

Applying patches that time out on composer update?

Installing gpatch is the solution recommended here. The symptoms are the same, the process freezes waiting for input on 'which file to patch'. https://github.com/cweagans/composer-patches/issues/423
Interlated's user avatar
1 vote

compilation error

See https://lab.civicrm.org/dev/drupal/-/issues/164#note_65206 there's a patch available.
Demerit's user avatar
  • 23.3k
1 vote

Drupal 8/9 Compilation Install Error

In the meantime until this is fixed you can install this patch: https://patch-diff.githubusercontent.com/raw/civicrm/composer-compile-lib/pull/1.patch Then run composer compile. May also need to then ...
Demerit's user avatar
  • 23.3k
1 vote

Keep getting this error on Composer require

The memory problem is real - composer does that. You always need to export COMPOSER_MEMORY_LIMIT=-1. For the conflict, is this drupal 9.1? You can try adding "minimum-stability": "dev&...
Demerit's user avatar
  • 23.3k
1 vote

What has happened to totten/lurkerlite?

- civicrm/composer-compile-plugin v0.14 requires totten/lurkerlite ^1.3 -> could not be found in any version, there may be a typo in the package name. The error message suggests a typo, which I ...
Tim Otten's user avatar
  • 5,684
1 vote

Trying to kill civicrm/civicrm-cxm-rpc to fix a conflict, and it won't die

Problem appears to have been a newbie-to-Composer issue. Every time I ran various composer commands, I'm told it overwrites the .json files I've been furiously editing for four hours, putting back all ...
Jeff Porten's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible