Comments (4)
So from reading the composer docs, I would conclude that plugin-installer should not load the regular composer autoloader because composer will setup autoloading specifically for the composer plugin so its declared dependencies can get loaded.
plugin-installer loads some roundcube classes, and therefore includes program/include/clisetup.php
, which in turn includes program/include/iniset.php
, which then includes the composer autoloader. This is where the error is triggered.
from plugin-installer.
Presumably the same issue prevents a plugin from being uninstalled:
SHELLPROMPT> tar xzf roundcubemail-1.6.0-complete.tar.gz
SHELLPROMPT> cd roundcubemail-1.6.0
SHELLPROMPT> composer require --update-no-dev -o "roundcube/carddav:*"
./composer.json has been updated
Running composer update roundcube/carddav
Loading composer repositories with package information
Updating dependencies
Lock file operations: 6 installs, 0 updates, 0 removals
- Locking mstilkerich/carddavclient (v1.2.3)
- Locking psr/log (1.1.4)
- Locking roundcube/carddav (v4.4.3)
- Locking sabre/uri (2.3.1)
- Locking sabre/vobject (4.5.0)
- Locking sabre/xml (2.2.5)
Writing lock file
Installing dependencies from lock file
Package operations: 6 installs, 0 updates, 0 removals
- Installing psr/log (1.1.4): Extracting archive
- Installing sabre/uri (2.3.1): Extracting archive
- Installing sabre/xml (2.2.5): Extracting archive
- Installing sabre/vobject (4.5.0): Extracting archive
- Installing mstilkerich/carddavclient (v1.2.3): Extracting archive
- Installing roundcube/carddav (v4.4.3): Extracting archive
0/6 [>---------------------------] 0%Creating package config file
1 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
4 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found
SHELLPROMPT> composer remove --update-no-dev -o roundcube/carddav
./composer.json has been updated
Running composer update roundcube/carddav
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 0 updates, 6 removals
- Removing mstilkerich/carddavclient (v1.2.3)
- Removing psr/log (1.1.4)
- Removing roundcube/carddav (v4.4.3)
- Removing sabre/uri (2.3.1)
- Removing sabre/vobject (4.5.0)
- Removing sabre/xml (2.2.5)
Writing lock file
Installing dependencies from lock file
Package operations: 0 installs, 0 updates, 6 removals
- Removing sabre/xml (2.2.5)
- Removing sabre/vobject (4.5.0)
- Removing sabre/uri (2.3.1)
Uninstall of roundcube/carddav failed
- Removing psr/log (1.1.4)
- Removing mstilkerich/carddavclient (v1.2.3)
0 [--->------------------------]
In autoload_real.php line 59:
require(/tmp/roundcubemail-1.6.0/vendor/composer/../sabre/xml/lib/Deserializer/functions.php): Failed to open stream: No such file or directory
remove [--dev] [--dry-run] [--no-progress] [--no-update] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-all-dependencies] [--no-update-with-dependencies] [--unused] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] <packages>...
When adding the --no-plugins
switch to composer remove, the error does not occur (but also the plugin is not removed, because composer would look for it in vendor/
, not plugins/
.
from plugin-installer.
Are there any updates on this issue? I can't install roundcube plugins via composer cause of this error
[ErrorException] include_once($ROUNDCUBE_ROOT_PATH/program/include/clisetup.php): failed to open stream: No such file or directory
I have replaced the original path cause of confidence
from plugin-installer.
Possibly fixed in 0.3.4.
from plugin-installer.
Related Issues (20)
- Plesk Error
- VersionContraint is deprecated HOT 1
- check plugin_name.inc.php too in PluginInstaller HOT 2
- PluginInstaller not found HOT 5
- plugin-installer is not installable HOT 3
- Don't use composer/semver HOT 3
- Cannot reference (FK) other tables when using table prefix HOT 2
- rcubeinitdb.sh - this file does not have an app associated with it for performing this action. HOT 3
- Installation problem HOT 1
- PluginInstaller.php Issue HOT 3
- plugin-installer needs to be adapted for composer2 HOT 6
- Roundcube AD LDAP connection for Address List HOT 1
- RC master (1.5) install, +php8 & composer2, error : 'Loading "roundcube/plugin-installer" which is a legacy composer-installer' HOT 7
- Composer crashes when clearing cache HOT 1
- Disable database initialization for use in building environments such as Docker HOT 1
- plugins/skins installing to the wrong directory HOT 2
- `composer update` with plugin-installer v0.3.6 installed can cause plugin config files to be deleted HOT 2
- Composer asks to activate all plugins when installing a skin HOT 8
- Compatybility with PHP 5 broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-installer.