I try with this but my local system is working fine but the same module when I upgrade in live site then is not working it gives the exception please let me know what I have to do?
Please see below error which I face,
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Change module file/folder permission
Wrong file/folder permission may cause this error, you should try to set proper permission first, run this command in Magento 2 CLI
chmod 775 /magento/app/code/vendorname/modulename -R
Remove module from app/etc/config.php
If you see the error after removing a module of Magento, then try to remove the module in config.php file located in app/etc/config.php, for example:
return array ( 'modules' => array ( 'Magento_Core' => 1, 'Magento_Store' => 1, 'Magento_Theme' => 1, 'Magento_Authorization' => 1, 'Magento_custommodule' => 1, ... ), );
Remove the unwanted module (for example:
Magento_custommodule ) and save the file. Finally clear cache to see if the error is gone.