cancel
Showing results for 
Search instead for 
Did you mean: 

Removing addon in composer?

SOLVED

Removing addon in composer?

Hello,

 

i've installed "tinify" in magento2 through adding this line: 

 

"tinify/magento2": "^1.0"

into  composer.json file in require bracket.

 

It was didn't work because of 3 strings insteed of two, so module is named:

Tinify_Compress_Images

yet magento2 allows only two strings, so name should be Tinify_CompressImages 

When i modife addon it was working but when i saw how it works i wanted to delete it. So again i did remove it from composer.json and entered command:

composer update

it did remove files

Loading composer repositories with package information
Invalid credentials for 'https://repo.magento.com/packages.json', aborting.
https://repo.magento.com could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
  - Removing tinify/magento2 (1.1.0)
Removing Tinify/Magento2
  - Removing tinify/tinify (1.2.0)
Removing Tinify/Tinify
Writing lock file
Generating autoload files

When i am trying to enter admin page i can't :/ (at first composer did an upgrade to this addon and removed my edition with changing name) so it again complaining me about this name issue even if there is no files. How to remove it? Error looks like this now:

Setup version for module 'Tinify_Compress_Images' is not specified
#0 /var/www/clients/client1/web2/web/magento2/vendor/magento/framework/Module/DbVersionInfo.php(56): Magento\Framework\Module\DbVersionInfo->isModuleVersionEqual('Tinify_Compress...', '1.0.0')
#1 /var/www/clients/client1/web2/web/magento2/vendor/magento/framework/Module/DbVersionInfo.php(79): Magento\Framework\Module\DbVersionInfo->isSchemaUpToDate('Tinify_Compress...')
#2 /var/www/clients/client1/web2/web/magento2/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(55): Magento\Framework\Module\DbVersionInfo->getDbVersionErrors()
#3 [internal function]: Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#4 /var/www/clients/client1/web2/web/magento2/vendor/magento/framework/Interception/Interceptor.php(141): call_user_func_array(Array, Array)
#5 /var/www/clients/client1/web2/web/magento2/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#6 /var/www/clients/client1/web2/web/magento2/vendor/magento/framework/App/Http.php(115): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#7 /var/www/clients/client1/web2/web/magento2/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#8 /var/www/clients/client1/web2/web/magento2/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#9 {main}

 i also tried 

magento module:uninstall Tinify_Compress_Images
Unknown module(s): Tinify_Compress_Images

and magento module:status is returning list liked this:

 

magento module:status
List of enabled modules:
Magento_Store
Magento_AdvancedPricingImportExport
Magento_Directory
Magento_Theme
Magento_Backend
Magento_Backup
Magento_Eav
Magento_Customer
Magento_BundleImportExport
Magento_AdminNotification
Magento_CacheInvalidate
Magento_Indexer
Magento_Cms
Magento_CatalogImportExport
Magento_Catalog
Magento_Rule
Magento_Msrp
Magento_Search
Magento_Bundle
Magento_Quote
Magento_CatalogUrlRewrite
Magento_Widget
Magento_SalesSequence
Magento_CheckoutAgreements
Magento_Payment
Magento_Downloadable
Magento_CmsUrlRewrite
Magento_Config
Magento_ConfigurableImportExport
Magento_CatalogInventory
Magento_SampleData
Magento_Contact
Magento_Cookie
Magento_Cron
Magento_CurrencySymbol
Magento_CatalogSearch
Magento_CustomerImportExport
Magento_CustomerSampleData
Magento_Deploy
Magento_Developer
Magento_Dhl
Magento_Authorization
Magento_User
Magento_ImportExport
Magento_Sales
Magento_CatalogRule
Magento_Email
Magento_EncryptionKey
Magento_Fedex
Magento_GiftMessage
Magento_Checkout
Magento_GoogleAnalytics
Magento_GoogleOptimizer
Magento_GroupedImportExport
Magento_GroupedProduct
Magento_Tax
Magento_DownloadableImportExport
Magento_Braintree
Magento_Integration
Magento_LayeredNavigation
Magento_Marketplace
Magento_MediaStorage
Magento_ConfigurableProduct
Magento_MsrpSampleData
Magento_Multishipping
Magento_NewRelicReporting
Magento_Newsletter
Magento_OfflinePayments
Magento_SalesRule
Magento_OfflineShipping
Magento_PageCache
Magento_Captcha
Magento_Paypal
Magento_Persistent
Magento_ProductAlert
Magento_Weee
Magento_ProductVideo
Magento_CatalogSampleData
Magento_Reports
Magento_RequireJs
Magento_Review
Magento_BundleSampleData
Magento_Rss
Magento_DownloadableSampleData
Magento_Authorizenet
Magento_OfflineShippingSampleData
Magento_ConfigurableSampleData
Magento_SalesSampleData
Magento_ProductLinksSampleData
Magento_ThemeSampleData
Magento_ReviewSampleData
Magento_SendFriend
Magento_Ui
Magento_Sitemap
Magento_CatalogRuleConfigurable
Magento_Swagger
Magento_Swatches
Magento_SwatchesSampleData
Magento_GroupedProductSampleData
Magento_TaxImportExport
Magento_TaxSampleData
Magento_GoogleAdwords
Magento_CmsSampleData
Magento_Translation
Magento_Shipping
Magento_Ups
Magento_UrlRewrite
Magento_CatalogRuleSampleData
Magento_Usps
Magento_Variable
Magento_Version
Magento_Webapi
Magento_SalesRuleSampleData
Magento_CatalogWidget
Magento_WidgetSampleData
Magento_Wishlist
Magento_WishlistSampleData
Magestore_Bannerslider
Tinify_Compress_Images

List of disabled modules:
None
magento module:disable Tinify_Compress_Images
Unknown module(s): 'Tinify_Compress_Images'

Smiley Sad

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Removing addon in composer?

magento setup:upgrade

this command, solved this issue.

 

 

View solution in original post

1 REPLY 1

Re: Removing addon in composer?

magento setup:upgrade

this command, solved this issue.