-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating to composer 2.2.1 replaced ocaramius package-version to 1.11.99 which causes this : Fatal error: Class PackageVersions\Installer contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) #32
Comments
can you run the command with |
Output of composer why ocramius/package-versions composer/package-versions-deprecated 1.11.99.4 replaces ocramius/package-versions (1.11.99) Can you please tell me should I run composer update with --no-plugins? |
Running |
Thanks for your response. I have applied the command you mentioned here.
That's not working. Same error message is showing.
Process Output (Install Composer Dependencies)
Using global Composer installation.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 191 installs, 0 updates, 0 removals
- Downloading ocramius/package-versions (1.5.1)
- Downloading symfony/polyfill-ctype (v1.13.1)
- Downloading phpoption/phpoption (1.7.2)
- Downloading vlucas/phpdotenv (v3.6.0)
- Downloading symfony/css-selector (v5.0.3)
- Downloading tijsverkoyen/css-to-inline-styles (2.2.2)
- Downloading symfony/polyfill-php72 (v1.13.1)
- Downloading symfony/polyfill-mbstring (v1.13.1)
- Downloading symfony/var-dumper (v4.4.3)
- Downloading symfony/routing (v4.4.3)
- Downloading symfony/process (v4.4.3)
- Downloading symfony/polyfill-php73 (v1.13.1)
- Downloading symfony/polyfill-intl-idn (v1.13.1)
- Downloading symfony/mime (v5.0.3)
- Downloading symfony/http-foundation (v4.4.3)
- Downloading symfony/event-dispatcher-contracts (v1.1.7)
- Downloading symfony/event-dispatcher (v4.4.3)
- Downloading psr/log (1.1.2)
- Downloading symfony/debug (v4.4.3)
- Downloading symfony/error-handler (v4.4.3)
- Downloading symfony/http-kernel (v4.4.3)
- Downloading symfony/finder (v4.4.3)
- Downloading psr/container (1.0.0)
- Downloading symfony/service-contracts (v2.0.1)
- Downloading symfony/console (v4.4.3)
- Downloading symfony/polyfill-iconv (v1.13.1)
- Downloading doctrine/lexer (1.2.0)
- Downloading egulias/email-validator (2.1.15)
- Downloading swiftmailer/swiftmailer (v6.2.3)
- Downloading paragonie/random_compat (v9.99.99)
- Downloading ramsey/uuid (3.9.2)
- Downloading psr/simple-cache (1.0.1)
- Downloading opis/closure (3.5.1)
- Downloading symfony/translation-contracts (v2.0.1)
- Downloading symfony/translation (v4.4.3)
- Downloading nesbot/carbon (2.29.1)
- Downloading monolog/monolog (2.0.2)
- Downloading league/flysystem (1.0.63)
- Downloading league/commonmark (1.2.2)
- Downloading league/commonmark-ext-table (v2.1.0)
- Downloading dragonmantank/cron-expression (v2.3.0)
- Downloading doctrine/inflector (1.3.1)
- Downloading laravel/framework (v6.13.1)
- Downloading astrotomic/laravel-translatable (v11.7.0)
- Downloading bacon/bacon-qr-code (1.0.3)
- Downloading maximebf/debugbar (v1.15.1)
- Downloading barryvdh/laravel-debugbar (v3.2.8)
- Downloading sabberworm/php-css-parser (8.3.0)
- Downloading phenx/php-svg-lib (v0.3.3)
- Downloading phenx/php-font-lib (0.5.1)
- Downloading dompdf/dompdf (v0.8.4)
- Downloading barryvdh/laravel-dompdf (v0.8.5)
- Downloading doctrine/event-manager (1.1.0)
- Downloading doctrine/cache (1.10.0)
- Downloading doctrine/dbal (v2.10.1)
- Downloading symfony/filesystem (v4.4.3)
- Downloading seld/phar-utils (1.0.2)
- Downloading seld/jsonlint (1.7.2)
- Downloading justinrainbow/json-schema (5.2.9)
- Downloading composer/xdebug-handler (1.4.0)
- Downloading composer/spdx-licenses (1.5.2)
- Downloading composer/semver (1.5.1)
- Downloading composer/ca-bundle (1.2.6)
- Downloading composer/composer (1.9.2)
- Downloading barryvdh/reflection-docblock (v2.0.6)
- Downloading barryvdh/laravel-ide-helper (v2.6.6)
- Downloading beyondcode/laravel-view-xray (1.2.0)
- Downloading clue/stream-filter (v1.4.1)
- Downloading scrivo/highlight.php (v9.17.1.1)
- Downloading filp/whoops (2.7.1)
- Downloading facade/ignition-contracts (1.0.0)
- Downloading facade/flare-client-php (1.3.1)
- Downloading facade/ignition (1.16.0)
- Downloading fideloper/proxy (4.2.2)
- Downloading fzaninotto/faker (v1.9.1)
- Downloading maxmind/web-service-common (v0.6.0)
- Downloading maxmind-db/reader (v1.6.0)
- Downloading geoip2/geoip2 (v2.10.0)
- Downloading phpseclib/phpseclib (2.0.23)
- Downloading ralouphie/getallheaders (3.0.3)
- Downloading psr/http-message (1.0.1)
- Downloading guzzlehttp/psr7 (1.6.1)
- Downloading guzzlehttp/promises (v1.3.1)
- Downloading guzzlehttp/guzzle (6.5.2)
- Downloading psr/cache (1.0.1)
- Downloading firebase/php-jwt (v5.0.0)
- Downloading google/auth (v1.6.1)
- Downloading google/apiclient-services (v0.124)
- Downloading google/apiclient (v2.4.0)
- Downloading graham-campbell/markdown (v11.2.0)
- Downloading hamcrest/hamcrest-php (v2.0.0)
- Downloading psr/http-factory (1.0.1)
- Downloading http-interop/http-factory-guzzle (1.0.0)
- Downloading inacho/php-credit-card-validator (1.0.2)
- Downloading intervention/image (2.5.1)
- Downloading jakub-onderka/php-console-color (v0.2)
- Downloading predis/predis (v1.1.1)
- Downloading cakephp/chronos (1.3.0)
- Downloading laravel/horizon (v3.5.0)
- Downloading laravel/slack-notification-channel (v2.0.2)
- Downloading nikic/php-parser (v4.3.0)
- Downloading jakub-onderka/php-console-highlighter (v0.4)
- Downloading dnoegel/php-xdg-base-dir (v0.1.1)
- Downloading psy/psysh (v0.9.12)
- Downloading laravel/tinker (v1.0.10)
- Downloading laravelcollective/html (v6.0.3)
- Downloading mtdowling/jmespath.php (2.5.0)
- Downloading aws/aws-sdk-php (3.133.6)
- Downloading league/flysystem-aws-s3-v3 (1.0.23)
- Downloading league/iso3166 (2.1.4)
- Downloading psr/http-client (1.0.0)
- Downloading php-http/promise (v1.0.0)
- Downloading php-http/httplug (2.1.0)
- Downloading php-http/guzzle6-adapter (v2.0.1)
- Downloading php-http/message-factory (v1.0.2)
- Downloading php-http/message (1.8.0)
- Downloading php-http/discovery (1.7.4)
- Downloading moneyphp/money (v3.3.0)
- Downloading omnipay/common (v3.0.2)
- Downloading lokielse/omnipay-alipay (v3.0.6)
- Downloading markbaker/matrix (1.2.0)
- Downloading markbaker/complex (1.4.7)
- Downloading phpoffice/phpspreadsheet (1.10.1)
- Downloading maatwebsite/excel (3.1.18)
- Downloading nette/utils (v3.0.3)
- Downloading nette/finder (v2.5.2)
- Downloading nette/php-generator (v3.3.3)
- Downloading nunomaduro/collision (v3.0.1)
- Downloading phpstan/phpdoc-parser (0.3.5)
- Downloading nette/schema (v1.0.1)
- Downloading nette/robot-loader (v3.2.1)
- Downloading nette/neon (v3.1.0)
- Downloading nette/di (v3.0.2)
- Downloading nette/bootstrap (v3.0.1)
- Downloading jean85/pretty-package-versions (1.2)
- Downloading phpstan/phpstan (0.11.19)
- Downloading mockery/mockery (1.3.1)
- Downloading nunomaduro/larastan (v0.4.3)
- Downloading laravel/helpers (v1.1.1)
- Downloading owen-it/laravel-auditing (v9.3.2)
- Downloading paypal/rest-api-sdk-php (1.14.0)
- Downloading webmozart/assert (1.6.0)
- Downloading phpdocumentor/reflection-common (2.0.0)
- Downloading phpdocumentor/type-resolver (1.0.1)
- Downloading phpdocumentor/reflection-docblock (4.3.4)
- Downloading phpunit/php-token-stream (3.1.1)
- Downloading sebastian/version (2.0.1)
- Downloading sebastian/type (1.1.3)
- Downloading sebastian/resource-operations (2.0.1)
- Downloading sebastian/recursion-context (3.0.0)
- Downloading sebastian/object-reflector (1.1.1)
- Downloading sebastian/object-enumerator (3.0.3)
- Downloading sebastian/global-state (3.0.0)
- Downloading sebastian/exporter (3.1.2)
- Downloading sebastian/environment (4.2.3)
- Downloading sebastian/diff (3.0.2)
- Downloading sebastian/comparator (3.0.2)
- Downloading phpunit/php-timer (2.1.2)
- Downloading phpunit/php-text-template (1.2.1)
- Downloading phpunit/php-file-iterator (2.0.2)
- Downloading theseer/tokenizer (1.1.3)
- Downloading sebastian/code-unit-reverse-lookup (1.0.1)
- Downloading phpunit/php-code-coverage (7.0.10)
- Downloading doctrine/instantiator (1.3.0)
- Downloading phpspec/prophecy (v1.10.2)
- Downloading phar-io/version (2.0.1)
- Downloading phar-io/manifest (1.0.3)
- Downloading myclabs/deep-copy (1.9.5)
- Downloading phpunit/phpunit (8.5.2)
- Downloading mustangostang/spyc (0.6.3)
- Downloading piwik/device-detector (3.12.3)
- Downloading pragmarx/ia-str (v6.0.3)
- Downloading pragmarx/ia-collection (v6.0.3)
- Downloading pragmarx/ia-arr (v6.0.3)
- Downloading pragmarx/coollection (v0.7.1)
- Downloading nette/caching (v2.5.9)
- Downloading colinodell/json5 (v1.0.5)
- Downloading pragmarx/countries (v0.6.1)
- Downloading symfony/polyfill-util (v1.13.1)
- Downloading symfony/polyfill-php56 (v1.13.1)
- Downloading paragonie/constant_time_encoding (v2.3.0)
- Downloading pragmarx/google2fa (v3.0.3)
- Downloading symfony/polyfill-uuid (v1.13.1)
- Downloading symfony/options-resolver (v5.0.3)
- Downloading php-http/client-common (2.1.0)
- Downloading sentry/sentry (2.3.1)
- Downloading sentry/sentry-laravel (1.3.1)
- Downloading skydiver/laravel-route-blocker (1.3.0)
- Downloading squizlabs/php_codesniffer (2.9.2)
0/189 [>---------------------------] 0%
3/189 [>---------------------------] 1%
8/189 [=>--------------------------] 4%
10/189 [=>--------------------------] 5%
12/189 [=>--------------------------] 6%
13/189 [=>--------------------------] 6%
15/189 [==>-------------------------] 7%
17/189 [==>-------------------------] 8%
20/189 [==>-------------------------] 10%
23/189 [===>------------------------] 12%
24/189 [===>------------------------] 12%
27/189 [====>-----------------------] 14%
29/189 [====>-----------------------] 15%
31/189 [====>-----------------------] 16%
33/189 [====>-----------------------] 17%
34/189 [=====>----------------------] 17%
36/189 [=====>----------------------] 19%
37/189 [=====>----------------------] 19%
41/189 [======>---------------------] 21%
42/189 [======>---------------------] 22%
43/189 [======>---------------------] 22%
44/189 [======>---------------------] 23%
45/189 [======>---------------------] 23%
47/189 [======>---------------------] 24%
49/189 [=======>--------------------] 25%
50/189 [=======>--------------------] 26%
51/189 [=======>--------------------] 26%
54/189 [========>-------------------] 28%
57/189 [========>-------------------] 30%
59/189 [========>-------------------] 31%
60/189 [========>-------------------] 31%
62/189 [=========>------------------] 32%
64/189 [=========>------------------] 33%
66/189 [=========>------------------] 34%
69/189 [==========>-----------------] 36%
70/189 [==========>-----------------] 37%
74/189 [==========>-----------------] 39%
76/189 [===========>----------------] 40%
77/189 [===========>----------------] 40%
80/189 [===========>----------------] 42%
83/189 [============>---------------] 43%
87/189 [============>---------------] 46%
88/189 [=============>--------------] 46%
89/189 [=============>--------------] 47%
91/189 [=============>--------------] 48%
95/189 [==============>-------------] 50%
96/189 [==============>-------------] 50%
98/189 [==============>-------------] 51%
103/189 [===============>------------] 54%
104/189 [===============>------------] 55%
106/189 [===============>------------] 56%
107/189 [===============>------------] 56%
108/189 [================>-----------] 57%
114/189 [================>-----------] 60%
117/189 [=================>----------] 61%
118/189 [=================>----------] 62%
120/189 [=================>----------] 63%
123/189 [==================>---------] 65%
125/189 [==================>---------] 66%
126/189 [==================>---------] 66%
128/189 [==================>---------] 67%
130/189 [===================>--------] 68%
134/189 [===================>--------] 70%
135/189 [====================>-------] 71%
139/189 [====================>-------] 73%
142/189 [=====================>------] 75%
144/189 [=====================>------] 76%
146/189 [=====================>------] 77%
151/189 [======================>-----] 79%
154/189 [======================>-----] 81%
157/189 [=======================>----] 83%
159/189 [=======================>----] 84%
162/189 [========================>---] 85%
166/189 [========================>---] 87%
170/189 [=========================>--] 89%
171/189 [=========================>--] 90%
173/189 [=========================>--] 91%
177/189 [==========================>-] 93%
181/189 [==========================>-] 95%
182/189 [==========================>-] 96%
184/189 [===========================>] 97%
187/189 [===========================>] 98%
188/189 [===========================>] 99%
189/189 [============================] 100%
- Installing ocramius/package-versions (1.5.1): Extracting archive
For additional security you should declare the allow-plugins config
with a list of packages names that are allowed to run code. See
https://getcomposer.org/allow-plugins
You have until July 2022 to add the setting. Composer will then switch
the default behavior to disallow all plugins.
Fatal error: Class PackageVersions\Installer contains 2 abstract
methods and must therefore be declared abstract or implement the
remaining methods (Composer\Plugin\PluginInterface::deactivate,
Composer\Plugin\PluginInterface::uninstall) in
/var/www/book.grabrooms.com.dev.envoyer/releases/20220103120144/vendor/ocramius/package-versions/src/PackageVersions/Installer.php
on line 32
PHP Fatal error: Class PackageVersions\Installer contains 2 abstract
methods and must therefore be declared abstract or implement the
remaining methods (Composer\Plugin\PluginInterface::deactivate,
Composer\Plugin\PluginInterface::uninstall) in
/var/www/book.grabrooms.com.dev.envoyer/releases/20220103120144/vendor/ocramius/package-versions/src/PackageVersions/Installer.php
on line 32
Yes it's getting from the lock file.
…On Mon, Jan 3, 2022 at 5:19 PM Jordi Boggiano ***@***.***> wrote:
Running composer update --no-plugins composer/package-versions-deprecated
ocramius/package-versions should resolve it I'm hoping. The failure in OP
is due to it installing 1.5.1 but that's a very old version I assume it
came from your lock file?
—
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJZWWYSYIR2HTQ3M7QYV5S3UUGEMRANCNFSM5K6FYMZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
* Rituparna Mitra*
Senior Software Engineer
Indus Net Technologies <https://indusnet.co.in/>
<https://www.linkedin.com/company/indus-net-technologies/>
<https://twitter.com/indusnettech>
<https://www.instagram.com/indusnettech/>
<https://www.facebook.com/IndusNetTechnologies/>
We are listening! Please share your Praise, Suggestion, or Complaint with
the CEO's office.
<https://docs.google.com/forms/d/e/1FAIpQLSdpUPOfgehfdZJWEuTqL55NDj2posWhP30_zlhFVtb7Rj6CXw/viewform?usp=sf_link>
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
05/18/20,
02:09:33 PM
|
Can you run the update I mentioned above, then run It seems to use 1.5.1 because you use PHP 7.3, and ocramius/package-versions 1.6+ requires PHP 7.4 or more, but that's why Maybe you need to explicitly require it if nothing else does require it. e.g. |
Hello
I have upgraded composer version to 2.2.1 and PHP version is 7.3.29. After upgrading I am getting this error
Installing ocramius/package-versions (1.5.1): Extracting archive
For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code. See https://getcomposer.org/allow-plugins
You have until July 2022 to add the setting. Composer will then switch the default behavior to disallow all plugins.
Fatal error: Class PackageVersions\Installer contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in /var/www/book.grabrooms.com.dev.envoyer/releases/20211229142318/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 32
PHP Fatal error: Class PackageVersions\Installer contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in /var/www/book.grabrooms.com.dev.envoyer/releases/20211229142318/vendor/ocramius/package-versions/src/PackageVersions/Installer.php on line 32
Can you please guide me how can I solve this issue?
The text was updated successfully, but these errors were encountered: