Jump to content
romulossp

Problem prestashop Module - module undefined

Recommended Posts

 

Hello everybody, I'm having a problem with my prestashop, after migrating from server when I'm going to disable or delete a module following message is returned:
 

"Error! Could not perform action disable for module undefined"

I already tried everything but nothing solve
What should I do =/?

Share this post


Link to post
Share on other sites

 

In debug mode I found this error (attached image), I think the POST request is not correct, does anyone know what I can do? How to fix this? = /

Thx.

error.png

Share this post


Link to post
Share on other sites

I think you removed a module in Core of Prestashop

You can do: restore each module for check

Share this post


Link to post
Share on other sites

I have already tried ... I reinstalled the entire system countless times, the problem is specific when I try to disable or uninstall the modules 
I have no more idea what to do =/

Share this post


Link to post
Share on other sites

In your screenshot, the request as a missing / in url. http://zugbox.commanage/action/disable/ps_banner?_token=blabla       instead of http://zugbox.com/manage/action/disable/ps_banner?_token=blabla

Can you go in Advanced Parameters -> Information and take a screenshot ?

Share this post


Link to post
Share on other sites
2 hours ago, Janett said:

In your screenshot, the request as a missing / in url. http://zugbox.commanage/action/disable/ps_banner?_token=blabla       instead of http://zugbox.com/manage/action/disable/ps_banner?_token=blabla

Can you go in Advanced Parameters -> Information and take a screenshot ?

Of course my friend ....

Screenshot at 2019-04-10 08-11-44.png

Screenshot at 2019-04-10 08-11-56.png

Share this post


Link to post
Share on other sites

I see the possible problem ..... I intercepted the methods (old host and new) and saw this problem: (for some reason, prestashop is not completing the url ... which file is responsible for completing it? what can it be?

Screenshot at 2019-04-10 17-12-36.png

Screenshot at 2019-04-10 16-33-23.png

Share this post


Link to post
Share on other sites

Did you ever manage to fix this problem? I get kinda the same error, when trying to upgrade a module. 😢

Error! Could not perform action update for module undefined

 

Share this post


Link to post
Share on other sites

hello friend. How is it now? I meet the same problem. When I try to disable/enable/uninstall a moudel. it says "could not performance action disable moudel undefined"

Share this post


Link to post
Share on other sites

I have the same problem, but in my case this message does not even appear. Nothing just happens when I click to; update, configure, uninstall, etc.

Share this post


Link to post
Share on other sites

Not sure, if my issue was the same as this, but I also had Could not perform action update for module undefined error when trying to update modules after upgrade of my shop from 1.6 to 1.7.
In my case the issue was inconsistency between the real version of modules and versions recorded in database. The store keeps the list of all modules and their versions in table ps_module. I'm guessing that modules were updated during upgrade process, but correct values were not updated in the database. In my case the store would tell that I need to update 40 modules. For example it says that the module Best Suppliers should be upgraded from version 1.4.1 to version 2.0.0. But when I looked to the module folder itself, the module was already on version 2.0.0. Updating line for statsbestsuppliers (which is the folder name of this module) in ps_module from 1.4.1 to 2.0.0 fixed the issue.

Going through all modules one by one can be a long work, plus guessing names of modules on top of it, but it seems to work.

UPDATE 1:

After many attempts to upgrade I came across another error, which seems to have solved the "module undefined" issue. As one of the comments suggested, the module Advanced EU Compliance (modules/advancedeucompliance) was causing some similar issues with updates of modules. After uninstalling this module before upgrade to 1.7, modules can now be properly updated. If you already upgraded to 1.7, deleting folder modules/advancedeucompliance may help the same way. The module should be completely uninstalled. Disabling does not seem to be enough. Don't ask me about explanation. This is pure try/fail experience.

Annotation 2020-01-19 212859.png

Edited by pmates (see edit history)

Share this post


Link to post
Share on other sites

HI guys

I've had the same problem. It seems to be due to a wrong cache.

Solved in this way:

1) Clear the cache using the appropriate command in Advanced parameters> Performance
2) enable debugging (Advanced parameters> Performance)
3) Reload or open the Modules section (Modules> Module Manager)
4) Clear the contents of the / var / cache / folder
IMPORTANT: you must delete both / dev and / prod folders
5) 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

  • Thanks 1

Share this post


Link to post
Share on other sites

Thank you Eugenata!!! your solution worked perfectly 😀 in my prestashop 1.7.5.2

Share this post


Link to post
Share on other sites
On 7/9/2020 at 2:08 PM, eugenata said:

HI guys

I've had the same problem. It seems to be due to a wrong cache.

Solved in this way:

1) Clear the cache using the appropriate command in Advanced parameters> Performance
2) enable debugging (Advanced parameters> Performance)
3) Reload or open the Modules section (Modules> Module Manager)
4) Clear the contents of the / var / cache / folder
IMPORTANT: you must delete both / dev and / prod folders
5) 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

Thank you.

Your solution worked.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More