No idea why - I wrote a custom module. It compiles without errors, it does not show any error or warning in the EVS, it installs without any error. But everytime I try to add it on a page, there are two instances of the module (different IDs!) added to the page. I can't find the reason.
Any ideas?
Happy DNNing! Michael
Thanks, John, that seems to be the reason. I have 2 entries in the ModuleDefinitions table with the same DesktopModuleID.
This seems to be the result of changing the FriendyName from "My_Custom_Module" to "My Custom Module" somewhen.
Is it enough to delete the older record, or is there anything else to keep an eye on (there are dependent records in the ModuleControls table for example)?
Posted By johnhenley on 8/21/2024 2:08 PM Uninstall the module, then look for and delete any orphan records in moduledefinitions and modulecontrols, then reinstall?
And loose all content of a module that was used about 150 times on the site? ;-)
Thanks to a testing environment, I could do it. I had two records in the ModuleDefinitions table with the same DesktopModuleID. Using the ModuleControls table I found out which one to keep and which one to throw - the "older" version had a control that was thrown (or the functionality was merged with another control).
Then I changed the ModuleDefID in the Modules table from the "old" value to the new one (I forgot to do that in the first case, so I lost all the modules with the old value after deleting the record from the ModuleDefinitions table - it is a good idea to have everything in a testing environment :-)). Finally I deleted the record in the ModuleDefinitions table, and - hooray! - the depending records in the ModuleControls were gone as well. There were no depending records in the Permission and ProfilePropertyDefinition tables.
After restarting the app pool everything was fine...
Happy DNNIng! Michael
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.