Hi,
since a few upgrades, every upgrade causes the contextmenu extension (
|
# Install contextmenu and automatic_addressbook plugins |
) to be missing from the plugins.
When trying to install it manually I get some errors, which be related:
# sudo -u roundcube ./composer.phar require johndoh/contextmenu
Composer could not detect the root package (roundcube/roundcubemail) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
./composer.json has been updated
Composer could not detect the root package (roundcube/roundcubemail) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
Running composer update johndoh/contextmenu
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- roundcube/carddav is locked to version v5.1.2 and an update of this package was not requested.
- roundcube/carddav v5.1.2 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
Problem 2
- phpunit/phpunit is locked to version 9.6.34 and an update of this package was not requested.
- doctrine/instantiator 2.1.0 requires php ^8.4 -> your php version (8.2.30) does not satisfy that requirement.
- phpunit/phpunit 9.6.34 requires doctrine/instantiator ^1.5.0 || ^2 -> satisfiable by doctrine/instantiator[2.1.0].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/8.2/cli/php.ini
- /etc/php/8.2/cli/conf.d/10-opcache.ini
- /etc/php/8.2/cli/conf.d/10-pdo.ini
- /etc/php/8.2/cli/conf.d/15-xml.ini
- /etc/php/8.2/cli/conf.d/20-calendar.ini
- /etc/php/8.2/cli/conf.d/20-ctype.ini
- /etc/php/8.2/cli/conf.d/20-dom.ini
- /etc/php/8.2/cli/conf.d/20-exif.ini
- /etc/php/8.2/cli/conf.d/20-ffi.ini
- /etc/php/8.2/cli/conf.d/20-fileinfo.ini
- /etc/php/8.2/cli/conf.d/20-ftp.ini
- /etc/php/8.2/cli/conf.d/20-gettext.ini
- /etc/php/8.2/cli/conf.d/20-iconv.ini
- /etc/php/8.2/cli/conf.d/20-ldap.ini
- /etc/php/8.2/cli/conf.d/20-mbstring.ini
- /etc/php/8.2/cli/conf.d/20-phar.ini
- /etc/php/8.2/cli/conf.d/20-posix.ini
- /etc/php/8.2/cli/conf.d/20-readline.ini
- /etc/php/8.2/cli/conf.d/20-shmop.ini
- /etc/php/8.2/cli/conf.d/20-simplexml.ini
- /etc/php/8.2/cli/conf.d/20-sockets.ini
- /etc/php/8.2/cli/conf.d/20-sysvmsg.ini
- /etc/php/8.2/cli/conf.d/20-sysvsem.ini
- /etc/php/8.2/cli/conf.d/20-sysvshm.ini
- /etc/php/8.2/cli/conf.d/20-tokenizer.ini
- /etc/php/8.2/cli/conf.d/20-xmlreader.ini
- /etc/php/8.2/cli/conf.d/20-xmlwriter.ini
- /etc/php/8.2/cli/conf.d/20-xsl.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-gd` to temporarily ignore these required extensions.
With the suggestion:
# sudo -u roundcube ./composer.phar require johndoh/contextmenu --ignore-platform-req=ext-gd
Composer could not detect the root package (roundcube/roundcubemail) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
./composer.json has been updated
Composer could not detect the root package (roundcube/roundcubemail) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
Running composer update johndoh/contextmenu
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit/phpunit is locked to version 9.6.34 and an update of this package was not requested.
- doctrine/instantiator 2.1.0 requires php ^8.4 -> your php version (8.2.30) does not satisfy that requirement.
- phpunit/phpunit 9.6.34 requires doctrine/instantiator ^1.5.0 || ^2 -> satisfiable by doctrine/instantiator[2.1.0].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require johndoh/contextmenu:*" to figure out if any version is installable, or "composer require johndoh/contextmenu:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
sudo -u roundcube ./composer.phar require johndoh/contextmenu --ignore-platform-reqs solves it (after adding it to config.inc.php).
Hi,
since a few upgrades, every upgrade causes the contextmenu extension (
roundcube_ynh/scripts/install
Line 71 in 4f926ed
When trying to install it manually I get some errors, which be related:
With the suggestion:
sudo -u roundcube ./composer.phar require johndoh/contextmenu --ignore-platform-reqssolves it (after adding it to config.inc.php).