Indicia-Team / drupal-8-module-iform

Drupal 8 modules for Indicia
0 stars 2 forks source link

Module appears not to uninstall cleanly #8

Open burkmarr opened 2 years ago

burkmarr commented 2 years ago

I found that if I uninstalled the iForm module and later attempted to reinstall it again, it failed. The consequence was that there was no way then to install and use the iForm module on that site. I then reproduced the problem like this:

The error message:

GetImage

BirenRathod commented 2 years ago

@burkmarr At the time of new install iform module, it creates those fields and entities in core.extensions. At the time of uninstall it doesn't remove those from core.extensions. Due to that, it shows above error. I mentioned this to @johnvanbreda while ago. I don't know @johnvanbreda has got any plan to resolve it.

The solution is, remove those entities from config table manually if you can access the database.

johnvanbreda commented 2 years ago

@BirenRathod I won't have time to look into this for a while unfortunately. However, I thought that because node.type.iform_page (and other things mentioned here) are installed via the yaml files in config/install, that Drupal was supposed to automatically uninstall them when you uninstall the module.