When you desinstall WYMeditor, related data are still existing on database.
I noticed it after correcting the bug : #312806: Error on desinstalling WYMeditor module. In order to test this bug on your installation, you MUST patch your code with the patch file given in this report. If not, desinstallation process exit with a fatal error.
Details
- table variable
-
The three following fields must be removed :
- wymeditor_containers,
- wymeditor_classes,
- allowed_html_nn, where nn is the format number given by Drupal core during module installation.
Futhermore, installing WYMeditor module leads to set the filter_default_format to the WYMeditor format number previously named nn. This variable must be removed too or maybe set to a default value, 1 for example.
I am currently testing a patch in which I removed it : Drupal is then free to make is own cooking !Another approach is to store filter_default_format in a variable before WYMeditor installation change it. And to restore it back when desinstalling WYMeditor. But this behaviour is not correct because the filter_default_format may changed between WYMEditor installation' and desinstallation'.
- table filter_formats
- The line related to WYMeditor (whose field name is set to WYMeditor) must be removed.
- table filters
- The line related to WYMeditor (whose field format is set to the WYMeditor format number previously named nn.) must be removed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | wymeditor_314412.patch | 1.01 KB | Anonymous (not verified) |
| #1 | wymeditor_#314412.patch | 1.01 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedHere is the patch removing data on variable table.
For the two others tables it seems to be a little bit tricky and maybe related to filter module. Must see...
CAUTION : this patch only correct the wrong behaviour described in this report. This mean the program exit on fatal error due to #312806: Error on desinstalling WYMeditor module bug.
Comment #2
Anonymous (not verified) commentedWarning ! A bug as be found for patch file containing number signs (#) in it's patch naming scheme : http://drupal.org/node/312354
So here is the patch with a working name !
Comment #3
Anonymous (not verified) commented