0

When I try to enable my module with bin/magento module:enabled I am getting an error in console:

Zend_Json_Exception Decoding Failed: Syntax error

How can I fix this? When I enabled the same module in local server everything worked fine.

danronmoon
2233 silver badges13 bronze badges
asked Oct 19, 2016 at 6:51
2
  • add you module composer.json file code. Commented Oct 19, 2016 at 7:15
  • it's too late, I tried enable with --force and now have bigger problems( Commented Oct 19, 2016 at 7:16

1 Answer 1

0

Looks like that one of custom modules used in your application has incorrect syntax in composer.json.

For detect incorrect composer.json try debug Magento\Framework\Module\PackageInfo::load or put var_dump($key); before $packageData = \Zend_Json::decode($jsonData[$key]); in /vendor/mag‌​ento/framework/Modul‌​e/PackageInfo.php and run uninstall again.

Reference here.

answered Dec 12, 2017 at 15:03

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.