Can't install plugin via composer

Your software

My Mautic version is: v4.1.1

My PHP version is: v7.4.27

My Database type and version is: 10.4.22-MariaDB

Your problem

I am getting composer errors when trying to install the @kuzmany GitHub - mtcextendee/mautic-custom-tags-bundle: Custom tags for Mautic plugin

(The end goal is to to allow html code to be inserted into an email. It seems like the best scenario is to use the {base64decode=customtextareafield} feature of the mautic-custom-tags-bundle plugin.)

Steps I have tried to fix the problem:

  • Using composer 2: composer require kuzmany/mautic-custom-tags-bundle

  • Using composer 1: composer require kuzmany/mautic-custom-tags-bundle

These errors are shown on CLI:

WHEN USING COMPOSER v2…


Using version ^1.3 for kuzmany/mautic-custom-tags-bundle                                                                                    

./composer.json has been updated

Running composer update kuzmany/mautic-custom-tags-bundle

Loading composer repositories with package information

Updating dependencies                                

Your requirements could not be resolved to an installable set of packages.

  Problem 1

    - robloach/component-installer 0.2.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.2.0] but it does not match the constraint.

    - helios-ag/fm-elfinder-bundle 9.3.2 requires robloach/component-installer ~0.2 -> satisfiable by robloach/component-installer[0.2.3].

    - helios-ag/fm-elfinder-bundle is locked to version 9.3.2 and an update of this package was not requested.

You can also try re-running composer require with an explicit version constraint, e.g. "composer require kuzmany/mautic-custom-tags-bundle:*" to figure out if any version is installable, or "composer require kuzmany/mautic-custom-tags-bundle:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

WHEN USING COMPOSER 1…


Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/

Do not run Composer as root/super user! See https://getcomposer.org/root for details

Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/

Using version ^1.3 for kuzmany/mautic-custom-tags-bundle

./composer.json has been updated

Loading composer repositories with package information

Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

  Problem 1

    - kuzmany/mautic-custom-tags-bundle 1.3.0 requires mautic/core-lib ^4.0 -> satisfiable by mautic/core-lib[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1].

    - kuzmany/mautic-custom-tags-bundle 1.3.1 requires mautic/core-lib ^4.0 -> satisfiable by mautic/core-lib[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1].

    - mautic/core-lib 4.1.1 requires symfony/console ~4.4.0 -> satisfiable by symfony/console[4.4.x-dev, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.10, v4.4.11, v4.4.12, v4.4.13, v4.4.14, v4.4.15, v4.4.16, v4.4.17, v4.4.18, v4.4.19, v4.4.2, v4.4.20, v4.4.21, v4.4.22, v4.4.23, v4.4.24, v4.4.25, v4.4.26, v4.4.27, v4.4.29, v4.4.3, v4.4.30, v4.4.33, v4.4.34, v4.4.36, v4.4.4, v4.4.5, v4.4.6, v4.4.7, v4.4.8, v4.4.9] but these conflict with your requirements or minimum-stability.

    - mautic/core-lib 4.1.0 requires symfony/console ~4.4.0 -> satisfiable by symfony/console[4.4.x-dev, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.10, v4.4.11, v4.4.12, v4.4.13, v4.4.14, v4.4.15, v4.4.16, v4.4.17, v4.4.18, v4.4.19, v4.4.2, v4.4.20, v4.4.21, v4.4.22, v4.4.23, v4.4.24, v4.4.25, v4.4.26, v4.4.27, v4.4.29, v4.4.3, v4.4.30, v4.4.33, v4.4.34, v4.4.36, v4.4.4, v4.4.5, v4.4.6, v4.4.7, v4.4.8, v4.4.9] but these conflict with your requirements or minimum-stability.

    - mautic/core-lib 4.0.2 requires symfony/console ~4.4.0 -> satisfiable by symfony/console[4.4.x-dev, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.10, v4.4.11, v4.4.12, v4.4.13, v4.4.14, v4.4.15, v4.4.16, v4.4.17, v4.4.18, v4.4.19, v4.4.2, v4.4.20, v4.4.21, v4.4.22, v4.4.23, v4.4.24, v4.4.25, v4.4.26, v4.4.27, v4.4.29, v4.4.3, v4.4.30, v4.4.33, v4.4.34, v4.4.36, v4.4.4, v4.4.5, v4.4.6, v4.4.7, v4.4.8, v4.4.9] but these conflict with your requirements or minimum-stability.

    - mautic/core-lib 4.0.1 requires symfony/console ~4.4.0 -> satisfiable by symfony/console[4.4.x-dev, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.10, v4.4.11, v4.4.12, v4.4.13, v4.4.14, v4.4.15, v4.4.16, v4.4.17, v4.4.18, v4.4.19, v4.4.2, v4.4.20, v4.4.21, v4.4.22, v4.4.23, v4.4.24, v4.4.25, v4.4.26, v4.4.27, v4.4.29, v4.4.3, v4.4.30, v4.4.33, v4.4.34, v4.4.36, v4.4.4, v4.4.5, v4.4.6, v4.4.7, v4.4.8, v4.4.9] but these conflict with your requirements or minimum-stability.

    - mautic/core-lib 4.0.0 requires symfony/console ~4.4.0 -> satisfiable by symfony/console[4.4.x-dev, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.10, v4.4.11, v4.4.12, v4.4.13, v4.4.14, v4.4.15, v4.4.16, v4.4.17, v4.4.18, v4.4.19, v4.4.2, v4.4.20, v4.4.21, v4.4.22, v4.4.23, v4.4.24, v4.4.25, v4.4.26, v4.4.27, v4.4.29, v4.4.3, v4.4.30, v4.4.33, v4.4.34, v4.4.36, v4.4.4, v4.4.5, v4.4.6, v4.4.7, v4.4.8, v4.4.9] but these conflict with your requirements or minimum-stability.

    - Installation request for kuzmany/mautic-custom-tags-bundle ^1.3 -> satisfiable by kuzmany/mautic-custom-tags-bundle[1.3.0, 1.3.1].

Installation failed, reverting ./composer.json to its original content.

TRYING FROM WITHIN A DDEV INSTALLATION…

I’m not able to do the install using a ddev install of Mautic either. This time, I am getting different messages:

composer require kuzmany/mautic-custom-tags-bundle -W


Using version ^1.3 for kuzmany/mautic-custom-tags-bundle

./composer.json has been updated

Running composer update kuzmany/mautic-custom-tags-bundle --with-all-dependencies

Loading composer repositories with package information

Updating dependencies

Your requirements could not be resolved to an installable set of packages.

  Problem 1

    - Root composer.json requires kuzmany/mautic-custom-tags-bundle ^1.3 -> satisfiable by kuzmany/mautic-custom-tags-bundle[1.3.0, 1.3.1].

    - kuzmany/mautic-custom-tags-bundle[1.3.0, ..., 1.3.1] require mautic/core-lib ^4.0 -> satisfiable by mautic/core-lib[4.0.0-alpha1, ..., 4.x-dev] from composer repo (https://repo.packagist.org) but mautic/core-lib[3.2.x-dev] from path repo (app) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.

You can also try re-running composer require with an explicit version constraint, e.g. "composer require kuzmany/mautic-custom-tags-bundle:*" to figure out if any version is installable, or "composer require kuzmany/mautic-custom-tags-bundle:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

composer update did not help. :frowning:

@kuzmany @Nick_vh able to give any insights?

I never got this working, but it was resolved by downloading the files from github and manually copying them to the /plugins/ folder.