Magento 2.2.6 - Custom modue setup version for module is not specified
-
28-03-2021 - |
المحلول
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.
لا تنتمي إلى magento.stackexchange