Magento 2.3.3
I have the module Swissup/Core installed. I had some problems and removed it. After I removed the module, (deleted from composer directory) I can no longer use Magento 2. I get the following when trying to run any commands.
Updating modules:
Class SwissupCoreConsoleCommandModuleCommand does not exist
In ClassReader.php line 19:
Class SwissupCoreConsoleCommandModuleCommand does not exist
I checked and there is no attribute created by this module. I checked source_model, frontend_model, backend_model.
I removed all references to the module in composer.json, composer.lock.
I removed all references to it in composer files in vendor directory.
I removed cache, pub/static, generated, and var/cache.
I also did a recursive search across the entire site for any file containing the word swissup or Swissup. None were found.
I also removed the module from the setup table.
I also checked/removed any reference in core_config_data
Still, I cannot use the system and this error persists.
I cleared all composer cache
I also as a test, put invalid credentials in app/etc/env.php to see if the database would cause an issue, but it didn’t, I still get this error.
I don’t understand, how, if i’m sure by doing a grep in every file a part of Magento and no such reference exists, that this error is raised. There must be some file stored outside of the Magento filesystem. It cannot be a database issue, because the database cannot connect due to me inputting invalid values.
2
Answers
I highly recommend you delete Modules by first running
bin/magento module:disable Vendor_Namespace
followed bycomposer remove vendor/package
instead of deleting it in the file system.Do you have a git repository on which you can reset? Does
composer install
generate any errors?This can happen if there is the module entry in the
setup_module
table.If the module you want to delete is
Vendor_Module
, then search for the module insetup_module
table:If you find the module in
setup_module
table, then you need to remove that from the table: