Actions

J3.x

Difference between revisions of "Unable to delete modules after updating"

From Joomla! Documentation

(How to fix)
m (How to fix: added semicolon at statements)
Line 7: Line 7:
 
As an alternative you can use statements below in phpMyAdmin:
 
As an alternative you can use statements below in phpMyAdmin:
 
<source lang="sql">
 
<source lang="sql">
DELETE FROM #__modules_menu WHERE moduleid IN (SELECT id FROM #__modules WHERE published = -2)
+
DELETE FROM #__modules_menu WHERE moduleid IN (SELECT id FROM #__modules WHERE published = -2);
DELETE FROM #__modules WHERE published = -2
+
DELETE FROM #__modules WHERE published = -2;
 
</source>
 
</source>
 
As always, replace #_ with your own prefix.
 
As always, replace #_ with your own prefix.

Revision as of 16:22, 27 November 2013

What is the cause

When a site is upgraded to 3.2, users are unable to delete modules and are shown a generic "An error has occurred" message. This also applies to trying to empty trash in the module manager.

How to fix

In order to delete modules, you will first need to open the module(s) you want to delete for editing and save them. After this, you will be able to delete the module(s).

As an alternative you can use statements below in phpMyAdmin:

DELETE FROM #__modules_menu WHERE moduleid IN (SELECT id FROM #__modules WHERE published = -2);
DELETE FROM #__modules WHERE published = -2;

As always, replace #_ with your own prefix.