when I'm going to disable or delete a module following message is returned:
"Error! Could not perform action disable for module undefined"
Solved in this way:
- Clear the cache using the appropriate command in Advanced parameters > Performance
- Enable debugging (Advanced parameters > Performance)
- Reload or open the Modules section (Modules > Module Manager)
- Delete the contents of the / var / cache / folder (from FTP)
IMPORTANT: you must delete both / dev and / prod folders - Remove the debug mode
That's all.
Go back to the Modules section and try to deactivate or uninstall a module, it should work.
Note: sometimes enabling the debug mode we may receive an error page with the list of exceptions. This makes it impossible to see the back office. In this case it is necessary to edit manually the configuration file al line 29:
/config/defines.inc.php
From:
define('_PS_MODE_DEV_', true);
to:
define('_PS_MODE_DEV_', false);
Tested on Prestashop 1.7.6.4 and Prestashop 1.7.7.3