-
I have a custom Modular tenant event which enables features based on a list in the appsettings.
It runs with no issue in 1.4, however, when I run it in 1.8 it throws this error:
I've verified it is not my recipe that is causing the issue because if I comment out this task, it doesn't throw the error. What could it be? Am I activating modules wrongly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hmm, is the solution to run the task after the recipe is executed? is there an event I can hook into? and why does this work in 1.4 but not 1.8.3? |
Beta Was this translation helpful? Give feedback.
That can indeed be a solution. You can do that with a deferred task. See e.g. https://github.com/OrchardCMS/OrchardCore/blob/main/src/OrchardCore/OrchardCore.Queries.Core/QueriesDocumentMigrationHelper.cs for an example.