AlighaThor Posted May 23, 2019 Share Posted May 23, 2019 Hi everyone. I cannot uninstall/deactivate modules in my BackOffice in Prestashop 1.7.5.1. Some red strange error pops up with: Error! Could not perform action disable for module undefined In some other site I read it may be folders permissions problem. I'm on a shared hosting. I have checked, and all my folders are 755 and files 644. I managed to do it simply by renaming the module's folder I want to deactivate. But I'm unware of what's happening with the normal options in the BackOffice. Thanks in advance. Good day. Link to comment Share on other sites More sharing options...
Janett Posted May 23, 2019 Share Posted May 23, 2019 Problem come from cache, on uninstall a module, Prestashop try to clear cache. If cache is big, process to clear cache can be too long due to high amount of files to delete or if you have a quota of IO (read/write limitation on disk). So cache is not cleared entirely and this can cause some problems like this one. Try to delete every folders and files inside /var/cache/ and Prestashop will regenerate them properly. 1 1 Link to comment Share on other sites More sharing options...
AlighaThor Posted May 23, 2019 Author Share Posted May 23, 2019 Hi Jannet! Thanks for your reply. So, it is safe to delete this /var/cache folder? Thanks again! Link to comment Share on other sites More sharing options...
JBW Posted May 24, 2019 Share Posted May 24, 2019 On 5/23/2019 at 10:33 PM, AlighaThor said: So, it is safe to delete this /var/cache folder? Expand Yes it is but you could also first rename it to cache_old to be 100% safe. Link to comment Share on other sites More sharing options...
Janett Posted May 24, 2019 Share Posted May 24, 2019 (edited) It's 100% safe to delete, rename it to cache_old is totally useless, PrestaShop will regenerate all files in cache Remember what I say, do not delete /var/cache/ but all files and folders INSIDE Edited May 24, 2019 by Janett (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted May 24, 2019 Share Posted May 24, 2019 On 5/24/2019 at 8:08 AM, Janett said: do not delete /var/cache/ Expand Thats what I usually do and it works without issues - Prestashop will regenerate the folder Link to comment Share on other sites More sharing options...
Janett Posted May 24, 2019 Share Posted May 24, 2019 Right, I checked 👍 Thanks @JBW Link to comment Share on other sites More sharing options...
AlighaThor Posted June 21, 2019 Author Share Posted June 21, 2019 Thanks @Janett, it worked. BTW, before I deleted them, I noticed two folders: DEV, and PROD. Now I only got PROD. I assume that DEV is created when I set the Developer Debug mode in the BackOffice, right? Thanks! Link to comment Share on other sites More sharing options...
Janett Posted June 21, 2019 Share Posted June 21, 2019 Yes exactly Link to comment Share on other sites More sharing options...
Rasq Posted September 23, 2019 Share Posted September 23, 2019 On 5/23/2019 at 10:30 PM, Janett said: Problem come from cache, on uninstall a module, Prestashop try to clear cache. If cache is big, process to clear cache can be too long due to high amount of files to delete or if you have a quota of IO (read/write limitation on disk). So cache is not cleared entirely and this can cause some problems like this one. Try to delete every folders and files inside /var/cache/ and Prestashop will regenerate them properly. Expand Hi, it works for me also. Thank you Link to comment Share on other sites More sharing options...
leozhang84 Posted November 8, 2019 Share Posted November 8, 2019 some people didnt solve module undefined problem after delete file in cache. Pls notice the following setting backoffice/Advanced Parameter/Smarty/Template compilation - force compilation. Clear cache - Clear cache everytime something has been modified. Everything works fine now. Link to comment Share on other sites More sharing options...
tuhingr Posted December 15, 2019 Share Posted December 15, 2019 Getting issue with one payment gateway module. other all module is ok Link to comment Share on other sites More sharing options...
Archimed Posted April 1, 2020 Share Posted April 1, 2020 (edited) I can not update my modules, I get the error and I just follow this : On 5/24/2019 at 8:08 AM, Janett said: It's 100% safe to delete, rename it to cache_old is totally useless, PrestaShop will regenerate all files in cache Remember what I say, do not delete /var/cache/ but all files and folders INSIDE Expand I tried to do that, but now I get an error when I go to "admin/index.php/improve/modules/manage" : Quote Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. Expand When I put the debug mode I get that : Quote FatalErrorException HTTP 500 Internal Server Error Compile Error: Cannot declare class SizeGuide, because the name is already in use Symfony\Component\Debug\Exception\FatalErrorException in modules/pksizeguide/models/SizeGuide.php (line 0) Expand What can I do ? Edited April 1, 2020 by Archimed (see edit history) Link to comment Share on other sites More sharing options...
Janett Posted April 1, 2020 Share Posted April 1, 2020 Compile Error: Cannot declare class SizeGuide, because the name is already in use That’s means your module pksizeguide have a problem, delete it and contact developer to have support Link to comment Share on other sites More sharing options...
U1yss Posted January 30, 2022 Share Posted January 30, 2022 On 11/8/2019 at 2:21 PM, leozhang84 said: some people didnt solve module undefined problem after delete file in cache. Pls notice the following setting backoffice/Advanced Parameter/Smarty/Template compilation - force compilation. Clear cache - Clear cache everytime something has been modified. Everything works fine now. Expand tried this also, it didn't work for my Prestashop 1.7.7.1. 'Could not perform action uninstall for module undefined'. Link to comment Share on other sites More sharing options...
ComGrafPL Posted January 30, 2022 Share Posted January 30, 2022 Try this https://www-prestaweb-fr.translate.goog/error-could-not-perform-action-reset-for-module-undefined/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=pl&_x_tr_pto=wapp 1 Link to comment Share on other sites More sharing options...
U1yss Posted January 30, 2022 Share Posted January 30, 2022 On 1/30/2022 at 8:23 AM, ComGrafPL said: Try this https://www-prestaweb-fr.translate.goog/error-could-not-perform-action-reset-for-module-undefined/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=pl&_x_tr_pto=wapp Expand tried already, didn't work neither Link to comment Share on other sites More sharing options...
ComGrafPL Posted January 30, 2022 Share Posted January 30, 2022 On 1/30/2022 at 8:26 AM, U1yss said: tried already, didn't work neither Expand Removing module folder from FTP and clear cache didn't work either? 1 Link to comment Share on other sites More sharing options...
ComGrafPL Posted January 30, 2022 Share Posted January 30, 2022 What's your PHP version? Folders / Files permissions set to 755/644? 1 Link to comment Share on other sites More sharing options...
U1yss Posted January 30, 2022 Share Posted January 30, 2022 On 1/30/2022 at 8:27 AM, ComGrafPL said: Removing module folder from FTP and clear cache didn't work either? Expand not sure this is the right way to correctly uninstall a module. PHP 7.3 permission 755 Link to comment Share on other sites More sharing options...
U1yss Posted January 30, 2022 Share Posted January 30, 2022 the problem seems to exists with one particular module: Pluglin - Machine and professional translation Module by PrestaShop Partners Link to comment Share on other sites More sharing options...
ComGrafPL Posted January 30, 2022 Share Posted January 30, 2022 On 1/30/2022 at 8:53 AM, U1yss said: the problem seems to exists with one particular module: Pluglin - Machine and professional translation Module by PrestaShop Partners Expand You can't reset the module either? Won't let you install again or update? I would try to manually delete it. But is up to you. 1 Link to comment Share on other sites More sharing options...
U1yss Posted January 30, 2022 Share Posted January 30, 2022 On 1/30/2022 at 8:56 AM, ComGrafPL said: You can't reset the module either? Won't let you install again or update? I would try to manually delete it. But is up to you. Expand yes, neither reset nor uninstall. Enable/disable works. To manually delete the module I believe I need to remove the folder and the entries from the database. Never done the latter, first need to find it Link to comment Share on other sites More sharing options...
Yulia Vitun Posted March 17, 2023 Share Posted March 17, 2023 (edited) the same issue here: PS 1.7.8.7 - cannot Configure/Uninstall/Reset PrestaShop Metrics (( already tried this "dance" with no results: https://www-prestaweb-fr.translate.goog/error-could-not-perform-action-reset-for-module-undefined/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=pl&_x_tr_pto=wapp ended up deleting folder ps_metrics from /modules Edited March 17, 2023 by Yulia Vitun (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now