1

I have an extension version conflict problem on my Joomla site, for which the recommended solution is to change the civicrm dependencies via composer (Guzzle conflict between CiviCRM and Community Builder (Joomla)?).

However, this CiviCRM was installed via the Joomla plugin system, and has never been managed by composer. So essentially, I don't know how to implement the solution :-)

Composer is installed on the server where CiviCRM resides. Is it possible to set up composer to manage the Civicrm instance after-the-fact, so I can change these dependencies? I can't find any documentation on how to do this (all the documentation I'm finding re: CiviCRM and composer are for Drupal).

Help appreciated, thanks.

1 Answer 1

0

There's no documentation because it's not really something you would normally do. I admit I don't know how joomla works - in the download file it looks like it might end up in com_civicrm/admin/civicrm? You're looking for a file named composer.json. Then using the command line in that same folder, you'd type composer require guzzlehttp/guzzle:'^7'

2
  • 1
    Thanks for answering here as well :-) The correct folder is /administrator/components/com_civicrm/civicrm, and there is indeed a composer.json file in that directory. I just wanted to confirm that running composer at this point would not screw up the civicrm installation in any unexpected ways. I guess the best process would be to backup the site and give it a try.
    – minbori
    Commented Aug 9, 2022 at 14:15
  • Backup is always good. The command would only affect that folder and subfolders.
    – Demerit
    Commented Aug 9, 2022 at 15:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.