./bin/magento Exceptions – Magento 2

When a ./bin/magento setup:upgrade command throws the error message below check your etc/module.xml and registration.php files for typos.

Specifically look into class_name / package_name typos.

 

[ZendServiceManagerExceptionServiceNotCreatedException]

An abstract factory could not create an instance of 
magentosetupconsolecommandmoduleuninstallcommand
(alias: MagentoSetupConsoleCommandModuleUninstallCommand).

[ZendServiceManagerExceptionServiceNotCreatedException]                                                           
An exception was raised while creating 
"MagentoSetupConsoleCommandModuleUninstallCommand"; 
no instance returned

[MagentoFrameworkExceptionFileSystemException]  
The file "/composer.json" doesn't exist   

/vendor/Clearandfizzy/Helloworld/registration.php

<?php MagentoFrameworkComponentComponentRegistrar::register(
    MagentoFrameworkComponentComponentRegistrar::MODULE,
    'Clearandfizzy_HelloWorld',
    __DIR__
);

For example this breaks ./bin/magento because the W is capitalised Clearandfizzy_HelloWorld

 

 

Gareth
Buy Me A Coffee
back arrowBack to Index