Reinstalling Module

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
7/10/2014 12:32:16 AM
Gravatar
Total Posts 9

Reinstalling Module

Hello, I have a problem with installation of my custom module to one of my sites. I have installed it into a few sites and had no problems with that, it worked perfectly, but with one of my sites I don't know what I've done wrong. It doesn't work partially. When I add it to a page it looks normally, but the list of module settings is empty. And when I press some button of my module en error occures.

I was testing this module on local server and found that if I delete from the database tables that was created with "SchemaInstallScripts" and "SchemaUpgradeScripts" during the first setup, they do not restore after the second setup. During the first setup it sayed "Running script onlineconsultation..." and "Configuring module onlineconsultation...". During the second setup it says only "Configuring module onlineconsultation...", and it doesn't run scripts that created that tables. I tried to remove my module through administration->advanced settings->manage modules and it doesn't seem to remove it completely, because in the system information page it's still there, and after running setup again it returnes back as broken as it was.

Please explain how can I delete my module completely and then install it like it's the first time.

7/10/2014 4:39:24 AM
Gravatar
Total Posts 9

Re: Reinstalling Module

After some more research I've found that there is an empty list in Administration->Advanced Tools->Feature Installation and Configuration->Onlineconsultation Settings

Adding New Setting manually gives no effect.

I've found that these settings are stored in mp_ModuleDefinitionsSettings, tomorrow I'll try to insert correct records into it, but still why didn't they appear during installation and manual configuring...

7/10/2014 8:19:51 AM
Gravatar
Total Posts 18444

Re: Reinstalling Module

you need to delete the row corresponding to your feature from the mp_SchemaVersion table.

That table keeps track of the version so that we only run newer script versions and never repeat older scripts during upgrades. After each script it updates the table to match the script version so it knows how to tell newer scripts from ones that have already run.

7/10/2014 10:34:46 PM
Gravatar
Total Posts 9

Re: Reinstalling Module

Thank you very much, I finally made it!

P. S. Funny, it's already tomorrow in Russia)))

You must sign in to post in the forums. This thread is closed to new posts.