Classes that implement IStartupTask in a plugin will still be called when the plugin is not installed

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
This will break your site if there are dependencies (e.g. db tables) that were removed when the plugin is uninstalled.

I have to remove the plugin folder to get the site working again.
6 years ago
Hi Sean,

Thanks! But it's by design. We need some of them even when plugin is not installed.

I can only recommend you to can check in your IStartupTask implementation whether your plugin is intalled. If not, then just return;
6 years ago
a.m. wrote:
Hi Sean,

Thanks! But it's by design. We need some of them even when plugin is not installed.

I can only recommend you to can check in your IStartupTask implementation whether your plugin is intalled. If not, then just return;


Hi Andrei

I thought maybe that is the case. So as you recommend i've changed my code to ensure the plugin is installed and problem solved.



Thanks.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.