cancel
Showing results for 
Search instead for 
Did you mean: 

composer.json error: Unable to unserialize value

SOLVED

composer.json error: Unable to unserialize value

I am using the following to remove a module

php -d memory_limit=2048M bin/magento module:uninstall Elastomatic_SortCatalogWidget --clear-static-content

 

Unfortunately I get an error In PackageInfo.php line 100:  Elastomatic_SortCatalogWidget composer.json error: Unable to unserialize value. Error: Syntax error

 

I have tried various solutions including editing the Json.php as this page https://magento.stackexchange.com/questions/194010/magento-2-2-unable-to-unserialize-value/196825#19... 

But I have had no luck

1 ACCEPTED SOLUTION

Accepted Solutions

Re: composer.json error: Unable to unserialize value

Hello @miller75 

 

if you installed module manually into app/code then remove manually from app/code and find related table from db and remove it manually.

 

Then do 

php bin/magento setup:upgrade


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

View solution in original post

1 REPLY 1

Re: composer.json error: Unable to unserialize value

Hello @miller75 

 

if you installed module manually into app/code then remove manually from app/code and find related table from db and remove it manually.

 

Then do 

php bin/magento setup:upgrade


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer