-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CraftVariable::EVENT_INIT event not working in modules since 3.0.5 #2831
Comments
Working on my end. Do you have any plugins installed? |
Ah right, I disabled all my plugins and noticed that fixed the error. Will be looking into the plugin that is causing the |
Most likely it’s because a plugin is actually loading Twig. If you can figure out which one, I can look into a better solution on my end. |
Right, I did some more debugging. SEOmatic does some stuff right after |
Happy to make whatever changes make sense. This is something I struggled with as well, where other plugins would be doing something with Twig, and it caused all sorts of havoc. That's why I do the bulk of my initialization in |
As of the next release, plugins will be loaded before modules once again, but in a way that maintains the fix for #2761. |
Description
After updating to 3.0.5,
\craft\web\twig\variables\CraftVariable::EVENT_INIT
stopped working inside my module, reverting back to 3.0.4 fixes this.I have a feeling it might be broken because of this change:
610f7ac#diff-d735858371e00b6108b199120931723f
Steps to reproduce
__construct()
or)init()
method inside your module that is being loaded on bootstrap:Additional info
The text was updated successfully, but these errors were encountered: